Seedream V5.0 Pro 文生图 API
doubao/seedream-v5.0-pro/text-to-image
字节跳动推出的 Seedream V5.0 Pro 文生图模型,可根据文本提示词生成高质量图片,支持宽高比选择、强提示词遵循,以及 1K / 2K 输出档位,满足灵活的图片创作需求。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
示例



参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 用于生成的正向提示词。 |
| resolution *分辨率 | select | 1k | 1k | 2k | 用于计费的输出分辨率档位。1k 为较低成本档位;2k 为较高成本档位。 |
| aspect_ratio宽高比 | select | 1:1 | 1:1 | 1:2 | 2:1 | 1:3 | 3:1 | 2:3 | 3:2 | 3:4 | … | 生成图片的宽高比。 |
| output_format输出格式 | select | — | 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-pro/text-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A cinematic portrait of a young astronaut standing in a lush bioluminescent forest at dusk, soft blue and purple lighting, intricate space suit details, floating particles in the air, ultra-realistic, highly detailed, atmospheric depth, sharp focus",
"resolution": "2k",
"aspect_ratio": "4:5",
"output_format": "png"
}
}'
# 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-pro/text-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "A cinematic portrait of a young astronaut standing in a lush bioluminescent forest at dusk, soft blue and purple lighting, intricate space suit details, floating particles in the air, ultra-realistic, highly detailed, atmospheric depth, sharp focus",
"resolution": "2k",
"aspect_ratio": "4:5",
"output_format": "png"
}
},
)
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-pro/text-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A cinematic portrait of a young astronaut standing in a lush bioluminescent forest at dusk, soft blue and purple lighting, intricate space suit details, floating particles in the air, ultra-realistic, highly detailed, atmospheric depth, sharp focus",
"resolution": "2k",
"aspect_ratio": "4:5",
"output_format": "png"
}
}),
});
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 V5.0 Pro Text to Image API
高质量文本生成图片模型,兼顾提示词遵循能力、灵活宽高比与稳定低延迟体验。
Seedream V5.0 Pro 是 ByteDance 推出的高级文本生成图片模型,面向创意生产、营销设计与通用视觉内容生成场景。该模型支持多种宽高比、1K/2K 分辨率档位与常见输出格式,并具备强提示词遵循能力、无冷启动体验和具有竞争力的成本表现。
🚀 核心特性
- 高质量图片生成:针对高质量文本生成图片任务优化,适合生成更精致、更可用的视觉内容。
- 强提示词遵循:能够更准确地理解主体、场景、风格、光照与构图描述,减少反复试错。
- 灵活宽高比:支持正方形、横屏、竖屏、超宽屏等多种布局,便于适配社交媒体、电商与广告投放场景。
- 双分辨率档位:提供 1k 与 2k 两档输出,便于在成本控制与最终质量之间灵活取舍。
- 标准输出格式:支持 jpeg 与 png 输出格式,适合不同后期处理与交付需求。
- 无冷启动体验:适合稳定生产工作流,可更快进入生成流程,提升批量创作效率。
🛠️ 技术规格
| 项目 | 说明 |
|---|---|
| 模型名称 | Seedream V5.0 Pro |
| 模型 ID | bytedance/seedream-v5.0-pro |
| 模型类型 | 文本生成图片 |
| 模型架构 | ByteDance 高级文本生成图片模型 |
| 输入 | 文本提示词 |
| 输出 | 单张图片 |
| 输出格式 | jpeg、png |
| 宽高比 | 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 |
| 分辨率 | 1k、2k |
| 默认宽高比 | 1:1 |
| 默认分辨率 | 1k |
| 默认输出格式 | jpeg |
| 延迟特性 | 无冷启动,适合稳定低延迟生成 |
| 典型工作流 | 输入提示词 → 选择宽高比 → 选择分辨率 → 选择输出格式 → 生成图片 |
示例提示词
一张高端护肤品广告图,玻璃瓶置于大理石台面,柔和侧光,极简背景,商业摄影风格,细节清晰,质感高级未来城市夜景,霓虹灯反射在雨后街道上,电影感构图,广角镜头,蓝紫色调,超高细节可爱风格的原创角色设定图,正面站姿,干净背景,服装细节丰富,二次元插画风格
💰 价格
| 分辨率 | 价格 |
|---|---|
| 1k | $0.045 |
| 2k | $0.090 |
💡 最佳使用场景
- 营销视觉素材:用于生成广告图、社交媒体配图、活动宣传素材与品牌视觉内容。
- 创意概念设计:适合角色、场景、产品外观与视觉风格探索,加速前期创意发散。
- 电商与品牌内容生产:快速生成适配不同版位的商品展示图、横幅图与专题页素材。
- 生产级图片工作流:先用 1k 进行低成本迭代,再用 2k 输出更高质量成品。
🔗 相关模型
- Seedream V5.0 Pro Edit:适合基于现有图片进行文本驱动编辑。
- Seedream V5.0 Lite:更轻量的图片生成模型,适合对成本或资源效率更敏感的场景。
相关模型
z-image-spicy/text-to-image
从文本提示生成高质量图片,支持 256 至 1536 像素自定义尺寸、智能提示词扩写和随机种子,适合创意设计与批量出图。
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,性能出色,无冷启动,价格实惠。
ai/prefect-pony-xl 动漫风格图片生成模型
Prefect Pony XL 可高质量生成动漫风格图片,适用于角色立绘和插画创作。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
OpenAI GPT Image 2 文本生成图片
OpenAI 的 GPT Image 2 文本生成图片模型可根据自然语言提示词生成高质量图片。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
OpenAI GPT Image 2 Edit 图像编辑
OpenAI 的 GPT Image 2 Edit 可通过自然语言指令结合一张或多张参考图片进行图像编辑。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
OpenAI GPT Image 2.5 Sunburst 文本生成图片
面向复杂构图和高要求生产场景的高保真图片生成,最高支持 4K 输出。
OpenAI GPT Image 2.5 Flare 文本生成图片
根据自然语言提示词快速生成高质量图片,兼顾速度与效果,最高支持 4K 输出。