Seedream 5.0 Flash 图片编辑
doubao/seedream-v5.0-flash/image-to-image
使用提示词和 1~10 张参考图编辑生成一张图片。所有支持尺寸均为每张 $0.018,输入参考图免费。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| images *图片 | image_upload | — | image/* · 1–10 items | 要编辑的图片。最多可上传 10 张参考图。 |
| size尺寸 | text | 1024x1024 | — | 指定生成图片的宽度和高度像素值。总像素值范围:[1280*720, 2048*2048*1.1025] |
| output_format输出格式 | select | jpeg | jpeg | png | 输出图片的格式。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| 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/doubao/seedream-v5.0-flash/image-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}'
# 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/doubao/seedream-v5.0-flash/image-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
},
)
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 300s server-side.
deadline = time.time() + 360
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/doubao/seedream-v5.0-flash/image-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}),
});
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 300s server-side.
const deadline = Date.now() + 360 * 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);文档
Seedream 5.0 Flash 图片编辑
doubao/seedream-v5.0-flash/image-to-image
使用提示词和 1~10 张参考图编辑生成一张图片。所有支持尺寸均为每张 $0.018,输入参考图免费。
价格
与 BytePlus 官方原价一致:每张输出图片 $0.018 = 1.8 积分。输入图片免费,所有支持的尺寸均为同一单价。1 美元 = 100 积分;账户折扣另行计算。
每次请求生成一张图片,折扣前费用为 1.8 积分($0.018);参考图张数不产生附加费。失败任务退费。
参数
| 参数 | 必填 | 默认值 / 限制 |
|---|---|---|
prompt | 是 | 5000 字符 |
images | 是 | 1–10 个图片 URL |
size | 否 | 1024x1024 |
output_format | 否 | jpeg; jpeg, png |
用 size 指定尺寸。文生图和图片编辑支持 宽x高 像素值:总像素 921,600~4,624,220,宽高比 1:16~16:1,两项必须同时满足。例如 1024x1024、1536x1536、2048x2048、2048x1024。512x512 和 4K 不在支持范围内。当前 MaaS 参数为 size,不应另传 resolution 或 aspect_ratio。
调用示例
curl -X POST 'https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-v5.0-flash/image-to-image' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"prompt": "Transform the input product photo into a clean premium studio advertisement image: keep the main subject and overall composition, remove background clutter, place it on a soft neutral backdrop with natural shadows, enhance lighting and color accuracy, sharpen important details, and give it a polished high-end commercial look.",
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/09/24/2c544aa09e3a.jpeg"
],
"size": "1024x1024",
"output_format": "jpeg"
}
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
-H "Authorization: Bearer $API_KEY"
返回结果
提交后返回 task_uuid 和 status。使用同一 API Key 轮询,直到 completed 或 failed。成功图片 URL 位于 output.images;cost_credits 的单位为积分,结算完成前可能仍显示预扣额。编辑和分层时请换成您自己的可访问图片 URL;下方示例图来自 MaaS 公开模型示例。
相关模型
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 张参考图片完成高保真、精确的图像编辑。
OpenAI GPT Image 2.5 Flare 图像编辑
使用自然语言指令和最多 16 张参考图片进行快速、均衡的图像编辑。
图片换头
将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。
Nano Banana 图像编辑
高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。
Nano Banana Pro 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。