请求参数
| 参数 | 必填 | 说明 |
|---|---|---|
aspect_ratio | 否 | 画面形状:横版、方形或竖版。 1:1 · 1:2 · 1:3 · 2:1 · 2:3 · 3:1 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 9:21 · 16:9 · 21:9 · 默认值: 1:1 |
background | 否 | 保留、去掉或替换背景。 auto · transparent · opaque · 默认值: auto |
image_urls | 是 | 要编辑或合成的照片。在提示词里说明每张的作用。 |
input_fidelity | 否 | How closely to keep the look of the source images. low · high · 默认值: low |
mask_url | 否 | 涂抹出需要改动的区域。 |
num_outputs | 否 | 一次生成几张。 ≥ 1 · ≤ 10 · 默认值: 1 |
output_format | 否 | 结果的文件格式。 png · jpeg · webp · 默认值: png |
output_quality | 否 | Compression quality for JPEG and WebP, from 0 to 100. ≥ 0 · ≤ 100 |
prompt | 是 | Say what to change and what must stay the same. |
quality | 否 | 用更慢、更贵换更细的细节。 low · medium · high · xhigh · max · 默认值: high |
resolution | 否 | 输出尺寸。越大越清晰,价格也越高。 1k · 2k · 4k · 默认值: 1k |
价格
价格以积分计,和网站上用的是同一种积分(1 积分 = $0.01)。任务受理时先冻结积分,完成后按实际费用结算;失败的任务会退还。
| 选项 | 积分 /张 | ≈ 美元 |
|---|---|---|
| aspect_ratio 1:3 · quality low · resolution 1K | 0.27 | US$0.0027 |
| aspect_ratio 3:1 · quality low · resolution 1K | 0.27 | US$0.0027 |
| aspect_ratio 21:9 · quality low · resolution 1K | 0.37 | US$0.0037 |
| aspect_ratio 9:21 · quality low · resolution 1K | 0.37 | US$0.0037 |
| aspect_ratio 1:2 · quality low · resolution 1K | 0.41 | US$0.0041 |
| aspect_ratio 2:1 · quality low · resolution 1K | 0.41 | US$0.0041 |
| aspect_ratio 1:3 · quality low · resolution 2K | 0.43 | US$0.0043 |
| aspect_ratio 3:1 · quality low · resolution 2K | 0.43 | US$0.0043 |
| aspect_ratio 16:9 · quality low · resolution 1K | 0.46 | US$0.0046 |
| aspect_ratio 9:16 · quality low · resolution 1K | 0.46 | US$0.0046 |
| aspect_ratio 2:3 · quality low · resolution 1K | 0.54 | US$0.0054 |
| aspect_ratio 3:2 · quality low · resolution 1K | 0.54 | US$0.0054 |
每个任务按整数积分向上取整,所以最低档跑一次是 1 积分/张(US$0.01)。
想在运行前知道确切金额,把同样的请求体发到 POST /jobs/quote 即可。
API 快速上手
三步调用 GPT Image 2.5 Sunburst API
- 创建 API 密钥. 登录 PopNow,在 API 控制台创建密钥。密钥以 sk-popnow- 开头,和网站共用同一份积分。
- 发送请求. 向 POST /jobs/createTask 发请求,model 填 openai/gpt-image-2.5-sunburst/edit,input 按参数表填写。响应会立刻返回任务 ID。
- 取回结果. 用任务 ID 轮询 GET /jobs/recordInfo,或者传 callBackUrl,结果会推送到这个地址。任务成功后下载输出链接。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "openai/gpt-image-2.5-sunburst/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "high",
"num_outputs": 1,
"input_fidelity": "low"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"请把提示词和链接换成你自己的。API 页签里有响应、轮询和回调的参考。
GPT Image 2.5 Sunburst API 常见问题
GPT Image 2.5 Sunburst API 怎么收费?
GPT Image 2.5 Sunburst:最便宜的任务是编辑图片,1 积分(US$0.01)/张起。各选项价格:1:3 · low · 1K 0.27 积分/张、3:1 · low · 1K 0.27 积分/张、21:9 · low · 1K 0.37 积分/张、9:21 · low · 1K 0.37 积分/张。积分和网站通用(1 积分 = $0.01),新账号赠送 30 积分,失败的任务会退还。
GPT Image 2.5 Sunburst 在 API 里的调用名是什么?
在 POST /jobs/createTask 的 model 字段里填 生成图片用 openai/gpt-image-2.5-sunburst/text-to-image;编辑图片用 openai/gpt-image-2.5-sunburst/edit。
GPT Image 2.5 Sunburst API 有哪些限制?
分辨率:1K · 2K · 4K;画面比例:1:1 · 1:2 · 1:3 · 2:1 · 2:3 · 3:1 +9;每次输出数量:1–10;参考图:16;提示词长度(字符):5,000。超出这些限制的请求会在扣费之前被拒绝。
不写代码能试 GPT Image 2.5 Sunburst 吗?
可以。Playground 用你的 PopNow 积分运行 GPT Image 2.5 Sunburst,不需要 API 密钥,每次运行都会给出对应的代码。
全部 GPT Image 模型
GPT Image 2.5 Flare 选项和单张价格都一样,但针对速度调校,通常更快出图。要出终稿和做精确修改,选 Sunburst。

