Image-to-Video API for Developers

Image-to-Video API

Upload an image, describe motion, and download the video. The five-second product photo recipe uses 120 credits with LTX 2.5 at 480p and audio off.

Free credits on signup
Transparent per-credit pricing
No watermarks with paid plans or credit packs
Subscriptions, credit packs, or usage-based billing
Auto-scaling
dragon
galaxy sky
girl
halo
pool
space jump
spaceship
steampunk scene
anime warrior
petal storm
sunny meadow

Trusted by teams at

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
Animate a starting image with an optional motion prompt. Add an end image when your model, resolution, and clip length support it.
Resolution & Framing
Choose a resolution your model supports, such as 720p or 1080p. Frame the source image for your intended placement.
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
Upload an image and send its file path with an optional motion prompt to POST /v1/image-to-video. Save the project ID from the response.
3
Download the Video
Poll GET /v1/video-projects/{id}, or wait for a completion webhook. Once the status is complete, download the MP4 from the URL in downloads.
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(
    assets={
        "end_image_file_path": "/path/to/1234.png",
        "image_file_path": "/path/to/1234.png",
    },
    end_seconds=5.0,
    audio=True,
    model="ltx-2.5",
    name="My Image To Video video",
    resolution="480p",
    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

30,000 Credits

≈ 100 videos (5 sec each) · $0.0849/sec
Based on your selected model, resolution, and usage volume. Rate assumes you use all included credits.
Best plan for your usage

Business

For teams, agencies, and high-volume content
$99
/ month
Billed monthly
-33%
$99
$66
/ month · $792 billed yearly
Save $396 compared to monthly
70,000 credits per month
Up to 48.6 min of video
Up to 14,000 images
OR
All payment options
Estimates in USD. Final price and currency shown at checkout.

Image-to-Video API Pricing

Subscription plans for standard usage.

Need usage-based billing?

Email us or message us in Intercom for monthly billing with graduated volume discounts.

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 can use a paid subscription, one-time credit packs, or usage-based billing by request.

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

Yes. Use the Magic Hour provider for Vercel AI SDK to pass in an image and a motion prompt, then save the generated video as an MP4. See the Node.js image-to-video example.

For example, a five-second LTX 2.5 clip at 480p with audio disabled uses 120 credits (24 credits per second). On Creator monthly, that works out to about $0.19 per generation if you use all the included credits. With a $10 US credit pack of 4,000 credits, the same five-second clip uses $0.30 worth of credits per charged generation. Three charged attempts at those settings use 360 credits. Model, duration, resolution, and audio settings determine the credit cost. Subscription plans start at $19/month (Creator), $39/month (Pro), and $99/month (Business), each with included credits. One-time credit packs add credits without a subscription. Usage-based billing with graduated volume discounts is available by request. Free starter credits are available on signup; no credit card required. See 480p and 1080p costs with retries.

Create a free account, then open API Keys in the Developer Hub and select Create key. No credit card is required. Use that key with the endpoints and models available on your plan.

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.

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.