Veo 3.1 Extend Video
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
How to Make a Call
API Schemas
Create a video generation task and send it to the server
The text description of the scene, subject, or action to generate in the video.
A HTTPS URL pointing to a video or a data URI containing a video. This video will be used as a reference during generation.
The aspect ratio of the generated video.
autoPossible values: The length of the output video in seconds.
7Possible values: 720pPossible values: Whether to generate audio for the video.
trueWhether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.
falseRetrieve the generated video from the server
After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its id, obtained from the endpoint described above. If the video generation task status is complete, the response will include the final result — with the generated video URL and additional metadata.
Bearer key
<REPLACE_WITH_YOUR_GENERATION_ID>Code Example
The code below creates a video generation task, then automatically polls the server every 15 seconds until it finally receives the video URL.
Processing time: ~ 2 min 56 sec.
Generated video (1280x720, with sound):
Last updated
Was this helpful?