Seedream 4.5 文生图 API
描述图像内容(最多 300 个中文字符或 600 个英文单词)
Resolution preset. The model decides dimensions based on your prompt. Use width/height for custom pixel sizes instead (cannot mix)
结果
结果将在此处显示
费用: $0.04/张图
Seedream 4.5 API 实现指南
Seedream 4.5 API 文档
先在体验区运行,再打开完整 API 文档查看集成细节。
简介
支持多图输入与流式输出的最新旗舰模型
代码示例
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-4-5",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"size": "2K"9}10}'
Schema
查看完整 API 文档输入
model当前能力对应的模型 ID。
值: seedream-4-5
prompt描述图像内容(最多 300 个中文字符或 600 个英文单词)
sizeResolution preset. The model decides dimensions based on your prompt. Use width/height for custom pixel sizes instead (cannot mix)
可选值: 2K, 4K
默认值: 2K
widthCustom width in pixels (alternative to size preset). Total pixels (w×h) must be in [3,686,400 ~ 16,777,216], aspect ratio in [1:16 ~ 16:1]
heightCustom height in pixels (alternative to size preset). Default: 2048x2048
watermark水印
默认值: true
optimize_prompt增强提示词以获得更好的生成效果
可选值: standard, fast
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任务完成的预估秒数。