AI Video & Image Creation API
Integrate generative AI video and image capabilities to your app in minutes. Built for developers, by developers.
Get Started For Freefrom magic_hour import Client
from os import getenv
client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
res = client.v1.face_swap.generate(
assets={
"image_file_path": "/path/to/image.png",
"video_source": "file",
"video_file_path": "/path/to/video.mp4",
},
start_seconds: 0,
end_seconds: 15,
)Trusted by teams at














Integrate Dozens of AI Tools in Minutes
Whatever your needs, we have the right tool to help you scale.
Animation
Create stop-motion animations
Learn More about AnimationSubtitle Generator
Automate Video Subtitles
Learn More about Subtitle GeneratorVideo-to-Video
Apply new styles to your videos
Learn More about Video-to-VideoFace Swap Video
Easily swap faces in any video
Learn More about Face Swap VideoText-to-Video
Create realistic videos from text
Learn More about Text-to-VideoImage-to-Video
Turn images into videos
Learn More about Image-to-VideoLip Sync
Sync your video with any audio
Learn More about Lip SyncTalking Photo
Make still photos talk
Learn More about Talking Photo
AI Face Editor
Edit faces in photos
Learn More about AI Face Editor
AI Image Editor
Edit images with text
Learn More about AI Image Editor
AI Headshot Generator
Create professional headshots
Learn More about AI Headshot Generator
AI Image Generator
Generate images from text
Learn More about AI Image Generator
AI Meme Generator
Generate memes from text
Learn More about AI Meme Generator
AI Clothes Changer
Try on any outfit virtually
Learn More about AI Clothes Changer
Background Remover
Remove background instantly
Learn More about Background Remover
Face Swap Photo
Easily swap faces in any photo
Learn More about Face Swap Photo
AI Image Upscaler
Enhance details in your image
Learn More about AI Image Upscaler
AI GIF Generator
Generate GIFs from text
Learn More about AI GIF Generator
QR Code Generator
Generate unique QR Codes
Learn More about QR Code Generator
Photo Colorizer
Colorize your photos
Learn More about Photo ColorizerEstimate Your API Costs
Simple transparent pricing based on your usage. Only pay for what you need and get volume discounts as you scale.
API Calculator
Use our calculator to estimate your API costs.
Tier
Estimated monthly cost
$1.73
Based on 24 FPS
Get Access to Usage-Based Pricing
Tell us about your usage needs, and we will provide access to our flexible, usage-based pricing model.
Click below to chat with us about your API requirements and get access to usage-based pricing.
SDKs for Your Tech Stack
Our SDKs support multiple popular languages, making integration seamless and fast
Scale Your App Automatically
Magic Hour automatically scales up compute to handle demand, with no limit. If you do not get any traffic, we scale down to zero and you are not charged.
Read the API docs

Build AI Features in a Day
Get set up in minutes with our well-documented APIs, robust SDKs in multiple languages, sample code, and tutorials for seamless AI deployment.
Take Infrastructure off Your Plate
Deploying large-scale ML means dealing with server setup, dependency headaches, oversized models, and CUDA complexities. We take care of it for you, so you can focus on innovation.


Only Pay For What You Use
We only charge you for how much you use, no monthly subscriptions or paying for GPUs when you are not using them.
Contact Us For Usage Based Pricing