Animation API for Developers

Animation API

Drive motion graphics from audio tracks and style presets—ideal for lyric videos, explainers, and automated content.

Free credits on signup
Transparent per-credit pricing
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

meta
nba
loreal
puma
cisco
deel
shopify
decathlon
dallas-mavericks
pittsburgh-pirates
tala
dyson
dazn
wsc-sports

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 output via response or webhook. Deploy to production — infrastructure scales automatically.
Get Started Free

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,
)
API Docs

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.
Seconds of Video Per Month
100 seconds
seconds
Recommended plan
Pro Annual
$300
/year
300,000 credits per year
Up to 3.5 hours of video
Up to 30,000 images
PRO ANNUAL covers your usage
Estimated usage
12,000credits / month
Included
25,000credits / month
Remaining headroom
13,000credits / month
TOTAL BILL
$300
/year

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.

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.

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.

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 Animation. 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.

Start Building with the Magic Hour Animation API

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