Veo 3.1 API for Developers
Veo 3.1 API
Generate premium AI videos with Google's Veo 3.1 via API. Frontier realism, strong prompt adherence, and native dialogue — no GPU setup required.
Free credits on signup
Transparent per-credit pricing
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
Glow bee
Rock
Fine glass
Floating woman
Legos
Trusted by teams at














Everything You Need to Ship Veo 3.1
Google's frontier video model with industry-leading realism and dialogue.
Frontier Realism
Google's most advanced video model with industry-leading visual fidelity and photorealism.
Prompt Adherence
Strong instruction following — Veo 3.1 rewards precise, detailed prompts with accurate execution.
Dialogue & Audio
Toggle-able native audio with clear dialogue, ambient sound, and contextual effects.
Long-Form Output
Generate videos up to 56 seconds — among the longest single-generation durations available.
Auto-Scaling Infrastructure
Scales compute to match demand automatically. No GPU provisioning or cold starts.
Commercial-Ready
Paid plans support non-watermarked outputs with commercial licensing for production delivery.
Integrate in 3 Steps
Add frontier AI video generation to your app in minutes.
1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Send Your Request
Pass a detailed text prompt or reference image to the image-to-video endpoint and select the veo-3.1 model.
3
Get Results & Scale
Receive the generated video via response or webhook. Deploy to production — infrastructure scales automatically.
Code Examples
Veo 3.1 in a few lines of code. Install an SDK or use the REST API directly.
from magic_hour import Client
from os import getenv
client = Client(token=getenv("API_TOKEN"))
res = client.v1.image_to_video.generate(
assets={"image_file_path": "/path/to/first-frame.png"},
end_seconds=8,
model="veo3.1",
name="Veo 3.1 Video",
resolution="1080p",
style={"prompt": "A cinematic dolly zoom through a neon city at night"},
)Estimate Your API Costs
Build with model-specific APIs for video, image generation, and image editing. Compare inputs, examples, and capabilities across Magic Hour's supported models.
Pricing tier options
Seconds of Video Per Month
100 seconds
seconds
Recommended plan
Business Annual
$792
/year
840,000 credits per year
Up to 9.7 hours of video
Up to 84,000 images
BUSINESS ANNUAL is a better fit
- 48,000credits / month
- 25,000credits / month
- 23,000credits / month
Estimated usage
Included
Shortfall
TOTAL BILL
$300
/year
SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
Veo 3.1 API Pricing
Subscription plans for standard usage.
Prefer usage-based pricing?
Email us or message us in Intercom and we will set up your usage-based pricing.
Built for Builders
See how developers use the Veo 3.1 API to power real products.
Premium Ad Creative
Create polished, photorealistic commercial content that rivals traditional production quality.
Film & Pre-Production
Pre-visualize scenes with frontier realism before committing to expensive shoots.
Dialogue-Driven Content
Generate talking-head content, testimonials, and dialogue scenes with native audio.
Luxury & Fashion Marketing
Create high-end brand content with the visual fidelity that premium markets demand.
Documentary Style
Generate realistic documentary-style footage with natural motion and lighting.
SaaS Product Videos
Create professional product demos and explainers with polished cinematic quality.
Try before integrating
Try Veo 3.1 Free — No Code Required
Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.
Veo 3.1 API — Frequently Asked Questions
Magic Hour's Veo 3.1 API lets developers generate AI videos using Google DeepMind's Veo 3.1 model via REST API with SDKs for Python, Node.js, Go, and Rust.
Veo 3.1 is Google's frontier video model — it offers industry-leading realism, strong prompt adherence, and native dialogue generation. It produces up to 56 seconds of video.
Veo 3.1 generates videos up to 56 seconds per request.
720p and 1080p in 9:16 and 16:9 aspect ratios.
Yes. Veo 3.1 supports toggle-able native audio with clear dialogue, ambient sound, and synchronized effects.
Magic Hour offers subscription plans starting at $15/month (Creator), $39/month (Pro), and $99/month (Business), each including a monthly credit allotment. Credits are consumed per generation based on output length and model. You can also contact us to set up usage-based (pay-as-you-go) pricing. A free tier with credits is available on signup — no credit card required.
Veo 3.1 is one of the strongest models for realistic human rendering, including dialogue scenes and talking-head content.
Veo 3.1 costs more than other models and usually rewards more precise prompting. Quick rough drafts may be more cost-effective on lighter models.
Sign up at magichour.ai/developer — no credit card required. You'll receive free credits and an API key immediately. The key works across all Magic Hour API endpoints including Veo 3.1. Start making API calls in minutes using our Python, Node.js, Go, or Rust SDKs.
Yes. Every new Magic Hour account gets free credits on signup that work across all API endpoints. No credit card is required to get started. Paid plans unlock higher credit limits, higher concurrency, and commercial use rights.