Generate with Veo3, Veo3 Fast using Text Prompts
Example for generating a video with audio using Veo3 and Veo3 Fast from text
Follow this recipe to generate video using text:
The guide will recreate the following functionality in the Web UI via API.
Veo3 720p Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v1/generations-text-to-video\
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data'
{
"height": 720,
"width": 1280,
"prompt":"a breathtaking, cinematic sequence of a massive crystal whale gliding through a vast night sky that behaves like a deep ocean. The whaleโs body is sculpted from translucent, glimmering crystalโits surface faceted like a gemstone, catching moonlight and scattering it in radiant rainbow beams across the sky. Each movement creates soft refractions that dance across the clouds, making them ripple like bioluminescent waves.",
"resolution": "RESOLUTION_720",
"model": "VEO3",
"isPublic": false
}
Generate in 1080p
Change "resolution": "RESOLUTION_720"
to "resolution": "RESOLUTION_1080"
Veo3 1080p Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v1/generations-text-to-video\
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data'
{
"height": 1080,
"width": 1920,
"prompt":"a breathtaking, cinematic sequence of a massive crystal whale gliding through a vast night sky that behaves like a deep ocean. The whaleโs body is sculpted from translucent, glimmering crystalโits surface faceted like a gemstone, catching moonlight and scattering it in radiant rainbow beams across the sky. Each movement creates soft refractions that dance across the clouds, making them ripple like bioluminescent waves.",
"resolution": "RESOLUTION_1080",
"model": "VEO3",
"isPublic": false
}
Generate With Veo3 Fast Model
Follow this recipe to generate video using text:
The guide will recreate the following functionality in the Web UI via API.

VEO3 Fast 720p Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v1/generations-text-to-video\
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data'
{
"height": 720,
"width": 1280,
"prompt":"Koala Party",
"resolution": "RESOLUTION_720",
"model": "VEO3FAST",
"isPublic": false
}
Veo3 Fast 1080p Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v1/generations-text-to-video\
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data'
{
"height": 1080,
"width": 1920,
"prompt":"a breathtaking, cinematic sequence of a massive crystal whale gliding through a vast night sky that behaves like a deep ocean. The whaleโs body is sculpted from translucent, glimmering crystalโits surface faceted like a gemstone, catching moonlight and scattering it in radiant rainbow beams across the sky. Each movement creates soft refractions that dance across the clouds, making them ripple like bioluminescent waves.",
"resolution": "RESOLUTION_1080",
"model": "VEO3FAST",
"isPublic": false
}
ResolutionVeo3 720p generates at an aspect ratio of 16:9 at dimensions 1280x720.
Ve03 1080p generates at an aspect ratio of 16:9 at dimensions 1920x1080.
height
andwidth
dimensions specified outside of this will not be accepted.
Switch to Motion 2To use Motion 2.0, remove the
model
parameter or set it toMOTION2
.Parameters such as
frameinterpolation
andpromptEnhance
are not compatible with Veo3.
Cost
The Text-to-Video endpoint costs 4000 API Credits per Veo3 video
The Text-to-Video endpoint costs 2140 API Credits per Veo3 Fast video
Updated 2 days ago