Model ID
Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.
Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.
- Third-party
ByteDance's first-generation cinematic video model. Generates 1080p video from text or images with strong prompt adherence, stable motion, and native multi-shot narrative coherence. Supports first/last-frame image-to-video and image references.
| Model Info | |
|---|---|
| More information | link ↗ |
| Pricing |
|
const response = await env.AI.run(
'bytedance/seedance-1-pro',
{
prompt:
'A handcrafted mechanical watch rests on black volcanic stone as a narrow beam of morning light moves across its polished steel case, macro cinematography, slow orbiting camera, crisp reflections',
aspect_ratio: '16:9',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-1-pro",
"input": {
"prompt": "A handcrafted mechanical watch rests on black volcanic stone as a narrow beam of morning light moves across its polished steel case, macro cinematography, slow orbiting camera, crisp reflections",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-1-pro/product-film.mp4"
}
}Aerial Landscape — Cinematic 1080p nature sequence with an aerial camera move
const response = await env.AI.run(
'bytedance/seedance-1-pro',
{
prompt:
'An aerial camera glides over a winding river through an autumn forest at dawn, low clouds drifting between amber trees, cinematic color grading, smooth forward movement',
aspect_ratio: '16:9',
duration: 5,
resolution: '1080p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-1-pro",
"input": {
"prompt": "An aerial camera glides over a winding river through an autumn forest at dawn, low clouds drifting between amber trees, cinematic color grading, smooth forward movement",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "1080p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-1-pro/aerial-landscape.mp4"
}
}First Frame Animation — Animate a still image as the first frame of the video
const response = await env.AI.run(
'bytedance/seedance-1-pro',
{
image: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg',
prompt:
'Steam rises gently from the cup while the camera slowly pushes in, soft afternoon window light, calm and natural movement',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-1-pro",
"input": {
"image": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg",
"prompt": "Steam rises gently from the cup while the camera slowly pushes in, soft afternoon window light, calm and natural movement",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-1-pro/first-frame-animation.mp4"
}
}Vertical Fashion Editorial — Vertical fashion editorial for social video formats
const response = await env.AI.run(
'bytedance/seedance-1-pro',
{
prompt:
'A fashion editor walks through a sunlit greenhouse in a flowing emerald dress, leaves sway in a soft breeze, editorial photography, subtle handheld camera motion',
aspect_ratio: '9:16',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-1-pro",
"input": {
"prompt": "A fashion editor walks through a sunlit greenhouse in a flowing emerald dress, leaves sway in a soft breeze, editorial photography, subtle handheld camera motion",
"aspect_ratio": "9:16",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-1-pro/vertical-fashion-editorial.mp4"
}
}prompt
stringrequiredmaxLength: 10000Text prompt describing the video to generateimage
stringReference image (HTTP(S) URL or base64 data URI) for image-to-videolast_frame_image
stringReference image (HTTP(S) URL or base64 data URI) for last-frame guidance. Only works if an image start frame is also given.duration
integerrequireddefault: 5minimum: 4maximum: 12Video duration in secondsresolution
stringrequireddefault: 720penum: 480p, 720p, 1080pVideo resolutionaspect_ratio
stringrequireddefault: 16:9enum: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, 9:21Video aspect ratio. Ignored if an image is used.fps
numberrequireddefault: 24const: 24Frame rate (frames per second)camera_fixed
booleanrequireddefault: falseWhether to fix camera positionwatermark
booleanrequireddefault: falseWhether to add a watermark to the output videoseed
integerminimum: -9007199254740991maximum: 9007199254740991Random seed for reproducible generationuse_virtual_avatar
booleanrequireddefault: falseRoute image reference inputs (image, reference_images, last_frame_image) through ByteDance's trusted virtual avatar asset library before generation. Intended for AI-generated/virtual character avatars that would otherwise be blocked by face or deepfake detectionvideo
stringformat: uriURL to the generated video