ByteDance Seedream V4 Edit
doubao/seedream-4.0/image-to-image
Seedream V4 Edit 是字节跳动的最先进图片编辑模型,在保真度和编辑质量上优于 Nano Banana。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| images *图片 | image_upload | — | image/* · 1–10 items | 要编辑的图片。最多可上传 10 张参考图片。 |
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| size尺寸 | text | — | ≤ 500 chars | 生成媒体的尺寸,支持最高 4K 分辨率的图片。如果需要匹配现有图片的尺寸,必须明确指定尺寸,因为不支持自动调整以匹配图片。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| images | array<string> | Generated image URLs |
API
通过统一 REST API 调用本模型;在 API Keys 页获取密钥。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-4.0/image-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-05/2ba652e30b82.png"
],
"prompt": "Transform the image into a surrealistic artwork with a dream-like atmosphere, incorporating elements of fantasy such as floating islands and mythical creatures.",
"size": "3840x2160"
}
}'
# 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-4.0/image-to-image",
headers=HEADERS,
json={
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-05/2ba652e30b82.png"
],
"prompt": "Transform the image into a surrealistic artwork with a dream-like atmosphere, incorporating elements of fantasy such as floating islands and mythical creatures.",
"size": "3840x2160"
}
},
)
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-4.0/image-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-05/2ba652e30b82.png"
],
"prompt": "Transform the image into a surrealistic artwork with a dream-like atmosphere, incorporating elements of fantasy such as floating islands and mythical creatures.",
"size": "3840x2160"
}
}),
});
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);文档
ByteDance Seedream V4 Edit
最先进的图像编辑模型
ByteDance Seedream V4 Edit 是一款尖端的图像到图像模型,专为精确和高质量的图像编辑而设计。它在保真度和编辑质量上超越了竞争对手 Nano Banana,提供即用型 REST 推理 API,无冷启动且价格具有竞争力。
🚀 关键特性
- 高保真编辑:保持人物和产品的可靠肤色、面料细节和精细边缘。
- 生产友好的一致性:快速生成多个变体,保持一致的镜头角度和品牌色彩分级。
- 结构化提示词支持:针对明确目标进行优化,确保准确且可扩展的编辑。
- 多功能图像编辑:能够更换服装、调整发型和妆容、重新着色产品,并在保持原始构图的同时替换室内装饰。
🛠️ 技术规格
| 规格 | 详情 |
|---|---|
| 模型架构 | 图像到图像 |
| 输入格式 | 图片数组(最多10张) |
| 输出格式 | 编辑后的图片 |
| 分辨率 | 最高可达8192x8192(支持4K) |
| 示例提示词 | "更换服装为{OUTFIT_DESC},保持姿势" |
💰 定价
| 分辨率 | 每张图片价格 |
|---|---|
| 任意 | $0.03 |
💡 最佳使用案例
- 肖像与网红工作流:适合服装、妆容和发型更换,创建品牌系列和活动变体。
- 电商与产品团队:完美适用于色彩调整、材料替换和包装更新。
- 室内设计与建筑可视化:适合墙壁和地板饰面替换,以及考虑光照的布景设计。
- 市场营销与增长:支持快速 A/B 测试,保持一致的品牌色彩和镜头设置。
🔗 相关模型
- ByteDance Seedream V4:探索其他版本以获取不同的编辑功能。
相关模型
xAI Grok Imagine Image v2.0 图片编辑
xAI Grok Imagine Image V2.0 Edit 可根据文本提示词对输入图片进行编辑,并支持可配置的分辨率和质量,适用于精细图片编辑、视觉优化、创意变体、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Qwen Image 3.0 Pro Edit|快速图片编辑
Qwen Image 3.0 Pro Edit 是一款专业级图片编辑模型,具备出色的画质和高级指令理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能优异,无冷启动,价格实惠。
图片换头
将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。
Nami Qwen I2I Spicy
使用自然语言指令编辑参考图片,并尽量保留未要求修改的内容。
Nano Banana 图像编辑
高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。
Nano Banana Pro 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。
Nano Banana 2 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。
Seedream V5.0 Pro Edit 图片编辑与生成 API
ByteDance 推出的 Seedream V5.0 Pro Edit 可基于单张图片或多参考图进行图片编辑与生成,最多支持 10 张参考图片,支持宽高比选择以及 1K / 2K 输出档位。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。