AI Video Translator API for Developers

AI Video Translator API

Translate the speech in any video into another language, in the speaker's own voice, with lips synced to the new audio.

Free credits on signup
Transparent per-credit pricing
No watermarks with paid plans or credit packs
Pay as you go with Auto Reload, or subscribe
Auto-scaling
Speech — Chinese
Story — Spanish
Mirror — Japanese
Pizza — French

Trusted by teams at

Everything You Need to Ship AI Video Translator

Speech translation and dubbing across 53 languages, with resolution controls and trim windows.

Voice Preservation
The translated track keeps the original speaker's tone, pitch, and pacing instead of a generic TTS voice.
Lip Sync Included
Mouth movements are re-synced to the translated speech automatically.
480p, 720p & 1080p Output
resolution defaults to 480p. 720p and 1080p need a paid plan and cost more credits per second.
Trim Controls
Pick a 1–30s clip with start_seconds and end_seconds.

Integrate in 3 Steps

Ship video translation in three steps.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Upload Once, Dub per Language
Upload the source once. Send one POST per target_language to /v1/ai-video-translator. Reuse assets.video_file_path. Use start_seconds and end_seconds to select a 1–30-second clip.
3
Download the Dubbed Video
Poll GET /v1/video-projects/{id} with the returned project ID, or listen for a completion webhook. Once the status is complete, find the dubbed video URL in downloads.
Get Started Free

Code Examples

AI Video Translator in a few lines of code. Install an SDK or use the REST API directly.

from magic_hour import Client

client = Client(token="YOUR_API_TOKEN")
res = client.v1.ai_video_translator.generate(
    assets={"video_file_path": "/path/to/video.mp4"},
    end_seconds=5.0,
    target_language="Spanish",
    start_seconds=0.0,
)
API Docs

Estimate Your API Costs

Choose your settings and volume to estimate the credits and cost.

API Calculator

How will you use the API?
For projects with recurring generation needs.
≈ 100 videos of 5 seconds each
Estimated monthly usage

24,000 Credits

≈ 100 videos (5 sec each) · $0.0749/sec
Based on your selected model, resolution, and usage volume. Rate assumes you use all included credits.
Best plan for your usage

Pro

For professional work and frequent production
$39
/ month
Billed monthly
-36%
$39
$25
/ month · $300 billed yearly
Save $168 compared to monthly
25,000 credits per month
Up to 17.4 min of video
Up to 5,000 images
OR
All payment options
Estimates in USD. Final price and currency shown at checkout.

AI Video Translator API Pricing

Subscription plans for standard usage.

Pay as you go with Auto Reload

In Developer Hub, open Analytics & Billing and turn on Pay as you go. Auto Reload buys credit packs when your balance runs low. Choose Buy credits for a one-time top-up. Some models and settings require a paid plan. How to set up Auto Reload. For help with an existing billing agreement, email us or message us in Intercom.

Built for Builders

See how developers use the AI Video Translator API to power real products.

Courses & Training
Localize lessons and onboarding videos without re-recording.
Marketing
Ship ads and product demos in every market's language.
Creator Apps
Let users dub their clips for global audiences in one call.
Try before integrating

Try AI Video Translator 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.

AI Video Translator API Frequently Asked Questions

Choose from 53 exact names in the API reference. Use “Spanish” or “Portuguese”. There’s no separate option for Mexican Spanish or Brazilian Portuguese.

Yes. The translated track preserves the original speaker's voice, and lip movements are re-synced to the new speech.

1–30 seconds, set with start_seconds and end_seconds.

A five-second dub at 480p uses 240 credits. We round the selected clip up to the next whole second. Rates are 48 credits per second at 480p, 1.5× at 720p, and 2× at 1080p. 720p and 1080p require a paid plan. Estimate credits before creating a job.

The API reference covers request fields, supported languages, and code examples. Open the AI Video Translator API reference.

Start Building with the Magic Hour AI Video Translator API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.