> ## 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 2.5 Flare

> GPT Image 2.5 高速度版本，支援影像生成和編輯。

<link rel="alternate" hrefLang="en" href="https://mixroute.ai/docs/model-api/openai/gpt-image-2.5-flare" />

<link rel="alternate" hrefLang="zh-Hans" href="https://mixroute.ai/docs/zh-hans/model-api/openai/gpt-image-2.5-flare" />

<link rel="alternate" hrefLang="zh-Hant" href="https://mixroute.ai/docs/zh-hant/model-api/openai/gpt-image-2.5-flare" />

<link rel="alternate" hrefLang="ja" href="https://mixroute.ai/docs/ja/model-api/openai/gpt-image-2.5-flare" />

<link rel="alternate" hrefLang="x-default" href="https://mixroute.ai/docs/model-api/openai/gpt-image-2.5-flare" />

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

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


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