跳转到内容
NewRouters/开发者文档
图片模型 API

GPT Image 2.6 Flare · API 指南

Flare 适合快速迭代插画和产品视觉。 API 指南 · NewRouters Images API

POST/v1/tasksMODELgpt-image-2.6-flare
官方对应 gpt-image-2.6-flare核对 2026-11-05官方资料
代码示例与响应
请求与响应代码示例
POST/v1/tasks
服务端调用
curl "https://newrouters.com/v1/tasks" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "gpt-image-2.6-flare",
  "input": {
    "prompt": "蓝色小球在白色背景上上下弹跳,平滑循环。",
    "size": "auto",
    "quality": "low",
    "output_format": "gif"
  }
}'

平台地址已填入,运行前设置 API_KEY 环境变量。示例不会自动发起请求。

响应字段节选 · 示意值
202任务已受理
JSON
{
  "id": "TASK_ID",
  "status": "pending",
  "model": "gpt-image-2.6-flare",
  "result": null,
  "error": null
}
200成功结果
JSON
{
  "id": "TASK_ID",
  "status": "succeeded",
  "model": "gpt-image-2.6-flare",
  "result": {
    "assets": [
      "https://example.com/output.png"
    ]
  },
  "error": null
}
创建后如何查询结果
调用流程异步媒体任务
  1. 创建任务01
    POST /v1/tasks

    提交 model + input,保存返回的任务 id。

    202 · pending
  2. 轮询状态02
    GET /v1/tasks/{id}

    pending / processing 时等待并继续查询。

    等待 → 再查询
  3. 读取终态03
    result.assets[] / error

    按任务终态读取对应结果。

    succeeded→ assetsfailed→ error

示例输出

在模型页查看与试用 ↗

以下结果均通过本平台 API 实际生成,费用为任务回执中的实扣金额。

原生动态 GIF
原生动态 GIF$0.019
提示词与参数

Seamless looping animation of a small clear glass hourglass on a matte black surface. Fine golden sand flows from the top bulb to the bottom; on the final frame the hourglass gently rotates to restart the loop. Soft studio rim light, crisp refractions, centered composition, generous dark negative space. No text.

size: auto · quality: medium · output_format: gif
循环霓虹灯动图
循环霓虹灯动图$0.019
提示词与参数

Looping animation of a hand-bent neon sign on a dark brick wall that reads exactly "OPEN 24H" with the Chinese characters "营业中" beneath it. The tubes flicker on letter by letter, glow steadily, then briefly buzz and flicker before the loop restarts. Pink and warm white neon, soft glow on the bricks. Every character spelled exactly as written.

size: auto · quality: medium · output_format: gif
数字清晰的 App 界面
数字清晰的 App 界面$0.019
提示词与参数

A polished mobile app screen for a fictional personal finance app called "Ledger". Dark mode. Header "Good evening, Lin". A large balance "$12,480.50". A smooth line chart for the last 30 days. A list of four transactions with icons: "Blue Bottle Coffee −$6.50", "Salary +$4,200.00", "Metro Card −$40.00", "Apple Music −$10.99". A bottom tab bar with Home, Cards, Insights, Profile. Crisp UI rendering on a plain dark background, all text and numbers exactly as written.

aspect_ratio: 9:16 · resolution: 2k · quality: high · output_format: jpeg

Flare 适合快速迭代插画和产品视觉。 在 NewRouters 使用型号 gpt-image-2.6-flare.

文生图 · 参考图编辑

生成支持 JPEG、PNG、WebP 和动态 GIF。GIF 仅用于文生图,建议使用 size: "auto"。线上样例为 9 帧、每帧 200 ms;自定义帧数和间隔暂未验证可控。

终端窗口
curl "https://newrouters.com/v1/tasks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "gpt-image-2.6-flare",
"input": {
"prompt": "蓝色小球在白色背景上上下弹跳,平滑循环。",
"size": "auto",
"quality": "low",
"output_format": "gif"
}
}'

保存响应的任务 ID,使用同一个 Key 轮询 GET /v1/tasks/{id}。成功后从 result.assets 下载文件。

默认价与价格组 24 按实际用量结算,为官方标准价的 6 折。其他价格组以账号价卡为准。

每百万 token官方原价(美元)NewRouters(积分)
文本输入5300
缓存文本输入1.2575
图片输入8480
缓存图片输入2120
图片输出301800

模型介绍、生成样例与在线试用

SVG 文生图使用所选图片型号生成参考图,默认由 gpt-6-luna 编写矢量文件。提交 output_format: "svg" 即可。按所选图片型号的账号价卡结算。默认分组与价格组 24 按图片模型返回的 usage 收取官方标准价的六折,SVG 作者用量不另收费。

OpenAI · GPT Image 2.6 Flare · OpenAI Images API