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
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"))
res = client.v1.text_to_video.create(
    end_seconds=3.0,
    aspect_ratio="16:9",
    style={"prompt": "Perfume bottle on wet stone. Slow orbit, moving light and mist."},
    name="My first AI video",
    model="ltx-2.5",
    resolution="480p",
    audio=True,
)
Uses your API key from MAGIC_HOUR_API_KEY.
Docs

API Playground

Configure a request and generate a test result.
First frame preview
Example image
Result
Example output
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.