> ## 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 編輯](/zh-hant/api-reference/endpoint/gpt-image-edit)。

完整請求格式見[介面說明](/zh-hant/api-reference/endpoint/gpt-image)。
