Generate videos from text prompts using Gemini Veo 3.1
The operation_id can be obtained from the response of the predictLongRunning endpoint.
After a successful query, the API returns a URL (response.generateVideoResponse.generatedSamples.video.uri) for downloading the video. This URL is required when making the request.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
instances | array | ✅ Yes | - | An array of instances containing the video generation parameters |
instances[].prompt | string | ✅ Yes | a cat | The text prompt describing the video content you want to generate |