GPT Image 2.5 API
OpenAI GPT Image 2.5 提供文字轉圖片與編輯端點,分為 Flare(快速、均衡)與 Sunburst(講求精準)兩個等級,具備由 low 到 max 的五級品質、1K / 2K / 4K 輸出、十五種長寬比,並可依最多 16 張參考圖片進行編輯。請求格式與 GPT Image 2 相同,單張價格更低。
同一系列共四個端點:openai/gpt-image-2.5-flare 與 openai/gpt-image-2.5-sunburst,各有文字轉圖片與編輯。Flare 是低延遲、適合日常生成的快速均衡等級;Sunburst 每張圖花更多時間,在精細細節上畫質更高。兩者參數相同,包括 quality(low / medium / high / xhigh / max)、resolution(1k / 2k / 4k)、從 1:3 到 3:1 的十五種長寬比,以及 png / jpeg / webp 輸出,且價格相同,每張 $0.01 起。
/filters:quality(82)/examples/65eb1f4358f095655be595f6383ac7b1/778f811f-f612-4f0e-88c6-a2db94a2f825-15cd7658cdfc.webp)
概覽
關於 GPT Image 2.5 API
GPT Image 2.5 的功能、它在 OpenAI 模型陣容中的定位,以及團隊選用它的原因。
GPT Image 2.5 是來自 OpenAI 的圖片生成與編輯模型,可透過 WaveSpeedAI REST API 使用。OpenAI GPT Image 2.5 提供文字轉圖片與編輯端點,分為 Flare(快速、均衡)與 Sunburst(講求精準)兩個等級,具備由 low 到 max 的五級品質、1K / 2K / 4K 輸出、十五種長寬比,並可依最多 16 張參考圖片進行編輯。請求格式與 GPT Image 2 相同,單張價格更低。
同一系列共四個端點:openai/gpt-image-2.5-flare 與 openai/gpt-image-2.5-sunburst,各有文字轉圖片與編輯。Flare 是低延遲、適合日常生成的快速均衡等級;Sunburst 每張圖花更多時間,在精細細節上畫質更高。兩者參數相同,包括 quality(low / medium / high / xhigh / max)、resolution(1k / 2k / 4k)、從 1:3 到 3:1 的十五種長寬比,以及 png / jpeg / webp 輸出,且價格相同,每張 $0.01 起。
WaveSpeedAI 上的 GPT Image 2.5 系列提供 4 個 REST 端點,涵蓋 Image-To-Image, Text-To-Image 等工作流程。每個變體都有各自的定價、參數選項與範例輸出 — 請挑選符合您輸入模態與生產限制的版本,或使用同一組 API 金鑰呼叫多個變體,組合成多步驟的處理流程。
使用您呼叫其他 1,000+ 個 WaveSpeedAI AI 模型時相同的 API 金鑰、帳單帳戶與速率限制額度來執行 GPT Image 2.5。無需另外設定供應商、無需各家 SDK、無需處理各家不同的速率限制 — 一次整合,涵蓋從文字轉圖片、文字轉影片,到音訊合成、3D 生成、放大與編輯的所有功能。
規格
GPT Image 2.5 API 功能與上線狀態
開發者在選擇 API 前會查詢的模型專屬資訊:可用性、預期輸出長度、參考素材支援,以及目前可用的替代方案。
等級
Flare / Sunburst
Flare 用於快速、均衡的日常生成;Sunburst 在精細細節上有更高畫質。價格相同。
品質等級
5
每個端點皆提供 low / medium(預設)/ high / xhigh / max。
解析度
1K / 2K / 4K
文字轉圖片與編輯皆提供相同的三種解析度。
端點
4 種版本
Flare 與 Sunburst 各有文字轉圖片與編輯;編輯最多可接受 16 張參考圖片。
端點
所有 GPT Image 2.5 API 端點
WaveSpeedAI 目前提供 4 個 GPT Image 2.5 端點 — 請選擇符合您工作流程的變體。
/filters:quality(82)/media/images/1788941905586203566_DzViKczP.webp)
Gpt Image 2.5 Sunburst Edit
OpenAI's GPT Image 2.5 Sunburst Edit edits one or more reference images from natural-language instructions, with five quality tiers up to 4K. Sunburst is the precision-focused GPT Image 2.5 tier that spends more time per image for extra fidelity on intricate detail. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1788932339711919494_vrbhE9lL.webp)
Gpt Image 2.5 Sunburst Text To Image
OpenAI's GPT Image 2.5 Sunburst Text-to-Image generates high-quality images from natural-language prompts, with five quality tiers up to 4K. Sunburst is the precision-focused GPT Image 2.5 tier that spends more time per image for extra fidelity on intricate detail. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1788941885532951956_ciRgxR5Q.webp)
Gpt Image 2.5 Flare Edit
OpenAI's GPT Image 2.5 Flare Edit edits one or more reference images from natural-language instructions, with five quality tiers up to 4K. Flare is the fast, balanced GPT Image 2.5 tier for everyday generation at low latency. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/1788932462559654416_SrQZ8hrB.webp)
Gpt Image 2.5 Flare Text To Image
OpenAI's GPT Image 2.5 Flare Text-to-Image generates high-quality images from natural-language prompts, with five quality tiers up to 4K. Flare is the fast, balanced GPT Image 2.5 tier for everyday generation at low latency. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
範例
看看 GPT Image 2.5 的實際效果
由 GPT Image 2.5 API 生成的真實輸出。將滑鼠移到任一影片上即可預覽,點擊可開啟完整尺寸檢視器。
使用方式
如何使用 GPT Image 2.5 API
從註冊到完成生成,只要四個步驟。完整的 Python、Node.js 與 cURL 範例請見下方的 API 區段。
- 01
取得 API 金鑰
註冊 WaveSpeedAI 帳號,並從控制台複製您的 API 金鑰。新帳號會獲贈免費入門點數 — 足以在開始計費前執行數十次 Playground。
- 02
提交 prediction
將您的輸入以 JSON 格式 POST 到 https://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image。端點會立即回傳 prediction id — 生成是非同步進行的,因此推論期間您不需要保持連線。
- 03
輪詢完成狀態
GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result。狀態為 completed 時回傳輸出;狀態為 failed、cancelled、timeout 或 deleted 時停止並回報錯誤;其他狀態則持續輪詢。
- 04
讀取輸出網址
當狀態為 "completed" 時,從 data.outputs[0] 讀取網址。該網址指向 WaveSpeedAI CDN 上您生成的媒體 — 依您呼叫的 GPT Image 2.5 變體,可能是圖片、影片、音訊或 3D 檔案。
應用情境
您可以用 GPT Image 2.5 打造什麼
開發者與創作者使用 GPT Image 2.5 API 的常見工作流程。
Flare 重速度,Sunburst 重畫質
openai/gpt-image-2.5-flare/text-to-image 是日常使用的等級:快速出圖,適合草稿、社群素材與大量作業管線。openai/gpt-image-2.5-sunburst/text-to-image 每張圖花費較長時間,在精細細節上表現更好,例如機械零件、布料、小字體與密集場景。提示詞相同、價格相同,切換只需更換模型 ID。
一個參數控制五級品質
quality 參數可設為 low / medium / high / xhigh / max。預設為 medium,也是正式作業的最佳平衡點,1K 圖片每張 $0.024;low 為草稿等級,每張 $0.01;high、xhigh 與 max 則為主視覺與印刷素材增添更多細節。每個等級的價格都低於 GPT Image 2 的同名等級。
最多 16 張參考圖片的編輯
openai/gpt-image-2.5-flare/edit 與 openai/gpt-image-2.5-sunburst/edit 接受一段白話指令,加上最多 16 張參考圖片。可將產品移到新場景、更換光線或造型,或改編現有的品牌素材,同時保持主體不變。除非設定了 aspect_ratio,輸出會沿用第一張參考圖片的長寬比。
最高 4K,支援十五種長寬比
每個端點都可輸出 1k、2k 或 4k,並接受十五種長寬比:1:1、3:2、2:3、4:3、3:4、4:5、5:4、16:9、9:16、21:9、9:21、2:1、1:2、3:1、1:3。同一個提示詞即可產出方形的動態貼文、16:9 的主視覺與 3:1 的全景橫幅,無須後製裁切。
低成本迭代,一次交付
先以 low 品質與 1k 解析度探索提示詞方向,每張只要一美分;再以 medium 確定構圖;最後以交付所需的品質與解析度重新執行最終提示詞。各等級的請求格式不變,因此迭代流程只需修改兩個欄位。
從 GPT Image 2 無痛遷移
GPT Image 2.5 沿用 GPT Image 2 的請求格式:prompt、images、aspect_ratio、resolution、quality、output_format。將現有程式碼指向 openai/gpt-image-2.5-flare/text-to-image 或 /edit,並依自己的輸出結果重新確認所送出的品質等級,就完成了。GPT Image 2 仍可並行使用。
技巧
GPT Image 2.5 提示詞技巧
讓 GPT Image 2.5 產出更好結果的實用建議 — 整理自在實際生產流程中,圖片模型通用的有效做法。
- 01
從 Flare 開始,必要時升級到 Sunburst
Flare 是快速等級,也是迭代與大量作業的最佳預設。只有需要的鏡頭才改用 Sunburst 重跑,例如精密的機械細節、布料紋理與小字體,因為兩個等級的參數相同、價格也相同。
- 02
遷移後重新調整品質等級
GPT Image 2.5 使用五級品質量表,而非將 GPT Image 2 的三級重新命名。請從 medium 開始,以相同提示詞與現有輸出比較;若結果比以前模糊就調高一級,若成本超出預期就調低一級。
- 03
以 low / 1k 打草稿,以所需等級交付
1k 的 low 品質每張僅需一美分,提示詞探索幾乎等於免費。在此先鎖定構圖,再以 medium 或 high 與交付解析度重新執行最終提示詞。
- 04
以參考圖片使用 Edit 端點
openai/gpt-image-2.5-flare/edit 與對應的 Sunburst 版本接受最多 16 張參考圖片加上一段指令。請像描述要改變的部分一樣,明確說明必須保持不變的部分;除非另行設定,輸出會沿用第一張圖片的長寬比。
- 05
產品圖不要出現品牌與標誌
若想要乾淨的產品樣機,請要求無品牌、標籤素面的物品;否則模型很容易自行編造看似真實、卻無法使用的品牌標誌。
定價
GPT Image 2.5 API 定價
依輸出計費。最終費用會依您在各變體 Playground 中設定的參數(解析度、時長、輸出數量、參考素材)而調整。
| 端點 | 類型 | 起始價格 |
|---|---|---|
| openai/ | image-to-image | $0.039 |
| openai/ | text-to-image | $0.024 |
| openai/ | image-to-image | $0.039 |
| openai/ | text-to-image | $0.024 |
API
呼叫 GPT Image 2.5 API
請到 wavespeed.ai/accesskey 註冊取得 API 金鑰,然後透過 REST 提交 prediction。Playground 會為任何輸入組合產生可直接貼上的範例。
POSThttps://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "medium",
"output_format": "png"
}')
TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
-H "Authorization: Bearer $WAVESPEED_API_KEY")
RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
case "$STATUS" in
completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneconst submitUrl = "https://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');
async function requestJson(url, options = {}) {
const response = await fetch(url, options);
if (!response.ok) throw new Error(await response.text());
return response.json();
}
// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "medium",
"output_format": "png"
}),
});
const task = body.data ?? body;
const resultUrl = `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;
// 2. Poll until the prediction finishes.
while (true) {
const resultBody = await requestJson(resultUrl, {
headers: { "Authorization": `Bearer ${apiKey}` },
});
const result = resultBody.data ?? resultBody;
if (result.status === "completed") {
console.log(result.outputs);
break;
}
if (["failed", "cancelled", "timeout", "deleted"].includes(result.status)) throw new Error(JSON.stringify(result));
await new Promise(resolve => setTimeout(resolve, 2000));
}import json
import os
import time
from urllib.request import Request, urlopen
api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "medium",
"output_format": "png"
}
def request_json(url, data=None):
request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
with urlopen(request) as response:
return json.load(response)
# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image", json.dumps(payload).encode())
task = body.get("data", body)
result_url = f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"
# 2. Poll until the prediction finishes.
while True:
result_body = request_json(result_url)
result = result_body.get("data", result_body)
status = result.get("status")
if status == "completed":
print(result.get("outputs", []))
break
if status in {"failed", "cancelled", "timeout", "deleted"}:
raise RuntimeError(result)
time.sleep(2)比較
GPT Image 2.5 與其他選擇比較
在 WaveSpeedAI 上,何時該選擇 GPT Image 2.5 而非類似的模型。
GPT Image 2.5 vs GPT Image 2
GPT Image 2.5 新增 Flare / Sunburst 的區分、多了 xhigh 與 max 兩個品質等級,且每個等級的價格都更低:medium 每張 $0.024 起,GPT Image 2 的 medium 則為 $0.06,不過就畫質而言,2.5 的 high 與 2 的 medium 更為接近。GPT Image 2 仍然上線,兩者參數相同。
GPT Image 2.5 vs Nano Banana 2
Nano Banana 2 提供最多 5 個角色的一致性與可選用的網頁搜尋。GPT Image 2.5 則以五級明確的品質等級、擅長精細細節的 Sunburst 等級、4K 輸出,以及可接受最多 16 張參考圖片的編輯端點回應。
GPT Image 2.5 vs Seedream 5
Seedream 5 Pro 在資訊密集的版面、互動式精準編輯與圖層分離上領先。GPT Image 2.5 則適合追求忠於提示詞的攝影與文字渲染,並以簡單的 quality 參數控制;其 low 與 medium 等級在大量作業的價格上低於 Seedream 5 Pro。
常見問題
GPT Image 2.5 API — 常見問題
定價、授權、整合 — 關於在 WaveSpeedAI 上執行 GPT Image 2.5 的常見問題。
GPT Image 2.5 的 Flare 與 Sunburst 有什麼差別?
Flare 是低延遲、適合日常生成的快速均衡等級。Sunburst 是講求精準的等級,每張圖花更多時間,在精細細節上畫質更高。兩者參數相同、價格相同,只要更換模型 ID 即可切換。
GPT Image 2.5 的費用是多少?
文字轉圖片依品質與解析度按張計費,以 1K / 2K / 4K 計:low $0.01 / $0.02 / $0.03,medium $0.024 / $0.04 / $0.07,high $0.09 / $0.15 / $0.27,xhigh $0.16 / $0.27 / $0.48,max $0.36 / $0.60 / $1.00。編輯每張加收 $0.015,第一張以外的每張參考圖片再加收 $0.015。Flare 與 Sunburst 價格相同。
GPT Image 2.5 的品質等級與 GPT Image 2 相比如何?
GPT Image 2.5 有五個等級(low、medium、high、xhigh、max),GPT Image 2 則有三個,且每個等級的價格都低於 GPT Image 2 的同名等級:medium 的 1K 圖片每張 $0.024,GPT Image 2 為 $0.06。這些等級並未定義為與 GPT Image 2 的等級等同,因此請以自己的提示詞比較輸出,必要時從 medium 往上或往下調整一級。
GPT Image 2.5 的編輯可接受幾張參考圖片?
每次請求最多 16 張。除非明確設定 aspect_ratio,輸出會維持第一張參考圖片的長寬比。
GPT Image 2 仍然可用嗎?
可以。openai/gpt-image-2/text-to-image 與 openai/gpt-image-2/edit 與 GPT Image 2.5 並行上線,現有管線可依自己的時程遷移。
什麼是 GPT Image 2.5 API?
GPT Image 2.5 是 OpenAI 的圖片生成模型,在 WaveSpeedAI 上以 REST API 提供。OpenAI GPT Image 2.5 提供文字轉圖片與編輯端點,分為 Flare(快速、均衡)與 Sunburst(講求精準)兩個等級,具備由 low 到 max 的五級品質、1K / 2K / 4K 輸出、十五種長寬比,並可依最多 16 張參考圖片進行編輯。請求格式與 GPT Image 2 相同,單張價格更低。您可以透過程式呼叫,也可以在上方連結的 Playground 試用。
如何呼叫 GPT Image 2.5 API?
註冊 WaveSpeedAI 帳號,從 /accesskey 複製您的 API 金鑰,然後將您的輸入以 JSON 格式 POST 到 https://api.wavespeed.ai/api/v3/openai/gpt-image-2.5-flare/text-to-image。端點會回傳 prediction id。請從約每 2 秒輪詢一次結果端點開始,長時間任務可拉長間隔,並在任何終止狀態時停止。上方提供適用於生產環境的 Python / Node.js / cURL 範例。
GPT Image 2.5 API 的費用是多少?
GPT Image 2.5 每次執行 $0.024 起。實際費用會依您設定的參數(解析度、時長、輸出數量、參考素材)而調整。Playground 中「生成」按鈕旁的即時費用預覽會顯示您目前輸入的確切價格。
有哪些 GPT Image 2.5 變體可用?
WaveSpeedAI 提供 4 個已上線的 GPT Image 2.5 端點:openai/gpt-image-2.5-sunburst/edit, openai/gpt-image-2.5-sunburst/text-to-image, openai/gpt-image-2.5-flare/edit, openai/gpt-image-2.5-flare/text-to-image。每個變體都有各自的 Playground 頁面與定價。
GPT Image 2.5 的輸出可以商用嗎?
商業使用權依 OpenAI 的模型授權而定。多數 OpenAI 模型允許商用輸出;請參閱各模型 Playground 頁面中的授權摘要,以及 WaveSpeedAI 的服務條款了解平台層級的條件。
為什麼要在 WaveSpeedAI 上使用 GPT Image 2.5,而不是直接使用?
一組 API 金鑰、一個帳單帳戶,即可使用 GPT Image 2.5 以及來自其他供應商的 1,000+ 個 AI 模型。無需設定各家 SDK、無需處理各自獨立的速率限制、無需為每個供應商重寫整合程式碼。價格通常與 OpenAI 的直接 API 相當或更低。
提供者
關於 OpenAI
GPT Image 2.5 背後的團隊,以及 OpenAI 在 WaveSpeedAI 上的完整模型陣容。
OpenAI 是 ChatGPT、GPT-4 與 GPT-5、DALL·E、Sora 與 Whisper 背後的實驗室。其圖像與影片模型廣泛部署於消費端與企業應用,重視指令遵循、寫實度與保守的安全防護。其圖像 API 常被需要明確商用授權的行銷與編輯類情境選用。
在 WaveSpeedAI 上開始使用 GPT Image 2.5 打造應用
註冊即贈免費入門點數。一組 API 金鑰,涵蓋來自 OpenAI 與所有其他供應商的 1,000+ 個 AI 模型。
/filters:quality(82)/examples/c3e3363c7d33a806ce6fe98cf21cf661/9d6b61ad-b809-4f9c-bfe3-0585cc2c1e01-1742669bc9d1.webp)
/filters:quality(82)/examples/1037c9f9d473a54f9d370b4a8fde8373/81e219ea-92d5-4c86-b847-09f80ba124a6-8b0b701ed2fa.webp)
/filters:quality(82)/examples/d057ae3ddd6f23f3c65c80bad61a0252/a5ccbd20-810d-4ed5-99b1-db4019fac97e-8ffa68583377.webp)
/filters:quality(82)/examples/a0d10c2f93ded2a4e86dcb992ca07531/d4a0066f-e831-421e-aac4-33706114407d-a2c6640ae77a.webp)