Abstract gradient background for the Magic Hour API

Create with the Magic Hour API

Run a real video or image request before you create an account.
API Playground
POST   /v1/ai-image-generator
Ready
ExampleExample image generated with Magic Hour
from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))
res = client.v1.ai_image_generator.generate(
    image_count=1,
    style={
        "prompt": "Black perfume bottle on wet stone, violet light and soft haze.",
        "tool": "general",
    },
    aspect_ratio="16:9",
    model="default",
    name="My first AI image",
    resolution="auto",
    wait_for_completion=True,
    download_outputs=True,
    download_directory="."
)
API Playground
POST   /v1/text-to-video
Ready
Example
from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))
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,
)

Integrate Dozens of AI Tools in Minutes

Choose the Right Model API

Build with model-specific APIs for video, image generation, and image editing. Compare inputs, examples, and capabilities across Magic Hour's supported models.

Estimate Your API Costs

Every generation uses credits. Prepay with a subscription or one-time credit packs, or request usage-based billing for monthly invoicing and volume discounts.
Seconds of Video Per Month
100 seconds
seconds
Recommended plan
Pro Yearly
$300
/year
300,000 credits per year
Up to 3.5 hours of video
Up to 30,000 images
PRO YEARLY covers your usage
Estimated usage
24,000credits / month
Included
25,000credits / month
Remaining headroom
1,000credits / month
TOTAL BILL
$300
/year

Need Usage-Based Billing?

Pay monthly for the credits you use, with graduated volume discounts. Contact our team for setup assistance.
Contact Form
Name
Email
Project requirements
or
Chat with our team directly here.

Built for How Developers Actually Ship

SDKs for Your Tech Stack

Our SDKs support multiple popular languages, making integration seamless and fast