Seedream V4
doubao/seedream-4.0/text-to-image
Seedream 4.0 是一款最先进的图片生成模型,能够生成高保真输出,性能优于 Nano Banana。提供即用型 REST 推理 API,性能卓越,无冷启动,价格实惠。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| size尺寸 | text | 2048x2048 | ≤ 500 chars | 生成媒体的尺寸,支持最高 4K 分辨率的图片。如果需要匹配现有图片的尺寸,必须明确指定宽高,因为不支持自动调整尺寸以匹配图片。 |
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/text-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
"size": "1920x1080"
}
}'
# 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/text-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
"size": "1920x1080"
}
},
)
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/text-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
"size": "1920x1080"
}
}),
});
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 V4
高保真文本生成图片模型,支持高级布局感知
Seedream V4 是字节跳动推出的尖端文本生成图片模型,专为创建高分辨率、布局感知的视觉内容而优化。该模型能够生成一致性高、质量卓越的输出,并支持最高达 4K 的分辨率,非常适合社交媒体素材、概念设计和多面板海报等专业场景。享受无冷启动的流畅性能,价格实惠。
🚀 核心功能
- 布局感知:支持基于网格的设计(如 2×2 面板、三联画、漫画),优化文本、标题和 CTA 的留白区域。
- 高保真:提供干净的边缘、强大的身份保留以及极少的伪影,适用于专业级视觉内容。
- 分辨率灵活性:默认分辨率为 2048×2048,支持最高达 8192×8192 的自定义尺寸。
- 系列一致性:在多面板设计中保持统一的调色板、灯光和镜头设置。
- 价格实惠:每次生成仅需 $0.03。
🛠️ 技术规格
| 参数 | 描述 |
|---|---|
| 模型架构 | 字节跳动 Seedream V4 |
| 任务类型 | 文本生成图片 |
| 输入格式 | 提示词(字符串) |
| 输出格式 | 图片(PNG、JPG) |
| 默认分辨率 | 2048×2048 |
| 最大分辨率 | 最高支持 8192×8192 |
| 价格 | 每次生成 $0.03 |
示例提示词
- 提示词:"未来城市日落景象,霓虹灯闪烁,飞行汽车穿梭。"
- 提示词:"极简海报,单一红玫瑰置于单色背景中央。"
- 提示词:"2×2 网格漫画,展示两台机器人之间的幽默对话。"
💰 价格
| 分辨率 | 每次生成价格 |
|---|---|
| 默认(2048×2048) | $0.03 |
| 自定义(最高 8192×8192) | $0.03 |
💡 最佳使用场景
- 社交媒体活动:生成视觉吸引力强、优化可读性和品牌化的素材。
- 电子商务:创建高分辨率的产品视觉内容,保持一致的风格和品牌化。
- 电影与娱乐:设计概念艺术、故事板和宣传海报。
- 营销材料:制作布局感知的海报、传单和多面板设计。
🔗 相关模型
- Seedream V3.1:上一版本,优化于简单设计。
- Seedream V4 Edit:专为后期编辑工作流程设计的变体。
相关模型
xAI Grok Imagine Image v2.0 文生图
xAI Grok Imagine Image V2.0 文生图可根据文本提示词生成高质量图片,并支持配置宽高比、分辨率和质量,适用于创意视觉、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Qwen Image 3.0 Pro 文生图
Qwen Image 3.0 Pro 是一款专业级文生图模型,具备卓越画质和先进的提示词理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能出色,无冷启动,价格实惠。
OpenAI GPT Image 2 文本生成图片
OpenAI 的 GPT Image 2 文本生成图片模型可根据自然语言提示词生成高质量图片。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
OpenAI GPT Image 2 Edit 图像编辑
OpenAI 的 GPT Image 2 Edit 可通过自然语言指令结合一张或多张参考图片进行图像编辑。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
Nami Z-Image T2I Spicy
根据文本提示词生成图片,支持自定义宽高、提示词优化和随机种子。
Nano Banana 文生图
Gemini 2.5 Flash 标准版。轻量极速。兼顾速度与成本,是批量生成与快速原型设计的最佳选择。
Nano Banana Pro 文生图
Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。
Nano Banana Pro 文生图
Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。