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

# GPT Image 2.5 Flare

> GPT Image 2.5 高速度版本，支持图像生成和编辑。

GPT Image 2.5 高速度版本，支持图像生成和编辑。

## 模型信息

| 字段         | 说明                          |
| ---------- | --------------------------- |
| `model`    | gpt-image-2.5-flare         |
| `endpoint` | POST /v1/images/generations |

## 能力与使用

* quality 支持 auto、low、medium、high、xhigh、max。
* size 使用 auto 或 WIDTHxHEIGHT：两边均为 16 的倍数、单边不超过 3840 像素、宽高比在 1:3 至 3:1 之间、总像素为 655360-8294400；超过 3686400 像素属于实验性范围。
* 透明背景需使用 PNG 或 WebP。生成使用 JSON；编辑使用 multipart 的 image/image\[] 和可选 mask。图片参数不要放入 metadata。

## 请求示例

调用前设置 `MIXROUTE_API_KEY`。

```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-2.5-flare",
  "prompt": "A red ceramic mug on a plain white background.",
  "n": 1,
  "size": "1024x1024",
  "quality": "low"
}'
```

## 请求字段

| 字段        | 说明                              |
| --------- | ------------------------------- |
| `model`   | 必填，使用上方完整模型 ID。                 |
| `prompt`  | 必填，图像描述，最多 32000 字符。            |
| `size`    | auto 或合法的 WIDTHxHEIGHT。         |
| `quality` | auto、low、medium、high、xhigh、max。 |
| `n`       | 1-10 张，默认 1。                    |

编辑图片使用 [GPT Image 编辑](/cn/api-reference/endpoint/gpt-image-edit)。

完整请求格式见[接口说明](/cn/api-reference/endpoint/gpt-image)。
