gpt-image-2.6-sunburst API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| Token 类型 | APISea | 官方 | 节省 |
|---|---|---|---|
| 文本输入 每 1M 个 token | $4.40 | $5.00 | −12% |
| 缓存文本输入 每 1M 个 token | $1.10 | $1.25 | −12% |
| 图像输入 每 1M 个 token | $7.04 | $8.00 | −12% |
| 缓存图像输入 每 1M 个 token | $1.76 | $2.00 | −12% |
| 图像输出 每 1M 个 token | $26.40 | $30.00 | −12% |
gpt-image-2.6-sunburst 是什么?
OpenAI 的 gpt-image-2.6-sunburst 是一款 GPT Image 模型,可在 APISea 上生成和编辑图片。它注重细节和编辑一致性,尤其适用于中等或高质量设置下的多轮编辑。您可以通过文本提示词或最多 16 张参考图构建工作流,输出格式包括 PNG、JPEG、WebP、动画 GIF 或 SVG。静态图片控制项包括宽高比、精确像素尺寸、分辨率、质量和背景设置。编辑支持局部重绘蒙版和基于标注的指令,但受格式限制。
请求采用异步方式运行:提交生成任务,读取任务 ID,然后查询文件 URL。APISea 提供一个 API key 和兼容 OpenAI 的 base URL:https://api.apisea.ai/v1。采用按量付费,仅对成功的请求收费;文本输入、图片输入和图片输出 token 分别计价,缓存输入也有单独费率。默认配置的价格比服务提供商的标价低约 12%。
gpt-image-2.6-sunburst 的亮点
专注细节的图片编辑
Sunburst 注重细节和编辑一致性,尤其适用于中等或高质量设置下的多轮编辑。
多种输出格式
可生成 PNG、JPEG、WebP、动画 GIF 或 SVG。GIF 和 SVG 请求均支持文本提示词和参考图。
参考图引导生成
通过公开的 HTTP(S) URL 或图片 Data URL 提供最多 16 张参考图。静态图片编辑也支持 PNG Alpha 通道蒙版。
明确的渲染控制项
可选择分辨率、质量、尺寸和背景设置。规划复杂度与渲染质量分别控制。
分 4 步调用 gpt-image-2.6-sunburst API
- 01
获取 API 密钥
登录 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-sunburst" 及以下参数。
- 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-sunburst",
"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-sunburst 的应用场景
迭代式创意编辑
构建审核工作流,通过多轮交互逐步完善图片,并描述需要修改和保留的内容。
定向修改图像
允许用户提供参考图和局部重绘蒙版,以标示需要编辑的区域;不要假设蒙版之外的像素会保持不变。
动画内容工具
根据文本指令或参考图生成动画 GIF,并可要求每个任务生成一到四个动画。
SVG 素材生成
根据提示词或参考图创建 SVG 素材,并通过明确的背景控制生成透明输出。
获得更好结果的技巧
- 01
说明修改内容和保留内容
请说明主体、构图、需要修改的内容以及需要保留的元素。提示词最多可包含 32,000 个字符。
- 02
明确设置质量
需要固定设置时,请明确选择质量等级。如果省略 quality 或将其设为 auto,系统会按最高质量预留资金,最终费用则按实际选定的等级计算。
- 03
将规划与渲染分开设置
简单、明确的编辑可使用低复杂度;对于密集文字、复杂布局或物体关系,可使用高复杂度。复杂度与质量相互独立。
- 04
异步处理任务
向 POST /v1/images/generations 提交请求,读取 data[0].task_id,然后查询任务以获取文件 URL。提交请求的响应中不会包含已完成的图片。
限制与须知
GIF 和 SVG 不支持蒙版或标注。
SVG 要求 n 为 1;其他受支持的输出格式中,n 可设为 1 至 4。
输出压缩仅适用于 JPEG 和 WebP,且必须为 0 至 100 之间的整数。
gpt-image-2.6-sunburst API 常见问题
gpt-image-2.6-sunburst 在 APISea 上的价格是多少?
文本输入费用为每 1M tokens $4.40,图像输入费用为每 1M tokens $7.04,图像输出费用为每 1M tokens $26.40。缓存文本输入费用为每 1M tokens $1.10,缓存图像输入费用为每 1M tokens $1.76。默认配置的价格比提供商标价低约 12%,且仅对成功的请求计费。
如何通过 API 调用 gpt-image-2.6-sunburst?
向 https://api.apisea.ai/v1/images/generations 发送经过 Bearer 身份验证的 POST 请求,将 model 设为 gpt-image-2.6-sunburst,并提供必填的 prompt。从响应中读取 data[0].task_id,然后查询任务以获取输出文件 URL。
支持哪些分辨率和质量设置?
resolution 可设为 1k、2k 或 4k;如果指定了精确像素尺寸,该参数将被忽略。quality 可设为 low、medium、high、xhigh、max 或 auto;静态图像和 SVG 还支持 15 种宽高比、精确像素尺寸或自动尺寸。
prompt 和参考图像有哪些限制?
prompt 最多支持 32,000 个字符,image_urls 最多可接受 16 张参考图像。该模型标示的输入 token 上限为 1,000,000,输出 token 上限为 1,000,000。
Sunburst 和 Flare 有什么区别?
gpt-image-2.6-sunburst 优先考虑细节表现和编辑一致性,尤其适合中等或高质量设置下的多轮编辑。gpt-image-2.6-flare 则是更快生成和快速迭代的推荐默认选择。两者在相同设置下的 token 费率和消耗相同。
我可以将生成的图像用于商业用途吗?
商业用途须遵守提供商的条款。将输出用于商业用途前,请查看 OpenAI 适用的条款,以及与输入图像相关的任何权利要求。
相关模型
gpt-image-1
gpt-image-1-official
gpt-image-1.5
gpt-image-1.5-official
gpt-image-2
gpt-image-2-official
gpt-image-2.5-ext
gpt-image-2.5-flare
开始使用 gpt-image-2.6-sunburst 构建
一个密钥即可,按量付费,$50 起,仅对成功请求计费。
