Text-to-Video API for Developers

Text-to-Video API

Turn prompts into video with a single API call. Choose aspect ratio, duration, and models—fully managed, with SDKs and webhooks.

Free credits on signup
Transparent per-credit pricing
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
Camel journey through the desert
Cartoon-style horse show, playful animation
Cozy coffee scene, steam rising
Film noir detective scene
Runway fashion show
Felt-style kitten, soft fabric aesthetic
Magical fantasy scene
Manga-style animated scene
New York city scene
Romantic movie scene
Sci-fi cinematic scene

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

Describe a scene; get a rendered clip. Built for product teams that need reliable video generation without running GPUs.

Prompt-to-Video Generation
Send a text prompt and optional creative controls. The API handles model selection, rendering, and delivery.
Aspect Ratio & Format Control
Target landscape, portrait, or square outputs for social, ads, and product surfaces from one integration.
Duration & Quality Options
Configure clip length and quality modes to balance cost, speed, and visual fidelity for your use case.
Fast Generation
Async jobs with status polling and webhooks so your app stays responsive while video renders in the background.
Auto-Scaling Infrastructure
Magic Hour scales compute with demand—no cluster management, no cold-start tuning on your side.
Commercial-Ready
Paid plans include non-watermarked outputs suitable for production apps, marketing, and client delivery.

Integrate in 3 Steps

Ship text-to-video in three steps—no model hosting or GPU ops.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Submit a Prompt
Call the text-to-video endpoint with your prompt, duration, and optional aspect ratio—via SDK or raw HTTP.
3
Get Results & Scale
Receive the output via response or webhook. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Text-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.text_to_video.generate(
    name="My Text-to-Video",
    end_seconds=5,
    style={
        "prompt": "FPV moving through a forest to san francisco skyline",
    },
)
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
24,000credits / month
Included
25,000credits / month
Remaining headroom
1,000credits / month
TOTAL BILL
$300
/year

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

Built for Builders

See how developers use the Text-to-Video API to power real products.

Social & Short-Form Video
Auto-generate hooks, B-roll, and variants for TikTok, Reels, and Shorts from structured prompts or templates.
Marketing & Ads
Produce ad creative and landing-page videos at scale with copy-driven generation and consistent branding.
Content & Media Tools
Embed generation into editors, CMS workflows, and creator suites so users never leave your product.
E-Commerce Merchandising
Illustrate products, lifestyle scenes, and seasonal campaigns without costly shoots for every SKU.
Games & Interactive Apps
Drive dynamic cutscenes, UGC-style clips, and personalized trailers from user or in-game text.
Education & Training
Turn lesson outlines and scripts into visual explainers for courses, onboarding, and internal training.
Try before integrating

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

Text-to-Video API — Frequently Asked Questions

It is a REST API that creates videos from natural-language prompts. You authenticate with an API key and receive a job you can poll or complete via webhook.

Use a bearer token from the Magic Hour developer dashboard. The same key works across SDKs and raw HTTP.

Official SDKs include Python and Node.js (TypeScript). You can also call the REST API from any language.

Magic Hour offers subscription and usage-based options. Video length, resolution, and model affect cost—see the pricing calculator on the API pages.

Yes. Pass duration and aspect settings supported by the endpoint to match platform requirements.

Video generation runs asynchronously. Submit a job, then poll project status or use webhooks for completion.

Paid production plans support non-watermarked delivery. Trial usage may differ by plan.

See docs.magichour.ai for request schemas, models, limits, and error codes for text-to-video.

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 Text-to-Video. 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 Text-to-Video API

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