Image-to-Video API for Developers

Image-to-Video API

Upload an image, describe motion, and receive a video. Ideal for social, ads, and creative tools—without running your own diffusion stack.

Free to start
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
dragon
galaxy sky
girl
halo
pool
space jump
spaceship
steampunk scene
anime warrior
petal storm
sunny meadow

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 Image-to-Video

Bring stills to life with motion prompts and model options—one API for vertical, square, and landscape delivery.

Image-to-Video Generation
Start from a single (or start/end) image and generate motion-aligned video for ads, social, and product demos.
Resolution & Framing
Control dimensions and output quality so clips match TikTok, Reels, YouTube, and web placements.
Optional Motion Prompts
Guide camera moves, pacing, and style with prompts while the pipeline handles temporal consistency.
Fast Turnaround
Async processing with clear job states—optimized so your UX stays snappy while renders complete.
Auto-Scaling Infrastructure
Elastic compute for bursty creator traffic or steady SaaS usage—no GPU fleet to operate.
Commercial-Ready
Non-watermarked outputs on paid tiers for apps, agencies, and platforms shipping to customers.

Integrate in 3 Steps

From image upload to animated clip—fully managed end to end.

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 an Image & Prompt Motion
Provide an image file path (after upload) and optional motion prompt. The API returns a video project job.
3
Get Results & Scale
Receive the swapped output via response or webhook. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Image-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.image_to_video.generate(
    name="My Image-to-Video",
    end_seconds=5,
    resolution="480p",
    assets={"image_file_path": "/path/to/image.png"},
    style={"prompt": "waves crashing"},
)
API Docs

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

Social & Creator Tools
Let users animate portraits, memes, and product stills into short clips inside your editor or mobile app.
Ads & Performance Marketing
Spin up motion variants from static product shots for testing hooks and creative fatigue.
E-Commerce Catalogs
Turn on-model stills into subtle motion loops for PDPs, email, and paid social retargeting.
Media & Entertainment
Prototype shots, storyboards, and pitch materials without blocking on full production schedules.
Games & Avatars
Animate character art and player uploads for profile videos, lobby loops, and shareable moments.
Education & Training
Make diagrams, slides, and still diagrams more engaging with light motion for learners.
Try before integrating

Try Image-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.

Image-to-Video API — Frequently Asked Questions

It converts still images into short videos using generative models. You supply image assets (via upload URLs) and optional prompts.

No. Magic Hour runs inference and scaling. You integrate with REST or SDKs and handle only your app logic.

Use the file upload endpoints to obtain file_path values, then reference those paths in the image-to-video request body.

When supported by the product configuration, you can supply additional frame references—check the docs for current fields.

Common raster image formats used elsewhere in Magic Hour APIs apply; see the reference for exact MIME and size limits.

Projects return identifiers you poll via the video project APIs or observe through webhooks when enabled.

New accounts include trial credits. Production usage typically moves to a paid subscription or usage-based plan.

Full request and response schemas live at docs.magichour.ai under the image-to-video tool and API reference.

Start Building with the Magic Hour Image-to-Video API

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