Skip to content
Docs
ByteDance logo

Seedream 4.5

Text-to-ImageByteDance

Seedream 4.5 builds on 4.0 with multi-reference image support, batch generation, and sequential image generation.

Model Info
More informationlink
PricingView pricing in the Cloudflare dashboard

Usage

TypeScript
const response = await env.AI.run(
'bytedance/seedream-4.5',
{ prompt: 'A cozy reading nook with floor-to-ceiling bookshelves and a comfortable armchair' },
)
console.log(response)
Simple Generation

Examples

High Resolution — 4K quality image generation
TypeScript
const response = await env.AI.run(
'bytedance/seedream-4.5',
{
prompt:
'A hyperrealistic still life painting of fresh fruit on an antique wooden table with dramatic chiaroscuro lighting',
aspect_ratio: '4:3',
size: '4K',
},
)
console.log(response)
High Resolution
Image-to-Image — Edit using reference images
TypeScript
const response = await env.AI.run(
'bytedance/seedream-4.5',
{
prompt: 'Transform this scene into a winter wonderland with snow covering everything',
aspect_ratio: 'match_input_image',
image_input: [
'https://replicate.delivery/xezq/0lxxNQSg3NabCZrDiQVAPGVmjP1Q2dd7TgYCOTfI9LpyZaMLA/tmp89gopylq.jpg',
],
},
)
console.log(response)
Image-to-Image
Sequential Generation — Generate multiple related images
TypeScript
const response = await env.AI.run(
'bytedance/seedream-4.5',
{
prompt: 'A character design sheet for a fantasy warrior: front view, side view, and back view',
aspect_ratio: '16:9',
max_images: 3,
sequential_image_generation: 'auto',
},
)
console.log(response)
Sequential Generation
Multi-Image Edit — Combine multiple reference images
TypeScript
const response = await env.AI.run(
'bytedance/seedream-4.5',
{
prompt: 'Combine the style of the first image with the subject from the second image',
image_input: [
'https://replicate.delivery/xezq/TRYcLgNMrBpPJVq09ICKXWe4Z8d6olzpK5vtQPOB8O23ZaMLA/tmpaecga26m.jpg',
'https://replicate.delivery/xezq/1SbAc0aXYXbVD9doyrdCW78hYufVefMsaJXBrETN7Lu2npxsA/tmphvkx7emy.jpg',
],
size: '2K',
},
)
console.log(response)
Multi-Image Edit

Parameters

aspect_ratio
stringenum: match_input_image, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9
disable_safety_checker
boolean
max_images
integermaximum: 15minimum: 1
prompt
stringrequired
sequential_image_generation
stringenum: disabled, auto
size
stringenum: 2K, 4K

API Schemas (Raw)

Input
Output