Seedream 4.0 图生图 API
Primary reference image. URL or base64. Formats: jpeg, png, webp, bmp, tiff, gif. Max 10MB, 6000x6000px
拖拽图片至此处,或点击浏览
支持 PNG, JPEG, WebP。最大 100MB。您也可以从剪贴板粘贴 (Ctrl+V)。
Describe the desired transformation (max 300 Chinese characters or 600 English words)
Output image size preset. Model auto-determines dimensions from prompt. Total pixels must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
结果
结果将在此处显示
费用: $0.03/张图
Seedream 4.0 API 实现指南
Seedream 4.0 API 文档
先在体验区运行,再打开完整 API 文档查看集成细节。
简介
Edit and transform images with multi-image reference input (up to 14) using Seedream 4.0
代码示例
1curl -X POST https://api.modelhunter.ai/api/v1/seedream/image-to-image \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "seedream-4-0",6"input": {7"image": "https://example.com/image.jpg",8"prompt": "A futuristic cityscape at sunset with neon signs",9"size": "2K"10}11}'
Schema
查看完整 API 文档输入
model当前能力对应的模型 ID。
值: seedream-4-0
imagePrimary reference image. URL or base64. Formats: jpeg, png, webp, bmp, tiff, gif. Max 10MB, 6000x6000px
images附加参考图(总计最多 14 张),以 URL 形式提供,用逗号分隔
promptDescribe the desired transformation (max 300 Chinese characters or 600 English words)
sizeOutput image size preset. Model auto-determines dimensions from prompt. Total pixels must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
可选值: 1K, 2K, 4K
默认值: 2K
widthCustom width in pixels (alternative to size). Total pixels (w×h) must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1], 128-aligned
heightCustom height in pixels (alternative to size). Total pixels (w×h) must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1], 128-aligned
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生成类型: image-to-image.
data.provider服务商: seedream.
data.model本次生成使用的模型 ID。
data.created_at任务创建时间(ISO 8601)。
data.estimated_seconds任务完成的预估秒数。