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

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)
Input / Output JSON
{
"prompt": "A cute robot watering plants in a sunny greenhouse"
}

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',
output_format: 'png',
aspect_ratio: '16:9',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Input / Output JSON
{
"prompt": "A detailed technical blueprint of a futuristic spacecraft with annotations and measurements",
"size": "3K",
"output_format": "png",
"aspect_ratio": "16:9"
}
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',
output_format: 'jpeg',
aspect_ratio: '3:4',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Input / Output JSON
{
"prompt": "A professional headshot portrait with soft studio lighting and a neutral gray background",
"size": "2K",
"output_format": "jpeg",
"aspect_ratio": "3:4"
}
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',
sequential_image_generation: 'auto',
max_images: 4,
aspect_ratio: '4:3',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Input / Output JSON
{
"prompt": "A four-panel comic strip showing a cat discovering a cardboard box and deciding to sit in it",
"sequential_image_generation": "auto",
"max_images": 4,
"aspect_ratio": "4:3"
}
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',
],
aspect_ratio: 'match_input_image',
size: '2K',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Input / Output JSON
{
"prompt": "Create a variation of this image in a watercolor painting style",
"image_input": [
"https://replicate.delivery/xezq/jCypj4MeXYUiRyq7nfgm8z1OvFZF81wh4FznutDsZOuJz0YWA/tmp1iukn307.jpg"
],
"aspect_ratio": "match_input_image",
"size": "2K"
}

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

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"prompt": {
"type": "string"
},
"image_input": {
"maxItems": 14,
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"size": {
"type": "string",
"enum": [
"2K",
"3K"
]
},
"aspect_ratio": {
"type": "string",
"enum": [
"match_input_image",
"1:1",
"4:3",
"3:4",
"16:9",
"9:16",
"3:2",
"2:3",
"21:9"
]
},
"sequential_image_generation": {
"type": "string",
"enum": [
"disabled",
"auto"
]
},
"max_images": {
"type": "integer",
"minimum": 1,
"maximum": 15
},
"output_format": {
"type": "string",
"enum": [
"png",
"jpeg"
]
}
},
"required": [
"prompt"
],
"additionalProperties": false
}