> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluximage.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Fluximage REST API: endpoints, auth, and integration

> Integrate AI-powered image optimization into your own tools using the Fluximage REST API. Base URL, authentication, and available endpoints overview.

The Fluximage REST API lets you compress, convert, and AI-enhance images programmatically from any environment that can make HTTP requests. All requests go to the base URL `https://fluximage.app` and must include a valid API key in the `Authorization` header. API access is available on the **Agency plan**.

## Base URL

```
https://fluximage.app
```

## Authentication

Every request must include your API key as a Bearer token:

```
Authorization: Bearer flx_live_your_key_here
```

Requests without a valid key return `401 Unauthorized`. See the [authentication page](/api/authentication) for details on obtaining and managing your key.

## Available endpoints

| Method | Endpoint        | Description                  |
| ------ | --------------- | ---------------------------- |
| `POST` | `/api/compress` | Compress and optimize images |
| `GET`  | `/api/usage`    | Get credit balance and usage |

## Explore the endpoints

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/api/authentication">
    Learn how to obtain your API key and authenticate requests.
  </Card>

  <Card title="POST /api/compress" icon="image" href="/api/compress">
    Compress and optimize images with AI-powered features.
  </Card>

  <Card title="GET /api/usage" icon="chart-bar" href="/api/usage">
    Check your credit balance and monthly usage.
  </Card>
</CardGroup>
