# Flux

**Method**: `POST`
**Endpoint**: `/v1/images/generations`

This section contains endpoint-specific behavior, parameters, or usage notes for this API.
flux
flux-dev
flux-pro

This section contains endpoint-specific behavior, parameters, or usage notes for this API.
1024x512
1024x1024
1024x576
1024x768
1024x512
512x1024
512x768
1280x960
1280x960
960x1280
960x1280
768x1366
768x512
1366x768
1344x576

## Request Parameters

### Header Parameters

```text
Authorization
string
Optional
Default Value:
Bearer {{YOUR_API_KEY}}
```

### Body Parameters application/json

```text
object
Example
{
"model"
:
"flux-dev"
,
"prompt"
:
"cat"
,
"size"
:
"1024x1024"
}
```

## Example Request

### Shell

```bash
curl --location --request POST '/v1/images/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "flux-dev",
    "prompt": "cat",
    "size": "1024x1024"
}'
```

## Response

### 🟢 200 Success

**Content Type**: `application/json`

#### Response Schema

```text
object
```

#### Example

```json
{}
```
