Seedream 3.0 文生图 API
描述图像内容(最多 300 个中文字符或 600 个英文单词)
Output image size preset, or use width/height for custom. Range: 648x648 to 2048x2048, 64-aligned
生成内容与提示词的匹配程度 (1-10)
结果
结果将在此处显示
费用: $0.03/张图
Seedream 3.0 API 实现指南
Seedream 3.0 关键信息
Seedream 3.0 API 文档
先在体验区运行,再打开完整 API 文档查看集成细节。
简介
高性价比的文本生成图像,支持种子值(seed)和引导(guidance)控制
代码示例
1curl -X POST https://api.modelhunter.ai/api/v1/seedream/text-to-image \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "seedream-3-0-t2i",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"size": "1024x1024"9}10}'
Schema
查看完整 API 文档输入
model当前能力对应的模型 ID。
值: seedream-3-0-t2i
prompt描述图像内容(最多 300 个中文字符或 600 个英文单词)
sizeOutput image size preset, or use width/height for custom. Range: 648x648 to 2048x2048, 64-aligned
可选值: 1024x1024, 1152x864, 864x1152, 1280x720, 720x1280, 1248x832, 832x1248, 1512x648
默认值: 1024x1024
widthCustom width in pixels (alternative to size). Range: 648-2048, 64-aligned
范围: 648 到 2048
heightCustom height in pixels (alternative to size). Range: 648-2048, 64-aligned
范围: 648 到 2048
guidance_scale生成内容与提示词的匹配程度 (1-10)
默认值: 7
范围: 1 到 10
seed用于实现可复现性的随机种子。输入 -1 表示随机
默认值: -1
范围: -1 到 2147483647
watermark水印
默认值: true
response_format响应格式
可选值: url
默认值: url
webhookUrl任务完成后接收 Webhook 通知的 URL。
metadata用于跟踪任务的自定义键值元数据。
响应 (HTTP 202)
success请求是否已成功受理。
data.id唯一任务 ID,可轮询 GET /api/v1/tasks/{id} 获取结果。
data.status任务状态: pending, processing, completed, failed.
data.type生成类型: text-to-image.
data.provider服务商: seedream.
data.model本次生成使用的模型 ID。
data.created_at任务创建时间(ISO 8601)。
data.estimated_seconds任务完成的预估秒数。