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

# GPT Image 1.5

> GPT Image 1.5: Generate images from prompts or edit an existing image. Generation and editing use separate endpoints.

Generate images from prompts or edit an existing image. Generation and editing use separate endpoints.

`POST /v1/images/generations`

## Quick Example

Set `MIXROUTE_API_KEY` before running the request.

```bash theme={null}
curl --request POST 'https://api.mixroute.ai/v1/images/generations' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-image-1.5",
  "prompt": "A red ceramic mug on a white table.",
  "size": "1024x1024",
  "n": 1
}'
```

Decode `data[].b64_json` to save the generated image.

## Parameters and Limits

| Field | Description |
| - | - |
| `model` | `gpt-image-1.5`. Set the model ID exactly as shown. |
| `prompt` | Describe the requested image. |
| `size` | Use a standard size such as `1024x1024`, or `auto`. |
| `n` | Number of images requested; the example uses one. |

## API Reference

* [GPT Image Generation](https://mixroute.ai/docs/api-reference/endpoint/gpt-image.md)
* [GPT Image Editing](https://mixroute.ai/docs/api-reference/endpoint/gpt-image-edit.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.