gpt-image-2.5-sunburst API 定價
所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。
| Token 類型 | APISea | 官方 | 節省 |
|---|---|---|---|
| 文字輸入 每 1M tokens | $4.40 | $5.00 | −12% |
| 快取文字輸入 每 1M tokens | $1.10 | $1.25 | −12% |
| 圖片輸入 每 1M tokens | $7.04 | $8.00 | −12% |
| 快取圖片輸入 每 1M tokens | $1.76 | $2.00 | −12% |
| 圖片輸出 每 1M tokens | $26.40 | $30.00 | −12% |
什麼是 gpt-image-2.5-sunburst?
gpt-image-2.5-sunburst 是 OpenAI 的 GPT Image 模型,可用於圖片生成與精準編輯。在 APISea 上,它適合製作產品圖片、廣告創意和進行詳細的多輪編輯。您可以根據文字生成圖片、提供最多 16 張參考圖片進行編輯,或使用透明 PNG 遮罩進行局部修補。prompt 可指定主體、構圖、風格、光線,以及要保留或修改的細節。
輸出控制項包括 15 種長寬比、精確的像素尺寸、1K/2K/4K 解析度級別,以及從 low 到 max 的品質設定。您可以選擇 PNG、JPEG 或 WebP,每個請求生成一到四張圖片。APISea 提供一組 API key 和 OpenAI 相容的 base URL,並採按量計費,僅針對成功的請求收費。文字輸入費用為每 1M tokens $4.40,圖片輸入為每 1M tokens $7.04,圖片輸出為每 1M tokens $26.40。預設設定的費用約比供應商牌價低 12%。
gpt-image-2.5-sunburst 的特色
著重精準度的圖片編輯
提供最多 16 張參考圖片即可啟用編輯模式。Sunburst 著重編輯精準度,適合製作用素材和進行詳細的多輪編輯。
使用遮罩進行局部修補
使用透明 PNG 遮罩引導局部修補。必須同時提供參考圖片,遮罩才會生效。
彈性的輸出尺寸
可從 15 種長寬比中選擇,或指定精確的像素尺寸。依長寬比調整尺寸時,支援 1K、2K 和 4K 解析度級別。
品質與格式控制
可選擇 low、medium、high、xhigh、max 或 auto 品質。輸出格式可選 PNG、JPEG 或 WebP,並可調整 JPEG 與 WebP 的壓縮設定。
4 個步驟呼叫 gpt-image-2.5-sunburst API
- 01
取得 API key
登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。
- 02
設定 base URL
在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。
- 03
傳送請求
呼叫 POST /v1/images/generations,並使用下方的參數及 "model": "gpt-image-2.5-sunburst"。
- 04
處理回應
回應中包含 task_id。持續輪詢 GET /v1/tasks/{task_id},直到狀態為 completed,然後下載結果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2.5-sunburst",
"prompt": "a cozy reading nook by a rainy window, warm lamp light, cinematic lighting",
"size": "1:1",
"resolution": "1k",
"quality": "medium",
"n": 1
}'參數
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
model | string | 必填 | — | Image model name: `gpt-image-2.5-flare` or `gpt-image-2.5-sunburst`. |
nsfw_check | boolean | 選填 | false | Whether to run content moderation before submitting the image task. |
prompt | string | 必填 | — | Text description of the image to generate or edit. Describe the subject, scene, composition, style, lighting, and anything that must be preserved or changed. |
size | string | 選填 | auto | Output aspect ratio or exact pixel dimensions. |
resolution | string | 選填 | 1k | Resolution tier used with an aspect-ratio `size`: `1k`, `2k`, or `4k`. This field is ignored for exact pixel dimensions. |
quality | string | 選填 | auto | Image quality: `low`, `medium`, `high`, `xhigh`, `max`, or `auto`. |
n | integer | 選填 | 1 | Number of images to generate. Range: `1` to `4`. Pass a number, not a string. |
output_format | string | 選填 | png | Output file format: `png`, `jpeg`, or `webp`. |
output_compression | integer | 選填 | — | Compression level from `0` to `100`. Only applies to `jpeg` and `webp`. |
background | string | 選填 | — | Background mode: `transparent`, `opaque`, or `auto`. |
moderation | string | 選填 | low | Content moderation level: `auto` or `low`. APISea explicitly sends `low` when omitted; an explicit `auto` value is passed through. |
image_urls | string[] | 選填 | — | Reference image URLs for image-to-image generation or editing. Up to `16` images are accepted, and including this field activates editing mode. |
mask_url | string | 選填 | — | Mask image for local inpainting. It only takes effect when `image_urls` is also provided. Both `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst` support this parameter. |
使用 gpt-image-2.5-sunburst 可以打造什麼
製作用產品圖片
建立編輯工作流程,讓使用者提交產品參考圖片,以及說明要保留或修改哪些內容的指示。
廣告創意修改
根據文字生成廣告活動圖片,或透過明確的構圖、風格和光線指示修改現有創意素材。
局部修改素材
讓使用者提交參考圖片和透明 PNG 遮罩,以進行局部修補,而非要求重新生成整張圖片。
多輪創意審查
建立審查工作流程,將每次修改後的圖片作為下一輪詳細編輯指示的參考圖片。
提升結果品質的技巧
- 01
明確說明需保留的內容
在 prompt 中區分必須維持不變的細節與要修改的部分。請明確描述主體、場景、構圖、風格和光線。
- 02
配合參考圖片的比例
使用圖片轉圖片請求時,省略 size,讓服務根據輸入圖片的長寬比和解析度計算尺寸。指定精確像素尺寸時,resolution 會被忽略。
- 03
規劃非同步處理
請儲存傳回的 task_id,並查詢任務狀態,再將生成作業視為完成。n 請以 1 到 4 的整數傳入,不要傳入字串。
- 04
將快取輸入納入估算
此模型支援 prompt 快取讀取。快取文字輸入費用為每 1M tokens $1.10,快取圖片輸入費用為每 1M tokens $1.76;估算費用時請分別計算。
限制與須知
請求採非同步處理,並傳回 task_id 供您查詢狀態。
編輯最多可接受 16 張參考圖片,且參考圖片網址必須可透過 HTTP(S) 公開存取。
透明背景須使用 PNG 或 WebP 輸出;JPEG 不支援 alpha 通道。
gpt-image-2.5-sunburst API 常見問題
在 APISea 上使用 gpt-image-2.5-sunburst 的費用是多少?
文字輸入費用為每 1M tokens $4.40,圖片輸入為每 1M tokens $7.04,圖片輸出為每 1M tokens $26.40。快取文字輸入費用為每 1M tokens $1.10,快取圖片輸入費用為每 1M tokens $1.76。預設設定的費用比供應商牌價低約 12%,且僅對成功的請求收費。
如何透過 APISea 呼叫 gpt-image-2.5-sunburst?
使用 Bearer Token 驗證,向 https://api.apisea.ai/v1/images/generations 傳送 POST 請求。將 model 設為 gpt-image-2.5-sunburst 並提供提示詞;非同步回應會傳回 task_id,供您查詢狀態。
支援哪些尺寸、品質和輸出選項?
您可以使用 15 種長寬比或指定精確的像素尺寸;使用長寬比設定尺寸時,可選擇 1k、2k 或 4k 解析度級別。品質選項包括 low、medium、high、xhigh、max 和 auto;輸出格式則有 PNG、JPEG 和 WebP。每次請求支援生成一到四張圖片。
它能編輯圖片和進行局部重繪嗎?
可以。提供 image_urls,最多可加入 16 張可公開存取的參考圖片,以啟用編輯模式。若要進行局部重繪,還需提供指向透明 PNG 遮罩的 mask_url。
sunburst 與 gpt-image-2.5-flare 有何差異?
Sunburst 著重於提升成品商品圖片、廣告素材和多輪細節編輯的精準度。Flare 則適合日常圖片、快速原型製作和批次生成,速度更快。使用相同參數時,兩者的 token 用量和價格完全相同。
我可以將生成的圖片用於商業用途嗎?
商業用途須遵守供應商的條款。將輸出用於正式產品或廣告之前,請先詳閱 OpenAI 適用條款,以及任何與參考圖片相關的權利規定。
