Skip to content
OpenAI · GPT Image

gpt-image-2.6-sunburst API

透過 APISea 使用 gpt-image-2.6-sunburst 生成及編輯細節豐富的圖片、GIF 和 SVG。

圖片生成圖片非同步任務提示詞快取
模型 ID
gpt-image-2.6-sunburst

gpt-image-2.6-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.6-sunburst?

OpenAI 的 gpt-image-2.6-sunburst 是一款 GPT Image 模型,可在 APISea 上生成及編輯圖片。此模型著重細節與編輯一致性,尤其適合以中或高品質進行多輪編輯。您可以使用文字提示或最多 16 張參考圖片建立工作流程,並輸出 PNG、JPEG、WebP、動畫 GIF 或 SVG。靜態圖片控制項包括長寬比、精確像素尺寸、解析度、品質和背景設定。編輯功能支援修補遮罩與標記指引,但須遵守格式限制。

請求採非同步方式執行:提交生成任務、取得任務 ID,接著查詢檔案 URL。APISea 提供一組 API key,以及與 OpenAI 相容的 base URL:https://api.apisea.ai/v1。採按用量計費,僅對成功的請求收費;文字輸入、圖片輸入和圖片輸出 token 各有不同費率,另有快取輸入費率。預設設定的價格約比供應商牌價低 12%。

gpt-image-2.6-sunburst 的特色

著重細節的圖片編輯

Sunburst 著重細節與編輯一致性,尤其適合以中或高品質進行多輪編輯。

多種輸出格式

可輸出 PNG、JPEG、WebP、動畫 GIF 或 SVG。GIF 和 SVG 請求皆支援文字提示與參考圖片。

依參考圖引導生成

可透過公開的 HTTP(S) URL 或圖片 Data URL 提供最多 16 張參考圖片。靜態圖片編輯也支援 PNG alpha 通道遮罩。

明確的渲染控制項

可設定解析度、品質、尺寸和背景。規劃複雜度與渲染品質分開控制。

4 個步驟呼叫 gpt-image-2.6-sunburst API

  1. 01

    取得 API key

    登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。

  2. 02

    設定 base URL

    在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。

  3. 03

    傳送請求

    呼叫 POST /v1/images/generations,並使用下方的參數及 "model": "gpt-image-2.6-sunburst"。

  4. 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.6-sunburst",
  "prompt": "A cozy reading nook by a rainy window, warm lamp light",
  "size": "1:1",
  "resolution": "1k",
  "quality": "medium",
  "n": 1
}'

參數

參數類型必填預設說明
modelstring必填—Model name: `gpt-image-2.6-flare` or `gpt-image-2.6-sunburst`.
nsfw_checkboolean選填falseWhether to run content moderation before submitting the image task.
promptstring必填—Generation or editing instructions, up to 32,000 characters. Describe the subject, composition, and what to change or preserve.
sizestring選填autoStill images and SVG support 15 aspect ratios, exact pixels such as `1600x1200`, or `auto`. Explicit `auto` lets the upstream model choose; omitting this field for still-image editing selects dimensions from the first input image’s aspect ratio and `resolution`. GIF sizes follow separate rules below.
resolutionstring選填1k
qualitystring選填auto
ninteger選填1Integer from `1` to `4`; for GIF, this is the number of animations. SVG requires `1`. Explicit `0`, negative values, or values above `4` return HTTP 400 instead of falling back to the default.
output_formatstring選填png
output_compressioninteger選填—Integer from `0` to `100`, for `jpeg` / `webp` only. Out-of-range values or use with `png` / `gif` / `svg` return HTTP 400 at submission.
backgroundstring選填—
moderationstring選填lowContent moderation level: `auto` / `low`. Other values return HTTP 400 at submission.
image_urlsstring[]選填—Up to 16 reference images as public HTTP(S) image URLs or image Data URLs, for still-image editing, GIF, or SVG generation. For local files, use the [image upload endpoint](/docs/uploads/images) first and pass the returned `url`.
mask_urlstring選填—Inpainting mask, requiring `image_urls`. Use a PNG with an alpha channel matching the first input image’s dimensions; fully transparent regions indicate areas to edit. Accepts an image URL or PNG Data URL. Cannot be combined with markup; unchanged pixels outside the mask are not guaranteed. GIF and SVG do not support masks or markup.
complexitystring選填—Planning level: `low` / `medium` / `high`, with an upstream default of `high`, independent of rendering `quality`. Use `low` for focused edits and `high` for dense text, complex layouts, or object relationships; higher planning may be slower or introduce extra changes. No separate fee; supported only by 2.6.
safety_identifierstring選填—Optional stable end-user identifier, up to 128 characters; a hash of a username or email is recommended. APISea does not forward it upstream by default, only when the channel permits it. Omitting it does not affect usage.

使用 gpt-image-2.6-sunburst 可以打造什麼

反覆調整創意作品

建立審閱工作流程,透過多輪描述需要修改及保留的內容,逐步完善圖片。

指定區域的圖片修訂

讓使用者提供參考圖片與修補遮罩,以標示需要編輯的區域;但不要假設遮罩以外的像素會保持不變。

動畫內容工具

根據文字指示或參考圖片生成動畫 GIF,並可要求每個任務生成一至四個動畫。

SVG 素材生成

根據提示或參考圖片建立 SVG 素材,並明確設定背景,以輸出透明背景。

提升結果品質的技巧

  • 01

    說明要修改與保留的內容

    請描述主體、構圖、要修改的內容,以及要保留的元素。提示最多可包含 32,000 個字元。

  • 02

    明確設定品質

    若需要固定設定,請選擇明確的品質級別。若省略品質設定或設為 auto,系統會按最高品質預留資金,最後依實際選定的級別收費。

  • 03

    將規劃與渲染分開設定

    針對目標明確的編輯,使用低複雜度;針對密集文字、複雜版面或物件關係,使用高複雜度。複雜度與品質互不影響。

  • 04

    以非同步方式處理任務

    將請求傳送至 POST /v1/images/generations,讀取 data[0].task_id,接著查詢任務以取得檔案 URL。提交請求的回應不會包含已完成的圖片。

限制與須知

  • GIF 和 SVG 不支援遮罩或標記。

  • SVG 的 n 必須為 1;其他支援的輸出格式可將 n 設為 1 到 4。

  • 輸出壓縮僅適用於 JPEG 和 WebP,且必須是 0 到 100 的整數。

gpt-image-2.6-sunburst API 常見問題

在 APISea 上使用 gpt-image-2.6-sunburst 的費用是多少?

文字輸入每 1M tokens 收費 $4.40,圖片輸入每 1M tokens 收費 $7.04,圖片輸出每 1M tokens 收費 $26.40。快取文字輸入每 1M tokens 收費 $1.10,快取圖片輸入每 1M tokens 收費 $1.76。預設設定的價格約比供應商牌價低 12%,且僅對成功的請求收費。

如何透過 API 呼叫 gpt-image-2.6-sunburst?

向 https://api.apisea.ai/v1/images/generations 傳送使用 Bearer 驗證的 POST 請求,並將 model 設為 gpt-image-2.6-sunburst,同時提供必填的 prompt。從回應中讀取 data[0].task_id,接著查詢該任務以取得輸出檔案 URL。

支援哪些解析度和品質設定?

resolution 可設為 1k、2k 或 4k;若已提供精確像素尺寸,則會忽略此設定。quality 可設為 low、medium、high、xhigh、max 或 auto;靜態圖片和 SVG 也支援 15 種長寬比、精確像素尺寸或自動尺寸。

提示詞和參考圖片有什麼限制?

提示詞最多支援 32,000 個字元,image_urls 最多可接受 16 張參考圖片。此模型列出的限制為 1,000,000 個輸入 tokens 和 1,000,000 個輸出 tokens。

Sunburst 和 Flare 有什麼差異?

gpt-image-2.6-sunburst 著重細節與編輯一致性,尤其適合以中等或高品質進行多輪編輯。建議將 gpt-image-2.6-flare 作為預設選項,以加快生成速度並快速反覆調整。兩者在相同設定下的 token 費率與用量相同。

我可以將生成的圖片用於商業用途嗎?

商業用途須遵守供應商的條款。將輸出用於商業用途前,請詳閱 OpenAI 適用的條款,以及與輸入圖片相關的任何權利規定。

相關模型

涵蓋:250+ 個模型 · 最低儲值 $50

開始使用 gpt-image-2.6-sunburst 開發

一把金鑰,$50 起按量付費,僅對成功的請求收費。