Skip to main content

image models

GPT Image 2.5 API / Flare 與 Sunburst,同一套 token 計價 API

使用 Flare 和 Sunburst 生成、編輯圖像。兩個模型在 PiAPI 採用相同的 token 價格。

立即開始!

PiAPI 價格

單位為美元/每 100 萬 token。Flare 和 Sunburst 採用相同費率。

每 100 萬 token 價格

選擇 Flare 或 Sunburst,透過 PiAPI API 生成、編輯圖像。
模型文字輸入圖像輸入圖像輸出
gpt-image-2.5-flare速度最快適合日常高品質圖像生成。$3.75$6.00$22.50
gpt-image-2.5-sunburst能力最強著重圖像生成與編輯的精確性。$3.75$6.00$22.50

準備好用 GPT Image 2.5 開始了嗎?

PiAPI 的 GPT Image 2.5 模型

透過 PiAPI 任務 API 呼叫 GPT Image 2.5 時,你會得到這些能力。

兩個模型,一次接入

Flare 是日常使用的快速模型,Sunburst 則追求精度。兩者共用同一個端點、同一種請求結構與同一份費率表,切換只需改一個模型名稱。

四種畫質等級

quality 參數支援 auto、low、medium、high,可以按單次請求在算圖時間與細節之間取捨,不必在接入時就定死。

生成與編輯

傳入提示詞做文生圖,或附上參考圖編輯既有圖片。兩種操作走的是同一套非同步任務 API。

依 token 計費,沒有最低消費

文字輸入、圖片輸入與圖片輸出都依 token 計費,沒有席次費也沒有訂閱費,公開費率請見上方表格。

非同步任務

送出任務取得 task id,之後輪詢任務端點或等待 webhook 回呼。長時間生成不會卡住你的請求執行緒。

API 存取

Flare 和 Sunburst 已透過 PiAPI API 提供。端點、驗證和請求參數請參閱 API 文件。

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

Create a task

curl -X POST 'https://api.piapi.ai/api/v1/images/generations/async' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "gpt-image-2.5-flare",
  "prompt": "YOUR_PROMPT",
  "size": "1024x1024",
  "quality": "low"
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

image_urls / image_url / data

Pricing

  • gpt-image-2.5-flare:text_input: $0.00375 / 1k_tokens
  • gpt-image-2.5-flare:image_input: $0.006 / 1k_tokens
  • gpt-image-2.5-flare:output: $0.0225 / 1k_tokens

GPT Image 2.5 API 常見問題

有哪些 GPT Image 2.5 模型可用?

API 支援使用 gpt-image-2.5-flare 和 gpt-image-2.5-sunburst 生成、編輯圖像。

GPT Image 2.5 API 如何收費?

單位為美元/每 100 萬 token。Flare 和 Sunburst 採用相同費率。

API 接受哪些 quality 值?

quality 參數接受 auto、low、medium 和 high。傳入 xhigh、max 或 standard 時,API 會回傳 HTTP 400。

More questions? See the API docs.

延伸閱讀

PiAPI 部落格上關於 GPT Image 系列的教學與比較。