> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magichour.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Magic Hour API Documentation

> Magic Hour API documentation - generate videos, images, and audio using AI.

Magic Hour API is an API for AI-powered video and image generation. You can run models for creating videos, images, and audio through a single REST API.

[Create an API key](https://magichour.ai/developer?tab=api-keys\&ref=docs-introduction\&utm_source=docs\&utm_medium=referral\&utm_campaign=introduction),
follow the [quickstart](/get-started/quick-start), or compare [API pricing](/billing/overview).

## Choose how to use Magic Hour

Magic Hour supports three ways to create, depending on how much control and automation you need:

**🌐 Web App ([magichour.ai](https://magichour.ai/?utm_source=docs\&utm_medium=referral\&utm_campaign=introduction)):**

* Full suite of 100+ AI tools and features
* User-friendly interface with templates and presets
* New features launch here first
* Perfect for creators and individual use

**⚡ API (docs.magichour.ai):**

* Core popular tools available programmatically
* Built for developers and applications
* Supported models and parameters documented in the API reference
* Features added after web app validation

**🤖 MCP ([setup guide](/integration/model-context-protocol)):**

* Lets compatible AI assistants call Magic Hour's API-backed tools
* Accepts natural-language requests for images, video, and audio
* Includes helpers for uploads, asynchronous jobs, and completed downloads
* Uses the same Magic Hour API key and credits as direct API calls

<Note>
  **Shared Dashboard:** All API-generated content automatically appears in your [magichour.ai
  dashboard](https://magichour.ai/my-library?utm_source=docs\&utm_medium=referral\&utm_campaign=introduction),
  where you can view, manage, and share your creations.
</Note>

## Get Started

If you're new to Magic Hour, start here to learn the essentials and make your first API call.

<CardGroup cols={3}>
  <Card title="Quick Start" icon="forward-fast" href="/get-started/quick-start">
    First request in 3 minutes.
  </Card>

  <Card title="API Reference" icon="webhook" href="/api-reference/overview">
    All endpoints in one place.
  </Card>

  <Card title="Magic Hour MCP" icon="wand-magic-sparkles" href="/integration/model-context-protocol">
    Create media from Claude, ChatGPT, Claude Code, or Codex.
  </Card>
</CardGroup>

<CardGroup cols={3}>
  <Card title="Colab Cookbook" icon="code" href="https://colab.research.google.com/drive/1NTHL_lr_s-qBJ-mSecSXPzRLi9_V5JiU?usp=sharing" openInNewTab>
    Try every API in the browser.
  </Card>

  <Card title="Pricing & Billing" icon="credit-card" href="/billing/overview">
    Costs, plans, and credit usage.
  </Card>

  <Card title="Integration Guide" icon="diagram-project" href="/integration/overview">
    Lifecycle, polling, and webhooks.
  </Card>
</CardGroup>

<CardGroup cols={3}>
  <Card title="Video Tools" icon="video" href="/tools/video-tools">
    Generation, editing, audio visualization, and transformation.
  </Card>

  <Card title="Image Tools" icon="image" href="/tools/image-tools">
    Generation, editing, enhancement, and subject replacement.
  </Card>

  <Card title="Audio Tools" icon="microphone" href="/tools/audio-tools">
    Voice generation and cloning.
  </Card>
</CardGroup>

<br />

<Frame>
  <video src="https://d28dkohlqf5vwj.cloudfront.net/landing/landing-page-sizzle-reel.mp4" muted loop autoPlay playsInline className="rounded-lg" />
</Frame>

**Available via API:**

**🎥 Video Tools:**

* **AI Video Editor** - Edit videos using natural-language prompts
* **Face Swap Video** - Replace faces in videos with realistic results
* **AI Talking Photo** - Make still photos speak with any audio
* **Animation** - Create smooth stop-motion style animations
* **Audio-to-Video** - Generate video from audio and optional visual guidance
* **Auto Subtitle Generator** - Add accurate subtitles to videos
* **Character Replace** - Replace a person in a video with a reference character
* **Image-to-Video** - Animate static images into dynamic videos
* **Lip Sync** - Sync audio with video lip movements
* **Video-to-Video** - Apply style transfers to existing videos
* **Text-to-Video** - Generate videos from text descriptions

**🖼️ Image Tools:**

* **AI Image Generator** - Create images from text descriptions
* **Body Swap** - Place a person into a different scene
* **Face Swap Photo** - Swap faces in static images
* **AI Clothes Changer** - Try on different outfits virtually
* **AI Face Editor** - Edit facial features with precision
* **AI GIF Generator** - Create animated GIFs from text
* **Head Swap** - Replace a full head while preserving the body and scene
* **AI Image Editor** - Edit images with text prompts
* **AI Headshot Generator** - Create professional headshots
* **AI Image Upscaler** - Enhance image resolution and quality
* **AI Meme Generator** - Generate memes with AI
* **AI QR Code Generator** - Create artistic QR codes
* **Image Background Remover** - Remove backgrounds instantly
* **Photo Colorizer** - Add color to black and white photos

**🎤 Audio Tools:**

* **AI Voice Generator** - Generate speech from text with a supported preset voice
* **AI Voice Cloner** - Clone a voice from an audio sample and generate speech with it

**Why choose the API:**

* **Scalable integration** - Build AI features into your applications
* **Async workflow support** - Submit jobs, monitor completion, and receive results with polling or webhooks
* **Flexible pricing** - Use subscriptions, one-time credit packs, or request
  [usage-based billing](/billing/overview)
* **Developer friendly** - RESTful API with SDKs for Python, Node.js, Go, and Rust

Magic Hour handles the AI models, scaling, and infrastructure so you can focus on building your application.
