Felo API PlatformFelo API Platform
返回模型列表

GPT Image 2.5 Flare API

GPT Image 2.5 Flare 是 OpenAI 推出的高速圖像生成模型,適合大量、互動式的日常出圖需求。

GPT Image 2.5 Flare 是 GPT Image 2.5 系列中以速度為導向的版本,與強調精準度的 GPT Image 2.5 Sunburst 同屬一系列。它同時接受文字與圖像輸入,並輸出圖像,可用於圖像生成與編輯。OpenAI 表示它在維持與 GPT Image 2 相當的圖像品質下,生成速度提升超過 50%,並將它定位為多數應用的預設選擇。

在功能上,每次請求最多可接受 16 張參考圖像進行編輯,支援超過 9 種長寬比(包含 1:1、3:2、2:3、4:3、3:4 與 16:9),每次最多生成 10 張圖像,並提供 low、medium、high、xhigh、max 與 auto 六種品質設定,以及 1K、2K、4K 解析度與透明背景輸出。它可透過專用的 Images API 使用,也能作為 Responses API 中的圖像生成工具。其參數與 Sunburst 相同,切換時只需更改模型名稱。

這個模型特別適合大量日常出圖、創作者內容、快速視覺原型、社群媒體圖片、應用程式與網站的日常圖像生成,以及頻繁製作行銷活動的不同版本。建議先用 Flare 廣泛探索方向,再交由 Sunburst 進行最終的精準調整;資訊圖表與複雜遊戲素材等講究精確度的任務則更適合 Sunburst。

更新時間:

模型 ID

gpt-image-2.5-flare
輸入
text / image
輸出
image

核心要點

  • 速度導向的 GPT Image 2.5 系列版本
  • 維持與 GPT Image 2 相當的品質
  • 生成速度提升超過 50%
  • 最多 16 張參考圖像編輯
  • 一次最多生成 10 張圖像
  • 支援 1K、2K、4K 與透明背景

供應商

最優價格
2 個供應商

比較不同供應商的呼叫價格,點擊供應商可查看完整費用和適用條件。

供應商 · 計費明細
可用率
$5未公布未公布
$5$3$30$18$1.25$0.75

基準測試

  • Image Arena

    排名僅次於 Sunburst

    #2

分數來自模型廠商公布的資料,未經獨立驗證。

快速开始

提交圖片任務、輪詢狀態,再儲存圖片。以下範例使用 curl 和 Python 3(僅標準函式庫,無須安裝依賴)。

POST https://openapi.felo.ai/api/v1/images/generations

1填入 API key

從 Felo API Platform 帳戶建立 key,並設定為環境變數。

export FELO_API_KEY="YOUR_API_KEY"

2發出第一次請求

選用參數的值依模型而異,範例不預設這些值;加入前請在 Playground 確認。請求欄位與 model、prompt 同層,不包在 input 中。

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
  "model": "gpt-image-2.5-flare"
}'

3輪詢任務

提交後取得 task_id;queued、running 時每 3 秒查詢一次,succeeded、failed 或 interrupted 時停止。範例最多等待 30 分鐘。保留 created.json 可繼續查詢同一任務,避免重複提交。

python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen

task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800

while task["status"] in ("queued", "running"):
    if time.monotonic() >= deadline:
        raise TimeoutError(f"Keep task_id={task_id} to resume polling")
    time.sleep(3)
    with urlopen(Request(url, headers=headers), timeout=60) as response:
        task = json.load(response)
    if task.get("task_id") != task_id or task.get("kind") != "image":
        raise ValueError("Unexpected task response")
    print(task["status"])

if task["status"] != "succeeded":
    raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
    raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY

4下載輸出

成功後從 task.json 讀取 outputs 並儲存。結果相容 HTTPS 位址、URL 物件和 b64_json。簽名位址請及時下載;下載圖片時無須攜帶 API Key。

python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen

task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
    raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}

for index, output in enumerate(task["outputs"], 1):
    item = output if isinstance(output, dict) else {}
    url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
    mime = item.get("media_type") or "image/png"
    if url and url.startswith("https://"):
        with urlopen(url, timeout=60) as response:
            data = response.read()
            mime = response.headers.get_content_type()
    elif url and url.startswith("data:image/") and ";base64," in url:
        header, encoded = url.split(",", 1)
        mime = header[5:].split(";", 1)[0]
        data = base64.b64decode(encoded, validate=True)
    elif item.get("b64_json"):
        data = base64.b64decode(item["b64_json"], validate=True)
    else:
        raise ValueError("Unrecognized image output")
    path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
    path.write_bytes(data)
    print(path)
PY
input_references

編輯圖片時,將範例位址替換為你的 HTTPS 圖片位址或 base64 圖片 data URL。提交一次後,沿用相同的輪詢與儲存步驟。

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
  "model": "gpt-image-2.5-flare",
  "input_references": [
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/product.png"
      }
    }
  ]
}'

支援的參數

  • n
  • quality
  • background
  • aspect_ratio
  • input_references
  • output_compression

想查看完整文件?

API 文件 →

常見問題

什麼是 GPT Image 2.5 Flare?

GPT Image 2.5 Flare 是 GPT Image 2.5 系列中以速度為導向的版本,與強調精準度的 GPT Image 2.5 Sunburst 同屬一系列。它同時接受文字與圖像輸入,並輸出圖像,可用於圖像生成與編輯。OpenAI 表示它在維持與 GPT Image 2 相當的圖像品質下,生成速度提升超過 50%,並將它定位為多數應用的預設選擇。 在功能上,每次請求最多可接受 16 張參考圖像進行編輯,支援超過 9 種長寬比(包含 1:1、3:2、2:3、4:3、3:4 與 16:9),每次最多生成 10 張圖像,並提供 low、medium、high、xhigh、max 與 auto 六種品質設定,以及 1K、2K、4K 解析度與透明背景輸出。它可透過專用的 Images API 使用,也能作為 Responses API 中的圖像生成工具。其參數與 Sunburst 相同,切換時只需更改模型名稱。 這個模型特別適合大量日常出圖、創作者內容、快速視覺原型、社群媒體圖片、應用程式與網站的日常圖像生成,以及頻繁製作行銷活動的不同版本。建議先用 Flare 廣泛探索方向,再交由 Sunburst 進行最終的精準調整;資訊圖表與複雜遊戲素材等講究精確度的任務則更適合 Sunburst。

如何計算呼叫費用?

費用取決於你使用的供應商、對應價格和實際用量。長文字輸入等情況可能適用不同價格,詳見計費明細。

GPT Image 2.5 Flare 支援哪些輸入與輸出?

它接受文字與圖像輸入,並輸出圖像。純文字生成只需提供提示詞,圖像編輯則以 input_urls 指定參考圖像。

每次請求可以處理多少張參考圖像與生成多少張圖像?

每次請求最多可接受 16 張參考圖像進行編輯,並可一次生成最多 10 張圖像。

它支援哪些長寬比與解析度?

支援超過 9 種長寬比,包含 1:1、3:2、2:3、4:3、3:4 與 16:9,並提供 1K、2K 與 4K 解析度。

它適合哪些任務?

適合大量日常出圖、創作者內容、快速視覺原型、社群媒體圖片,以及頻繁製作行銷活動版本。若需要最終的精準編輯,建議改用 GPT Image 2.5 Sunburst。

它與 GPT Image 2.5 Sunburst 有什麼差別?

Flare 以速度為導向,適合互動與高頻率生成;Sunburst 則強調精準度,適合最終的精細調整。兩者參數相同,切換時只需更改模型名稱。

可以透過哪些 API 使用?

可透過專用的 Images API 使用,也能作為 Responses API 中的圖像生成工具。

相關模型