Image GenerationSeedream
Seedream 4.5
Upgraded image model with stronger spatial understanding and world knowledge by ByteDance.
POST /v2/images/generate — model: "seedream-4.5"
Upgraded version of Seedream 4 with stronger spatial understanding, world knowledge, and cinematic aesthetics. Supports up to 4K resolution and multi-reference image-to-image generation with up to 14 input images.
See Image Generation overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Description |
|---|---|---|
seedreamParams.aspect_ratio | string | Aspect ratio. Use "match_input_image" to match input image, or "W:H" format (e.g. "16:9") |
seedreamParams.size | string | "2K" (default) or "4K". Note: 1K is not supported in Seedream 4.5. Use "custom" for specific dimensions |
seedreamParams.width | integer | Custom width (1024–4096). Only used when size is "custom" |
seedreamParams.height | integer | Custom height (1024–4096). Only used when size is "custom" |
seedreamParams.image_input | string[] | Up to 14 input image URLs for image-to-image generation |
Credit cost
| Credits per generation |
|---|
| 4 |
Code examples
curl -X POST https://api.apiframe.ai/v2/images/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a warm nostalgic film-style interior of a cozy cafe, shot on 35mm, afternoon sunlight",
"model": "seedream-4.5",
"seedreamParams": {
"size": "4K",
"aspect_ratio": "16:9"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/images/generate",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"prompt": "a warm nostalgic film-style interior of a cozy cafe, shot on 35mm, afternoon sunlight",
"model": "seedream-4.5",
"seedreamParams": {
"size": "4K",
"aspect_ratio": "16:9",
},
},
)
print(response.json())const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "a warm nostalgic film-style interior of a cozy cafe, shot on 35mm, afternoon sunlight",
model: "seedream-4.5",
seedreamParams: { size: "4K", aspect_ratio: "16:9" },
}),
});
console.log(await response.json());Try it
POST
/v2/images/generateTry it