OpenAI GPT Image 2.5 Flare 图像编辑
openai/gpt-image-2.5-flare/edit
使用自然语言指令和最多 16 张参考图片进行快速、均衡的图像编辑。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| images *图片 | image_upload | — | image/* · 1–16 items | 用于编辑的输入图片 URL 列表。 |
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| n生成数量 | slider | 1 | 1 ~ 10 | 生成图片的数量(1-10)。每张图片独立计费。 |
| aspect_ratio宽高比 | select | 1:1 | 1:1 | 1:2 | 2:1 | 1:3 | 3:1 | 2:3 | 3:2 | 3:4 | … | 生成图片的宽高比。如果指定了 'size' 参数,则此设置失效。 |
| resolution分辨率 | select | 1k | 1k | 2k | 4k | 输出分辨率级别。如果指定了 'size' 参数,则此设置失效。 |
| size具体尺寸 | text | — | — | 图片具体尺寸。格式为宽x高。如果指定了此参数,宽高比 (aspect_ratio) 和分辨率 (resolution) 参数将失效。 |
| quality渲染质量 | select | auto | auto | low | medium | high | xhigh | max | 渲染质量。low=快速草稿,high=精细输出。质量越高,耗时越长、费用越高。 |
| mask蒙版图片 | image_upload | — | image/* · 0–1 items | 通过 URL 引用输入图片。只需提供一张。 |
| background背景模式 | select | auto | auto | transparent | opaque | 生成图片输出的背景行为。 |
| input_fidelity输入忠实度 | select | low | low | high | 控制对原始输入图片的忠实度。 |
| output_format图片格式 | select | png | png | jpeg | webp | 图片格式。JPEG 比 PNG 更快,适合延迟敏感场景。 |
| output_compression压缩级别 | number | — | 0 ~ 100 | 压缩级别,仅对 JPEG/WebP 有效(0-100)。 |
| moderation审核级别 | select | auto | auto | low | 内容审核级别。low 放宽过滤,auto 为标准过滤。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| images | array<string> |
API
通过统一 REST API 调用本模型;在 API Keys 页获取密钥。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/openai/gpt-image-2.5-flare/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/19/b58b3f934797.jpeg"
],
"prompt": "A futuristic cityscape at sunset, with glowing skyscrapers and flying cars.",
"n": 1,
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "auto",
"background": "auto",
"input_fidelity": "low",
"output_format": "png",
"moderation": "auto"
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/openai/gpt-image-2.5-flare/edit",
headers=HEADERS,
json={
"input": {
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/19/b58b3f934797.jpeg"
],
"prompt": "A futuristic cityscape at sunset, with glowing skyscrapers and flying cars.",
"n": 1,
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "auto",
"background": "auto",
"input_fidelity": "low",
"output_format": "png",
"moderation": "auto"
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 600s server-side.
deadline = time.time() + 660
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/openai/gpt-image-2.5-flare/edit", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/19/b58b3f934797.jpeg"
],
"prompt": "A futuristic cityscape at sunset, with glowing skyscrapers and flying cars.",
"n": 1,
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "auto",
"background": "auto",
"input_fidelity": "low",
"output_format": "png",
"moderation": "auto"
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 600s server-side.
const deadline = Date.now() + 660 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);文档
OpenAI GPT Image 2.5 Flare 图像编辑
使用自然语言指令和最多 16 张参考图片进行快速、均衡的图像编辑。
API 接口
POST /api/v1/marketplace/run/openai/gpt-image-2.5-flare/edit
请求体格式为 {"input": {...}}。提交后轮询 GET /api/v1/marketplace/run/tasks/{task_uuid},直到任务完成。
参数
images(必填):1 至 16 个输入图片 URL。prompt(必填):图像编辑指令,最多 5,000 个字符。mask:可选蒙版图片 URL。background:auto、transparent或opaque。input_fidelity:low或high。n:生成 1 至 10 张图片,默认1。aspect_ratio:支持1:1、1:2、2:1、1:3、3:1、2:3、3:2、3:4、4:3、4:5、5:4、9:16、16:9、9:21、21:9。resolution:1k、2k或4k,默认1k。size:可选的宽x高明确尺寸;指定后覆盖aspect_ratio和resolution。quality:auto、low、medium、high、xhigh或max,默认auto。output_format:png、jpeg或webp,默认png。output_compression:0 至 100,仅压缩格式生效。moderation:auto或low,默认auto。
输出
{"images": ["https://..."]}
计费
Nami 根据 MaaS 返回的实际 token usage 计算最终费用。OpenAI Standard 官方价格为:文本输入 $5.00/百万 token、缓存文本输入 $1.25/百万 token、图片输入 $8.00/百万 token、缓存图片输入 $2.00/百万 token、图片输出 $30.00/百万 token。
相关模型
xAI Grok Imagine Image v2.0 图片编辑
xAI Grok Imagine Image V2.0 Edit 可根据文本提示词对输入图片进行编辑,并支持可配置的分辨率和质量,适用于精细图片编辑、视觉优化、创意变体、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
qwen-image-edit-spicy
通过文本指令精确编辑图片,可添加、移除或修改画面元素,也支持风格迁移和背景替换,适合照片修饰与视觉设计。
Qwen Image 3.0 Pro Edit|快速图片编辑
Qwen Image 3.0 Pro Edit 是一款专业级图片编辑模型,具备出色的画质和高级指令理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能优异,无冷启动,价格实惠。
OpenAI GPT Image 2.5 Sunburst 图像编辑
使用最多 16 张参考图片完成高保真、精确的图像编辑。
图片换头
将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。
Nano Banana 图像编辑
高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。
Nano Banana Pro 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。
Nano Banana 2 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。