Seedream 4.0 API

基礎文生圖 / 圖生圖, 支援最多 3 張參考圖

POST /v1/images/generations

文生圖。

請求參數

參數類型必填說明
modelstring是影像模型 ID, 如 `imagen-4.0-fast` / `imagen-4.0-standard` / `imagen-4.0-ultra` / `imagen-3.0-generate-002`
promptstring是文本描述, 支援中英文
ninteger否生成圖片數量
sizestring否影像尺寸 可選: 1024x1024 / 1792x1024 / 1024x1792 / 1536x1536
qualitystring否品質檔位 (部分模型支援) 可選: standard / hd
response_formatstring否 可選: url / b64_json

請求示例

curl https://api.router.ai/v1/images/generations \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-4-0-250828",
    "prompt": "雪山日出,长焦压缩,胶片颗粒",
    "size": "1024x1024"
  }'

介面通用說明: Aliyun Qwen-Image 文生圖