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
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
ai-headshot-generator
AI Headshot Generator
Generate professional headshots
Learn More about AI Headshot Generator
ai-image-generator
AI Image Generator
Generate images from text
Learn More about AI Image 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
AI QR Code Generator
Generate unique QR Codes
Learn More about AI QR Code Generator

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

Estimate Your API Costs

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

Estimated monthly cost
$46.80
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.

Get Started for Free