# POST /v1/images/generations

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

## Request Parameters

### Header Parameters

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

### Body Parameters application/json

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

## Example Request

### Shell

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

## Response

### 🟢 200 Success

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

#### Response Schema

```text
object
```

#### Example

```json
{}
```
