Skip to content
ByteDance logo

Seedream 5 Lite

Text-to-ImageByteDanceProxied

Seedream 5 Lite is a lighter, faster version of the Seedream 5 family with multi-reference and batch generation support.

Model Info
More informationlink
PricingView pricing in the Cloudflare dashboard

Usage

TypeScript
const response = await env.AI.run(
'bytedance/seedream-5-lite',
{
prompt: 'A cute robot watering plants in a sunny greenhouse',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Simple Generation

Examples

High Resolution PNG — 3K quality with PNG output
TypeScript
const response = await env.AI.run(
'bytedance/seedream-5-lite',
{
prompt:
'A detailed technical blueprint of a futuristic spacecraft with annotations and measurements',
size: '3K',
aspect_ratio: '16:9',
output_format: 'png',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
High Resolution PNG
Portrait Photo — JPEG output for photographs
TypeScript
const response = await env.AI.run(
'bytedance/seedream-5-lite',
{
prompt:
'A professional headshot portrait with soft studio lighting and a neutral gray background',
size: '2K',
aspect_ratio: '3:4',
output_format: 'jpeg',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Portrait Photo
Sequential Comic — Generate sequential comic panels
TypeScript
const response = await env.AI.run(
'bytedance/seedream-5-lite',
{
prompt:
'A four-panel comic strip showing a cat discovering a cardboard box and deciding to sit in it',
aspect_ratio: '4:3',
sequential_image_generation: 'auto',
max_images: 4,
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Sequential Comic
Image Variation — Create variation from reference
TypeScript
const response = await env.AI.run(
'bytedance/seedream-5-lite',
{
prompt: 'Create a variation of this image in a watercolor painting style',
image_input: [
'https://replicate.delivery/xezq/jCypj4MeXYUiRyq7nfgm8z1OvFZF81wh4FznutDsZOuJz0YWA/tmp1iukn307.jpg',
],
size: '2K',
aspect_ratio: 'match_input_image',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Image Variation

Parameters

prompt
stringrequired
size
stringenum: 2K, 3K
aspect_ratio
stringenum: match_input_image, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9
sequential_image_generation
stringenum: disabled, auto
max_images
integerminimum: 1maximum: 15
output_format
stringenum: png, jpeg

API Schemas (Raw)

Input
Output