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

meta
nba
loreal
puma
cisco
deel
shopify
decathlon
dallas-mavericks
pittsburgh-pirates
tala
dyson
dazn
wsc-sports

Integrate Dozens of AI Tools in Minutes

Whatever your needs, we have the right tool to help you scale.

Estimate 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
Chart showing upward scaling performance as app usage grows.
Developer building AI features quickly with Magic Hour API.

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 managed cloud infrastructure for AI models.
Bar chart showing variable daily API usage with pay-per-use pricing.

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