Animation API for Developers
Animation API
Drive motion graphics from audio tracks and style presets—ideal for lyric videos, explainers, and automated content.
Free to start
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
505 - Arctic Monkeys
Aphex Twin Animation - Aphex Twin
ATM - J. Cole
Black Beatles - Rae Sremmurd
Breaking the Habbit - Linkin Park
Confessions of a Dangerous Mind - Logic
Lose Yourself to Dance - Daft Punk
Everybody - Logic
Tequila Shot - Kid Cudi
On Hold - The xx
Trusted by teams at














Everything You Need to Ship Animation
Combine audio, art styles, camera effects, and timing controls in one request—no After Effects server farm required.
Audio-Driven Motion
Sync visuals to uploaded audio with configurable FPS, duration, and canvas size for predictable exports.
Style & Camera Presets
Select art styles, camera moves, and prompt types to steer the look without hand-keyframing.
Creative Controls
Tune transition speed and prompts for branded motion kits and template libraries inside your product.
Fast Generation
Optimized pipeline for turning songs, voiceovers, and SFX beds into shareable animated clips.
Auto-Scaling Infrastructure
Elastic capacity for viral spikes—your team focuses on UX, not render queues.
Commercial-Ready
Use paid tiers to ship non-watermarked assets in consumer and B2B offerings.
Integrate in 3 Steps
Launch generative animation without building a render farm.
1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Provide Audio & Style
Upload audio, set FPS and dimensions, and pass style fields (art style, camera effect, prompt) to the animation endpoint.
3
Get Results & Scale
Receive the swapped output via response or webhook. Deploy to production — infrastructure scales automatically.
Code Examples
Animation 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.animation.generate(
style={
"art_style": "Oil Painting",
"camera_effect": "Simple Zoom In",
"prompt": "Beautiful landscape nature lakes valleys mountains",
"prompt_type": "custom",
"transition_speed": 5,
},
assets={
"audio_source": "file",
"audio_file_path": "/path/to/audio.mp3",
},
fps=12,
end_seconds=15,
height=720,
width=1280,
)SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
Animation 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.
API Calculator
Use our calculator to estimate your API costs.
Tier
Estimated monthly cost
$1.73
Based on 24 FPS
Built for Builders
See how developers use the Animation API to power real products.
Music & Social
Auto-visualize tracks for TikTok, Shorts, and artist promo pages from mastered audio uploads.
Marketing Explainers
Pair VO with animated backgrounds for product tours, changelog videos, and lifecycle emails.
Studios & Agencies
Prototype motion directions for pitches while keeping production flexible and API-driven.
Retail Storytelling
Animate campaign audio into stylized loops for displays, PDP embeds, and paid media.
Games & Communities
Turn community voice clips and highlight audio into stylized shareables.
Education
Make lectures and podcast snippets more visual for course platforms.
Try before integrating
Try Animation 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.
Animation API — Frequently Asked Questions
Typically audio assets plus style parameters such as art style, camera effect, and prompts. Dimensions and FPS define the output canvas.
Yes. Upload to Magic Hour storage and reference the returned file path in the request body.
Duration is bounded by end_seconds and plan limits—check the docs for maximums tied to your tier.
You set height and width within supported ranges; higher resolutions may increase credits and render time.
Video projects integrate with Magic Hour webhook patterns where enabled for your workspace.
Python and Node SDKs expose the same operations as REST; pick what matches your backend.
The API is designed for embedded use; branding is controlled by your client apps and player.
Refer to docs.magichour.ai for the animation tool page and OpenAPI-style field descriptions.