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 Free
from magic_hour import Client
from os import getenv
client = Client(token=getenv("MAGIC_HOUR_API_KEY"))

res = client.v1.face_swap.create(
  assets={
    "image_file_path": "image/id/photo.png", 
    "video_source": "file",
    "video_file_path": "video/id/movie.mp4",
  },
  start_seconds: 0,
  end_seconds: 15,
  height: 720,
  width: 1280,
)

Trusted by teams at:

meta logonba logoloreal logopuma logocisco logodeel logoshopify logodecathlon logodallas-mavericks logopittsburgh-pirates logotala logodyson logodazn logowsc-sports logo

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 Animation
Subtitle Generator
Automate Video Subtitles
Learn More about Subtitle Generator
Video-to-Video
Apply new styles to your videos
Learn More about Video-to-Video
Face Swap Video
Easily swap faces in any video
Learn More about Face Swap Video
Text-to-Video
Create realistic videos from text
Learn More about Text-to-Video
Image-to-Video
Turn images into videos
Learn More about Image-to-Video
Lip Sync
Sync your video with any audio
Learn More about Lip Sync
Talking Photo
Make still photos talk
Learn More about Talking Photo
ai-face-editor
AI Face Editor
Edit faces in photos
Learn More about AI Face Editor
ai-headshot-generator
Headshot Generator
Create professional headshots
Learn More about Headshot Generator
ai-image-generator
AI Image Generator
Generate images from text
Learn More about AI Image Generator
ai-meme-generator
AI Meme Generator
Generate memes from text
Learn More about AI Meme Generator
ai-clothes-changer
AI Clothes Changer
Try on any outfit virtually
Learn More about AI Clothes Changer
image-background-remover
Background Remover
Remove background instantly
Learn More about Background Remover
face-swap-photo
Face Swap Photo
Easily swap faces in any photo
Learn More about Face Swap Photo
ai-image-upscaler
AI Image Upscaler
Enhance details in your image
Learn More about AI Image Upscaler
ai-qr-code-generator
QR Code Generator
Generate unique QR Codes
Learn More about QR Code Generator
photo-colorizer
Photo Colorizer
Colorize your photos
Learn More about Photo Colorizer

Estimate Your API Costs

Simple transparent pricing based on your usage. Only pay for what you need and get volume discounts as you scale.

Mode
Starter Tier
$0.90 / 1000 frames
  • 512x512 resolution
  • 100MB uploads
  • No access to Image-to-Video, Text-to-Video, and Video-to-Video
Creator Tier
$1.20 / 1000 frames
  • 1024x1024 resolution
  • 1GB uploads
Pro Tier
$1.95 / 1000 frames
  • 1472x1472 resolution
  • 2GB uploads
Business Tier
$2.50 / 1000 frames
  • 4096x4086 resolution for select modes
  • 3GB uploads
All paid plans include: volume discounts (up to 50% off), no watermark, priority compute, and dedicated support.
Volume Discounts
Frame Usage Per MonthDiscount Applied to
Frames in this Range
0 - 100,0000%
100,000 - 1,000,00010%
1,000,000 - 5,000,00020%
5,000,000 - 10,000,00030%
10,000,000 - 50,000,00040%
50,000,000+50%
Seconds of Video
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.

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.
Create an API Key for Free
Chart with line going up
Building new features

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.
Concept art representing software infrastructure
Different usage by day

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

Get Access to Usage-Based Pricing

Tell us about your usage needs, and we will provide access to our flexible, usage-based pricing model.