gpt-image-2.6-flare 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-flare?
gpt-image-2.6-flare 是 OpenAI 的 GPT Image 模型,提供更快的生成速度與快速反覆調整,也是文件中建議的預設選項。在 APISea 上,開發者可用它進行文字轉圖片生成、參考圖片編輯、動畫 GIF 製作和 SVG 輸出。請求可接受最多 32,000 個字元的提示詞及最多 16 張參考圖片,並可設定尺寸、解析度、品質、背景和規劃複雜度。靜態圖片編輯也支援修補遮罩或依標記指示進行編輯。
所有工作流程都使用相同的非同步圖片生成 endpoint:提交請求、讀取任務 ID,接著查詢任務以取得檔案 URL。APISea 提供單一 API key 和與 OpenAI 相容的 base URL,採用隨用隨付方式,且僅對成功的請求收費。文字輸入每 1M tokens 收費 $4.40,圖片輸入每 1M tokens 收費 $7.04,圖片輸出每 1M tokens 收費 $26.40。快取輸入另有費率,預設設定的價格約比供應商牌價低 12%。
gpt-image-2.6-flare 的特色
快速反覆生成圖片
文件建議將 Flare 作為預設選項,以加快生成速度並快速反覆調整。
多種輸出格式
根據文字提示詞生成 PNG、JPEG、WebP、動畫 GIF 或 SVG。生成 GIF 和 SVG 時也可使用參考圖片。
參考圖片引導編輯
最多可提供 16 張參考圖片進行編輯。靜態圖片工作流程支援修補遮罩和依標記指示進行編輯,但受格式限制。
明確的渲染控制項
設定品質、解析度、尺寸、背景和規劃複雜度。靜態圖片和 SVG 支援 15 種長寬比或精確像素尺寸。
4 個步驟呼叫 gpt-image-2.6-flare 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.6-flare"。
- 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-flare",
"prompt": "A cozy reading nook by a rainy window, warm lamp light",
"size": "1:1",
"resolution": "1k",
"quality": "medium",
"n": 1
}'參數
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
model | string | 必填 | — | Model name: `gpt-image-2.6-flare` or `gpt-image-2.6-sunburst`. |
nsfw_check | boolean | 選填 | false | Whether to run content moderation before submitting the image task. |
prompt | string | 必填 | — | Generation or editing instructions, up to 32,000 characters. Describe the subject, composition, and what to change or preserve. |
size | string | 選填 | auto | Still 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. |
resolution | string | 選填 | 1k | |
quality | string | 選填 | auto | |
n | integer | 選填 | 1 | Integer 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_format | string | 選填 | png | |
output_compression | integer | 選填 | — | Integer from `0` to `100`, for `jpeg` / `webp` only. Out-of-range values or use with `png` / `gif` / `svg` return HTTP 400 at submission. |
background | string | 選填 | — | |
moderation | string | 選填 | low | Content moderation level: `auto` / `low`. Other values return HTTP 400 at submission. |
image_urls | string[] | 選填 | — | 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_url | string | 選填 | — | 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. |
complexity | string | 選填 | — | 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_identifier | string | 選填 | — | 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-flare 可以打造什麼
創意審核工具
打造提示詞轉圖片介面,每次請求最多生成四個輸出,供團隊審閱並反覆調整視覺概念。
精準圖片編輯器
讓使用者提交參考圖片和指示,說明要修改或保留的內容;靜態圖片編輯也可選擇使用遮罩,精準調整指定區域。
動畫內容工作流程
透過與靜態圖片相同的 endpoint,根據文字提示詞或參考圖片製作動畫 GIF。
SVG 素材生成
打造能將文字指示或參考圖片轉換為 SVG 輸出的工具,並可明確設定背景。
提升結果品質的技巧
- 01
以非同步方式處理任務
將請求提交至 POST /v1/images/generations,讀取 data[0].task_id,再查詢任務以取得檔案 URL;提交請求的回應中不會直接包含已完成的圖片。
- 02
必要時指定品質
若要固定設定,請選擇明確的品質等級。若 quality 設為 auto 或未指定,系統會先按 max 品質預留費用,最後再依實際選用的品質等級計費。
- 03
將規劃與渲染分開設定
品質和複雜度可分開設定:low 適合聚焦的編輯;對於密集文字、複雜版面或物件關係,建議使用 high。
- 04
謹慎選擇尺寸
可使用長寬比並將解析度設為 1k、2k 或 4k,也可提供精確像素尺寸。精確尺寸會優先於解析度;靜態圖片編輯若未指定尺寸,則會使用第一張參考圖片的長寬比。
限制與須知
提示詞最多可有 32,000 個字元,每個請求最多可接受 16 張參考圖片。
GIF 和 SVG 不支援遮罩或標記;SVG 的 n 必須為 1。
修補遮罩不能與標記搭配使用,且不保證遮罩外未變更的像素會保持不變。
gpt-image-2.6-flare API 常見問題
在 APISea 上使用 gpt-image-2.6-flare 的費用是多少?
文字輸入每 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.6-flare?
使用 APISea 金鑰進行 Bearer Token 驗證,並向 https://api.apisea.ai/v1/images/generations 傳送 POST 請求,將 model 設為 gpt-image-2.6-flare,並提供必要的 prompt。從回應中讀取 data[0].task_id,接著查詢該任務以取得檔案 URL。
支援哪些輸出格式與品質設定?
輸出格式包括 png、jpeg、webp、gif 和 svg。品質可設為 low、medium、high、xhigh、max 或 auto;解析度可設為 1k、2k 或 4k,若已提供確切像素尺寸則會忽略解析度設定。
輸入和輸出上限是多少?
列出的輸入與輸出上限各為 1,000,000 個 token;而圖片 endpoint 對 prompt 的限制為 32,000 個字元,參考圖片最多 16 張。n 參數可接受 1–4,代表輸出圖片或動畫的數量,但 SVG 必須為 1。
我可以將生成的圖片用於商業用途嗎?
商業用途須遵守供應商的條款。請依照您的預定用途查閱適用的 OpenAI 條款;提供的文件未說明商業授權權利。
Flare 與 Sunburst 有何不同?
建議使用 Flare 以加快生成速度並快速反覆調整。Sunburst 則著重於細節與編輯一致性,尤其適合中或高品質設定下的多輪編輯。兩者在相同設定下的 token 費率與用量相同。