Build with video, image & audio AI. All through one API.

Generate, edit, and transform media with leading AI models. Start with free credits, integrate in minutes, and scale as your product grows.

API Playground
POST   /v1/ai-image-generator
Ready
Example image generated with Magic Hour
POST   /v1/text-to-video
Ready

Integrate Dozens of AI Tools in Minutes

Choose the Right Model API

Build with model-specific APIs for video, image generation, and image editing. Compare inputs, examples, and capabilities across Magic Hour's supported models. In the text-to-video example select the Node.js tab to save the project ID and download the MP4. For product clips or lip sync, use the product-video and lip-sync recipes or use our API evaluation guide to compare cost per accepted output on your own workload. For ChatGPT or Claude, see Magic Hour MCP setup.

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.

Pay as you go

Automatically refill your API credits when your balance runs low.
Buy credits once

Built for How Developers Actually Ship

SDKs for Your Tech Stack

Our SDKs support multiple popular languages, making integration seamless and fast

What developers say

"about 30K people try the face swap daily. The API handled that scale easily and was fast and easy to integrate."
"I built it myself in two weeks with Replit and OpenAI, Magic Hour, music, and Stripe API's"
"Especially when using the API, you don't have to spend ages tweaking little parameters to get it to work well, most tools are great out of the box and when you do need to make some adjustments, its very easy to do so."
"Magic Hour is cost-effective and a great way to harness image and video generation from modern models in a way where I can abstract the nitty gritty and focus on my actual application."