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
Lightricks LTX-2.3 Pro is a high-fidelity video generation model for text-to-video and image-to-video, with synchronized audio, first-to-last frame control, and portrait and landscape output up to 4K, in 6, 8 or 10 second clips.
| Model Info | |
|---|---|
| More information | link ↗ |
| Pricing |
|
const response = await env.AI.run(
'lightricks/ltx-2-3-pro',
{
prompt: 'A paper boat drifting across a calm pond at sunrise',
duration: 6,
resolution: '1920x1080',
fps: 24,
generate_audio: true,
},
)
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": "lightricks/ltx-2-3-pro",
"input": {
"prompt": "A paper boat drifting across a calm pond at sunrise",
"duration": 6,
"resolution": "1920x1080",
"fps": 24,
"generate_audio": true
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-3-pro/text-to-video.mp4"
}
}Image-to-Video — Animate a still image into a short video
const response = await env.AI.run(
'lightricks/ltx-2-3-pro',
{
prompt: 'The camera slowly pushes in while clouds drift past the tower',
image_uri: 'https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg',
duration: 6,
resolution: '1920x1080',
fps: 24,
generate_audio: true,
},
)
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": "lightricks/ltx-2-3-pro",
"input": {
"prompt": "The camera slowly pushes in while clouds drift past the tower",
"image_uri": "https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg",
"duration": 6,
"resolution": "1920x1080",
"fps": 24,
"generate_audio": true
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/lightricks/ltx-2-3-pro/image-to-video.mp4"
}
}prompt
stringrequiredminLength: 1maxLength: 10000Text prompt describing the videoimage_uri
stringformat: uriHTTPS URI for the first framelast_frame_uri
stringformat: uriHTTPS URI for the last frame▶duration
one ofrequiredresolution
stringrequireddefault: 1920x1080enum: 1280x720, 720x1280, 1920x1080, 1080x1920, 2560x1440, 1440x2560, 3840x2160, 2160x3840▶fps
one ofrequiredgenerate_audio
booleanrequireddefault: truevideo
stringformat: uriURL to the generated video