Supports text-to-image and image-to-image generation with up to three reference images.
seedream-4-0-250828Text-to-image generation.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Image model ID, e.g. `imagen-4.0-fast` / `imagen-4.0-standard` / `imagen-4.0-ultra` / `imagen-3.0-generate-002` |
prompt | string | Yes | Text description, supports both Chinese and English |
n | integer | No | Number of generated images |
size | string | No | Image size Options: 1024x1024 / 1792x1024 / 1024x1792 / 1536x1536 |
quality | string | No | Quality level (supported by some models) Options: standard / hd |
response_format | string | No | Options: 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"
}'