Veo 3.1 – Text-to-Video API
Generate cinematic videos from text prompts with Google Veo 3.1. Supports 720p, 1080p, and 4K resolutions with optional audio. Standard and Fast modes available.
Google Veo 3.1
State-of-the-art text-to-video generation powered by Google's Veo 3.1 model with multi-resolution output and optional audio synthesis.
Veo 3.1 is Google's advanced text-to-video model that transforms text prompts into high-quality cinematic videos. It supports resolutions up to 4K, durations of 4-8 seconds, and optional audio generation for complete multimedia output. Choose between Standard mode for maximum quality or Fast mode for quicker generation at lower cost.
Key capabilities
- Multi-resolution output: Generate videos in 720p, 1080p, or 4K resolution
- Audio generation: Optional synchronized audio for complete multimedia content
- Flexible durations: 4, 6, or 8 second video outputs
- Aspect ratio control: 16:9 (landscape) or 9:16 (portrait) formats
- Negative prompts: Specify elements to avoid in generation
- Two generation modes: Standard (highest quality) and Fast (cost-efficient)
- Long prompts: Up to 20,000 characters for detailed descriptions
- Reproducible results: Seed parameter for consistent outputs
Use cases
- Marketing content: Create promotional videos and product showcases from descriptions
- Social media: Generate engaging short-form content for TikTok, Reels, and Shorts
- Storytelling: Visualize narratives, concepts, and creative ideas
- Advertising: Produce video ads from text briefs
- Education: Create visual explanations and demonstrations
- Prototyping: Quickly visualize video concepts before production
Generate with Veo 3.1 Standard
High-quality video generation with maximum fidelity and detail.
Generate with Veo 3.1 Fast
Faster generation at reduced cost, ideal for prototyping and high-volume workflows.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text describing the video to generate (max 20,000 chars) |
negative_prompt | string | No | Text describing what to avoid in the video |
duration | integer | No | Video duration: 4, 6, or 8 seconds (default: 8) |
resolution | string | No | Output resolution: "720p", "1080p", or "4k" (default: "720p") |
aspect_ratio | string | No | Video format: "16:9" or "9:16" (default: "16:9") |
generate_audio | boolean | No | Generate synchronized audio (default: true) |
seed | integer | No | Random seed for reproducibility |
webhook_url | string | No | URL for task completion notification |
Frequently Asked Questions
What is the difference between Standard and Fast modes?
Standard mode produces the highest quality output with maximum detail and fidelity, ideal for final production content. Fast mode generates videos more quickly at a lower cost, making it perfect for prototyping, testing prompts, and high-volume workflows where speed matters more than maximum quality.
What resolutions are supported?
Veo 3.1 supports three resolution options: 720p (HD), 1080p (Full HD), and 4K (Ultra HD). Higher resolutions provide more detail but may take longer to generate.
How does audio generation work?
When generate_audio is set to true (the default), Veo 3.1 synthesizes synchronized audio that matches the visual content. This includes ambient sounds, music, and effects appropriate to the scene described in your prompt.
How long does generation take?
Generation time varies based on resolution, duration, and server load. Fast mode typically completes in less time than Standard mode. Use webhooks for production workflows to avoid polling.
What makes a good prompt for Veo 3.1?
Effective prompts describe the scene, subjects, motion, camera movement, lighting, and atmosphere. Be specific about visual details. Example: "A serene mountain landscape at sunset with clouds moving slowly across an orange sky, camera slowly panning right"
Can I generate portrait videos for social media?
Yes, set aspect_ratio to "9:16" to generate vertical videos optimized for TikTok, Instagram Reels, and YouTube Shorts.
Best practices
- Prompt detail: Provide specific descriptions of scenes, subjects, motion, and atmosphere for best results
- Negative prompts: Use
negative_promptto exclude unwanted elements like "blurry, low quality, distorted" - Resolution selection: Choose 720p for fast iteration, 1080p for social media, 4K for high-end production
- Audio control: Disable
generate_audioif you plan to add custom audio in post-production - Webhook integration: Use webhooks instead of polling for scalable production applications
- Seed for consistency: Use the same seed with identical parameters to reproduce similar results
Related APIs
- Veo 3.1 Image-to-Video: Generate videos from images with Veo 3.1
- Veo 3.1 Reference-to-Video: Generate videos with consistent characters using reference images
- Kling 2.6 Pro: Alternative image-to-video with motion control
- WAN 2.6: Text-to-video at 720p and 1080p resolutions