submit_video
Generate videos from text prompts or images using Veo 3.1. Specify aspect ratio, resolution, and model type, then check job status for the final MP4 output.
Instructions
Submit a Veo 3.1 video generation job. Returns immediately with a job_id.
Videos typically take 30-120 seconds. Call check_video(job_id) to poll for completion. The final MP4 is written to the configured OUTPUT_DIR and its absolute path is returned by check_video once ready.
Args: prompt: Text description of the video to generate. model: "lite" (cheapest), "fast" (default, good balance), or "standard" (highest quality, most expensive). See get_pricing for rates. aspect_ratio: "16:9" (landscape) or "9:16" (portrait). resolution: "720p", "1080p", or "4k". "4k" is rejected for model="lite". negative_prompt: Optional text describing what to avoid. image_path: Optional absolute path to a PNG/JPEG/WebP file to use as the starting frame for image-to-video generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model | No | fast | |
| aspect_ratio | No | 16:9 | |
| resolution | No | 720p | |
| negative_prompt | No | ||
| image_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||