Veo3 (Text-to-Video)
Last updated
Was this helpful?
Last updated
Was this helpful?
The model generates high-quality short videos from text or image prompts with significant advancements over its predecessor, .
If you don’t have an API key for the AI/ML API yet, feel free to use our .
Generating a video using this model involves sequentially calling two endpoints:
The first one is for creating and sending a video generation task to the server (returns a generation ID).
The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.
Below, you can find two corresponding API schemas and an example with both endpoint calls.
You can generate a video using this API. In the basic setup, you only need a prompt.
The prompt will be automatically enhanced using AI. To disable this feature, set the parameter enhance_prompt
to false
.
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in a couple of minutes
or take a bit more.
The code below creates a video generation task, then automatically polls the server every 10 seconds until it finally receives the video URL.
This model produces highly detailed and natural-looking videos, so generation may take around 2 minutes for a 8-second video with audio.
Low-res GIF preview:
Original (with sound):
"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming."
No content
The text description of the scene, subject, or action to generate in the video.
The aspect ratio of the generated video.
The length of the output video in seconds.
The description of elements to avoid in the generated video.
Whether to enhance the video generation.
true
Varying the seed integer is a way to get different results for the same other request parameters. Using the same value for an identical request will produce similar results. If unspecified, a random number is chosen.
Whether to generate audio for the video.
true
No content