基礎文生圖 / 圖生圖, 支援最多 3 張參考圖
seedream-4-0-250828文生圖。
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
model | string | 是 | 影像模型 ID, 如 `imagen-4.0-fast` / `imagen-4.0-standard` / `imagen-4.0-ultra` / `imagen-3.0-generate-002` |
prompt | string | 是 | 文本描述, 支援中英文 |
n | integer | 否 | 生成圖片數量 |
size | string | 否 | 影像尺寸 可選: 1024x1024 / 1792x1024 / 1024x1792 / 1536x1536 |
quality | string | 否 | 品質檔位 (部分模型支援) 可選: standard / hd |
response_format | string | 否 | 可選: 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"
}'