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 系列的教程与对比。