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 to start
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 swapped 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

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.

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

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.