Lip Sync API for Developers
Lip Sync API
Replace or add dialogue audio while syncing mouth movement—perfect for localization, dubbing workflows, and creator tools.
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
Trusted by teams at
Everything You Need to Ship Lip Sync
Production lip sync with tiered generation modes so you can trade off speed, cost, and fidelity per job.
Video + Audio Pipeline
Pair a talking-head or dialogue clip with a replacement audio track and let the model retime visemes.
Quality Modes
Choose lite, standard, or pro modes to match budget and quality for each customer segment.
Plan-Based Output Size
Output sizing follows the input video and plan limits. The deprecated height and width fields are ignored.
Fast Processing
Optimized inference paths for short-form content and rapid iteration in creative apps.
Auto-Scaling Infrastructure
Handle concurrent dubbing jobs during product launches without capacity planning fire drills.
Commercial-Ready
Ship dubbing features to paying creators and studios with licensing suited to SaaS use.
Integrate in 3 Steps
Wire up dubbing-style features in an afternoon.
1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Attach Audio to Video
Upload video and audio assets, then call lip-sync with generation_mode and timing fields.
3
Get Results & Scale
Save the project ID. Poll GET /v1/video-projects/{id} until the job completes or listen for video.completed, then get the file URLs from downloads.
Code Examples
Lip Sync 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("MAGIC_HOUR_API_KEY"))
res = client.v1.lip_sync.generate(
assets={
"audio_file_path": "/path/to/1234.mp3",
"video_file_path": "/path/to/1234.mp4",
"video_source": "file",
},
end_seconds=5.0,
start_seconds=0.0,
max_fps_limit=12.0,
name="My Lip Sync video",
wait_for_completion=True,
download_outputs=True,
download_directory="."
)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
12,000 Credits
≈ 100 videos (5 sec each) · $0.0380/sec
Based on your selected model, resolution, and usage volume. Rate assumes you use all included credits.
Best plan for your usage
Creator
For social content and everyday creation
$19
/ month
Billed monthly
-37%
$19
$12
/ month · $144 billed yearly
Save $84 compared to monthly
12,000 credits per month
Up to 8.3 min of video
Up to 2,400 images
OR
All payment optionsEstimates in USD. Final price and currency shown at checkout.
SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
Lip Sync 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 Lip Sync API to power real products.
Localization & Dubbing
Let studios swap dialogue tracks while preserving on-screen performance for global releases.
Creator Platforms
Give users AI-assisted ADR, meme dubbing, and voice swap experiences inside your editor.
Ads & Personalization
Record one hero take, then generate market-specific audio with matching lip motion.
Virtual Sales Assistants
Refresh spokesperson lines when promos change without a full reshoot.
Games & VTubing
Experiment with character voices while keeping facial performance coherent.
Training & Compliance
Update spoken lines in training footage when policies or scripts change.
Try before integrating
Try Lip Sync 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.
Lip Sync API — Frequently Asked Questions
A new video where mouth movement aligns with the supplied audio, within the processed segment you define.
Modes trade off fidelity and cost—lite for speed, pro for demanding close-ups. See docs for tier availability.
Yes. Use start_seconds and end_seconds to limit the processed range.
Use Magic Hour upload URLs, then pass file_path fields for video and audio assets.
Quality depends on face visibility, resolution, and audio clarity—test with representative content.
Python and Node clients wrap the REST endpoints with typed helpers.
The Lip Sync API charges 1 credit per rendered frame in Lite or Standard mode and 2 in Pro mode. A 10-second video rendered at 30 fps costs 300 credits in Lite or Standard, or 600 in Pro. Check credits_charged on the completed job for the final charge. See Lip Sync API pricing and plan limits.
Complete request bodies and enums are listed under docs.magichour.ai/tools/video/lip-sync.
Magic Hour offers subscription plans starting at $19/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. For pay as you go, turn on Auto Reload to buy credits when your balance runs low. You can also buy a credit pack once. A free tier with credits is available on signup — no credit card required.
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 Lip Sync. Start making API calls in minutes using our Python, Node.js, Go, or Rust SDKs.
New accounts get free credits to test supported free-tier API endpoints. Some models and resolutions require a paid plan; check the current endpoint page and pricing before integrating.