Seedream 4.0
doubao/seedream-4.0/image-to-image-sequential
Seedream 4.0:支持4K图片生成与编辑,具备角色和物体一致性以及连续多图输出功能。提供即用型REST推理API,性能卓越,无冷启动,价格实惠。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| images *图片 | image_upload | — | image/* · 1–10 items | 需要编辑的图片。最多可上传10张参考图片。 |
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| size尺寸 | text | — | ≤ 500 chars | 生成媒体的像素尺寸(宽度*高度)。 |
| max_images最大生成数量 | slider | 1 | 1 ~ 15 · step 1 | 可生成的最大图片数量(最多15张)。此值需与上述提示词中指定的图片数量一致。 |
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-sequential" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-04-21/04f96c6016ee.png",
"https://assets-public.namifusion.com/uploads/images/2026-04-21/ee16c2ba0571.png"
],
"prompt": "Generate a 4K image of a futuristic cityscape with sleek skyscrapers, flying cars, and glowing neon lights. Please generate a set of 5 images.",
"size": "3840x2160",
"max_images": 5
}
}'
# 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-sequential",
headers=HEADERS,
json={
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-04-21/04f96c6016ee.png",
"https://assets-public.namifusion.com/uploads/images/2026-04-21/ee16c2ba0571.png"
],
"prompt": "Generate a 4K image of a futuristic cityscape with sleek skyscrapers, flying cars, and glowing neon lights. Please generate a set of 5 images.",
"size": "3840x2160",
"max_images": 5
}
},
)
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-sequential", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-04-21/04f96c6016ee.png",
"https://assets-public.namifusion.com/uploads/images/2026-04-21/ee16c2ba0571.png"
],
"prompt": "Generate a 4K image of a futuristic cityscape with sleek skyscrapers, flying cars, and glowing neon lights. Please generate a set of 5 images.",
"size": "3840x2160",
"max_images": 5
}
}),
});
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 4.0
4K 图片生成与编辑,支持序列一致性
Seedream 4.0 是一款先进的图像生成与编辑模型,支持高达 4K 分辨率的图片处理。它在生成序列输出时能够保持角色和物体的一致性,非常适合创建连贯的多图集。凭借超快推理速度、无冷启动和实惠的价格,Seedream 4.0 在性能和成本效率方面表现出色。
🚀 主要功能
- 序列多图输出:一次生成最多 15 张一致的图片,非常适合故事板、产品变体或匹配的图集。
- 高特征保留:确保身份、标志和布局在所有输出中保持一致。
- 丰富的编辑功能:添加/删除元素,调整属性或风格,以及执行结构调整(如姿势或面部替换)。
- 超高分辨率:支持高达 8192×8192 像素的分辨率,适用于专业级输出。
- 快速可靠:无冷启动,超快推理速度,提供流畅的用户体验。
- 一致性控制:在所有生成图片中保持强大的身份和风格一致性。
🛠️ 技术规格
| 规格 | 详情 |
|---|---|
| 模型架构 | 图像到图像 |
| 输入格式 | 图片数组(最多 10 张)、正向提示词 |
| 输出格式 | 编辑后的图片(最多 15 张) |
| 分辨率 | 512×512 至 8192×8192 像素 |
| 生成数量 | 最多 15 张 |
| 价格 | 每张图片 $0.03 |
| 延迟 | 超快推理速度 |
示例提示词
- 产品变体:"生成一组 4 张编辑后的图片(面板 1–4),保持相同的鞋型和标志位置。角度、光照和背景保持一致,仅更改每张图片的配色。"
- 角色设计:"创建一组 3 张图片,展示同一角色穿着不同服装,同时保持面部特征和姿势一致。"
💰 价格
| 分辨率 | 每张图片价格 |
|---|---|
| 高达 4K | $0.03 |
总价公式:总价 = 生成数量 × $0.03
💡 最佳使用场景
- 商业设计:创建海报、服装设计、包装视觉或电商产品集,保持品牌一致性。
- 娱乐 IP:开发角色外观设计或关键艺术序列,保持身份和风格一致。
- 美术与插画:制作具有连贯调色板和线条的多件系列作品。
- 建筑设计:生成一致视角下的材质和光照变体。
- 品牌内容:设计活动集或社交媒体轮播图,固定标志和调色板。
🔗 相关模型
- Seedream 4.0 Pro:增强的编辑功能,支持高级风格控制。
- Seedream 4.0 Ultra:针对 4K 以上超高分辨率输出进行了优化。
相关模型
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,性能出色,无冷启动,价格实惠。