gpt-image-2.6-flare 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-flare 是什么?
gpt-image-2.6-flare 是 OpenAI 的 GPT Image 模型,专为更快生成和快速迭代而设计,也是文档推荐的默认选择。开发者可在 APISea 上使用它进行文生图、参考图像编辑、动画 GIF 生成和 SVG 输出。请求支持最长 32,000 个字符的 prompt 和最多 16 张参考图像,并可设置尺寸、分辨率、质量、背景和规划复杂度。静态图像编辑还支持图像修补蒙版或基于标注的指令。
所有工作流均使用同一个异步图像生成 endpoint:提交请求、读取任务 ID,然后查询任务以获取文件 URL。APISea 提供一个 API key 和兼容 OpenAI 的 base URL,并采用按量付费方式,仅对成功的请求计费。文本输入费用为每 1M tokens $4.40,图像输入费用为每 1M tokens $7.04,图像输出费用为每 1M tokens $26.40。缓存输入适用单独费率,默认配置的价格比提供商标价低约 12%。
gpt-image-2.6-flare 的亮点
快速迭代图像
Flare 是文档推荐的默认选择,适合更快生成和快速迭代。
多种输出格式
根据文本 prompt 生成 PNG、JPEG、WebP、动画 GIF 或 SVG。生成 GIF 和 SVG 时也可使用参考图像。
参考图像引导编辑
最多可提供 16 张参考图像用于编辑。静态图像工作流支持图像修补蒙版和基于标注的编辑,但受格式限制。
明确的渲染控制项
设置质量、分辨率、尺寸、背景和规划复杂度。静态图像和 SVG 支持 15 种宽高比或精确像素尺寸。
分 4 步调用 gpt-image-2.6-flare 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-flare" 及以下参数。
- 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-flare",
"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-flare 的应用场景
创意审核工具
构建 prompt 转图像界面,每次请求最多生成四张图像,供团队审阅并迭代视觉概念。
定向图像编辑器
允许用户提交参考图像和指令,说明需要修改或保留的内容;还可选用蒙版进行定向静态图像编辑。
动画内容工作流
通过与静态图像相同的 endpoint,根据文本 prompt 或参考图像创建动画 GIF。
SVG 素材生成
构建工具,将文本指令或参考图像转换为 SVG,并提供明确的背景控制选项。
获得更好结果的技巧
- 01
异步处理任务
向 POST /v1/images/generations 提交请求,读取 data[0].task_id,然后查询任务获取文件 URL;提交请求的响应中不会直接包含已完成的图像。
- 02
必要时固定质量级别
如需固定设置,请选择明确的质量级别。如果 quality 设为 auto 或未提供,系统会按 max 质量预留资金,最终费用则按实际选定的质量级别计算。
- 03
将规划与渲染分开设置
质量和复杂度可分别设置:low 适用于目标明确的编辑;对于包含大量文本、复杂布局或物体关系的内容,建议使用 high。
- 04
谨慎选择尺寸
可选择宽高比,并将分辨率设为 1k、2k 或 4k;也可提供精确像素尺寸。精确尺寸优先于分辨率;静态图像编辑未指定尺寸时,将使用第一张参考图像的宽高比。
限制与须知
prompt 最多可包含 32,000 个字符,每个请求最多可接受 16 张参考图像。
GIF 和 SVG 不支持蒙版或标记;SVG 要求 n 为 1。
修复蒙版不能与标记同时使用,且无法保证蒙版外未更改的像素保持不变。
gpt-image-2.6-flare API 常见问题
在 APISea 上使用 gpt-image-2.6-flare 的费用是多少?
文本输入费用为每 1M tokens $4.40,图像输入费用为每 1M tokens $7.04,图像输出费用为每 1M tokens $26.40。缓存文本输入费用为每 1M tokens $1.10,缓存图像输入费用为每 1M tokens $1.76。默认配置的价格比提供商标价低约 12%,且仅对成功的请求计费。
如何通过 APISea 调用 gpt-image-2.6-flare?
使用 APISea 密钥进行 Bearer Token 身份验证,并向 https://api.apisea.ai/v1/images/generations 发送 POST 请求,将 model 设为 gpt-image-2.6-flare,并提供必填的 prompt。从响应中读取 data[0].task_id,然后查询任务以获取文件 URL。
支持哪些输出格式和质量设置?
输出格式包括 png、jpeg、webp、gif 和 svg。quality 可设为 low、medium、high、xhigh、max 或 auto;resolution 可设为 1k、2k 或 4k,但如果提供了精确像素尺寸,该设置将被忽略。
输入和输出上限是多少?
列出的输入和输出上限均为 1,000,000 tokens;不过,图像 endpoint 对 prompt 的限制为 32,000 个字符,对参考图像的限制为 16 张。n 参数可接受 1–4,表示输出图像或动画的数量,但 SVG 要求设为 1。
我可以将生成的图像用于商业用途吗?
商业用途须遵守服务提供方的条款。请根据您的预期用途查阅适用的 OpenAI 条款;所提供的文档未说明商业许可权限。
Flare 与 Sunburst 有什么区别?
Flare 更适合快速生成和快速迭代。Sunburst 更注重细节和编辑一致性,尤其适用于中等或高质量设置下的多轮编辑。在设置相同的情况下,两者的 token 费率和消耗量相同。