ZOYKU火线榜

fujc683/gpt-image-2-6-api技术文档

GPT Image 2.6 API: endpoint, parameters, errors and cost.

多语言回退提示:当前仓库原作者暂未发布本地化文档,已为您无缝切换至官方英文原版(English),排版及代码实例完整保真。
极速安装
git clone https://github.com/fujc683/gpt-image-2-6-api.git

GPT Image 2.6

GPT Image 2.6 API — endpoint, parameters and pricing

How to call GPT Image 2.6 on APIMart: async task API, parameters, errors and cost.

Awesome License: CC BY 4.0

👉 Try GPT Image 2.6 on APIMart

https://gola.apimart.ai/k-IHJgxo

💰 Pricing · 🔑 Get an API key


Quick start

curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2.6-flare","prompt":"a red apple on a white table","n":1,"size":"1024x1024"}'

The API is asynchronous: the call returns a task_id, then you poll it.

curl https://api.apimart.ai/v1/tasks/<task_id> -H "Authorization: Bearer $APIMART_API_KEY"

Models

Model id Variant Notes
gpt-image-2-6 alias — resolves to Flare
gpt-image-2.6-flare Flare faster profile
gpt-image-2.6-sunburst Sunburst quality profile

Parameters

Field Type Description
model string gpt-image-2.6-flare or gpt-image-2.6-sunburst
prompt string text prompt (English works best)
n int number of images, 1-4
size string 1024x1024, 1536x1024, 1024x1536
reference_image url optional image-to-image input

Response

{"code":200,"data":[{"status":"submitted","task_id":"task_xxx"}]}

Poll GET /v1/tasks/{task_id}; on success data.result.images[0].url holds the image, data.cost holds the final billed amount in USD.

Pricing

Variant Price
GPT Image 2.6 Flare $0.0198 / image
GPT Image 2.6 Sunburst $0.0198 / image

Member discounts stack on top. See the pricing page for live numbers.

Errors

Code Meaning
model_not_found model id typo or not rolled out yet
invalid_request_error bad parameter (e.g. unsupported size)
task_failed upstream refused; check error.message

License

CC BY 4.0

文档镜像归档自 GitHub 官方源路径 · 访问原项目 GitHub
最后同步快照:2026-11-09