Audio-to-Video API for Developers

Audio-to-Video API

Turn audio and an image into a generated video through the Magic Hour API.

Free credits on signup
Transparent per-credit pricing
Official SDKs
Asynchronous jobs
Auto-scaling

Trusted by teams at

Everything You Need to Ship Audio-to-Video

Build reliable audio to video into your product without managing model infrastructure.

Production-Ready Output
Create consistent audio to video results through one documented endpoint.
Asynchronous Processing
Submit jobs, poll status, and retrieve outputs without blocking your application.
Fast Integration
Use REST directly or start with official Python, Node.js, Go, and Rust SDKs.
Commercial Workflows
Build customer-facing applications with predictable usage-based pricing.

Integrate in 3 Steps

Add audio to video to your application in three steps.

1
Get an API Key
Create a Magic Hour account and copy your key from the Developer dashboard.
2
Submit a Request
Upload any required assets and send the documented audio to video request.
3
Retrieve the Result
Poll the project endpoint or use webhooks, then download the completed output.
Get Started Free

Code Examples

Audio-to-Video 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.audio_to_video.generate(
    assets={
        "audio_file_path": "/path/to/1234.mp3",
        "image_file_path": "/path/to/1234.png",
    },
    end_seconds=5.0,
    name="My Audio To Video video",
    resolution="480p",
    start_seconds=0.0,
    wait_for_completion=True,
    download_outputs=True,
    download_directory="."
)
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

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 options
Estimates in USD. Final price and currency shown at checkout.

Audio-to-Video 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 Audio-to-Video API to power real products.

Music Visuals
Add audio to video to music visuals.
Podcast Clips
Automate audio to video for podcast clips.
Social Videos
Create scalable social videos with the API.
Try before integrating

Try Audio-to-Video 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.

Audio-to-Video API FAQ

Get an API key, follow the Audio-to-Video endpoint documentation, submit the required inputs, and retrieve the completed project.

Yes. New accounts receive free credits for testing. For production, choose a paid plan or fund eligible requests with credit packs and Auto Reload.

Magic Hour provides official SDKs for Python, Node.js, Go, and Rust, plus direct REST access.

Start Building with the Audio-to-Video API

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