Create
Video
Image
Audio
Library
Developer

Developer Hub

No Quickstart key yetCreate a key to use the request code.

API Playground

Configure a request and generate a test result.
Result
Example output
Example image generated with Magic Hour

API Playground

Configure a request and generate a test result.
Input image preview
Example image
Result
Your image will appear here
Generate a result to preview and download it.

API Playground

Configure a request and generate a test result.
Result
Example output

API Playground

Configure a request and generate a test result.
First frame preview
Example image
Result
Example output
Step 3

Production code

Matches your prompt and generation settings — ready to copy into your app.
from magic_hour import Client
from os import getenv

client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
image_file_path = client.v1.files.upload_file("/path/to/image-to-video-perfume-start.webp")
res = client.v1.image_to_video.create(
    style={"prompt": "Slow orbit, moving studio light and mist. Keep the bottle unchanged."},
    assets={"image_file_path": image_file_path},
    end_seconds=3.0,
    name="My first AI video",
    model="ltx-2.5",
    resolution="480p",
    audio=True,
)
Uses your API key from MAGIC_HOUR_API_KEY.
Docs
Resources
AI Agent Skills
Create finished videos with Codex or Claude.
Plans & credit packs
Add credits for API generations.
Usage pricing
Pay for API usage as you scale.
Quick Start
Make your first API call in minutes.
API Cookbook
Runnable examples in a Colab notebook.
SDKs
Official client libraries on GitHub.
Community
Get help from our Discord community.