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

# API Cookbook - Google Colab

> Try all 22 Magic Hour APIs with ready-to-run sample code.

## Overview

The Magic Hour API Cookbook is a comprehensive Google Colab notebook containing working examples for all 22 APIs. Simply add your API key and start experimenting with:

* All video tools (Animation, Face Swap, Lip Sync, etc.)
* All image tools (Image Generator, Face Editor, Upscaler, etc.)
* All audio tools (Voice Generator)

<Card title="Open Google Colab Cookbook" icon="code" href="https://colab.research.google.com/drive/1NTHL_lr_s-qBJ-mSecSXPzRLi9_V5JiU?usp=sharing" openInNewTab>
  Launch the notebook in Google Colab. Just add your API key and run any example.
</Card>

## What's Included

The cookbook includes:

* **Working code samples** for all 22 APIs
* **Pre-configured parameters** optimized for fast execution
* **Error handling** examples
* **Best practices** and tips

## Getting Started

1. **Get your API key** - If you haven't already, [create an API key](/get-started/authentication)
2. **Open the notebook** - Click the link above to open in Google Colab
3. **Add your API key** - Set it in the first cell
4. **Run any example** - Execute any code cell to try that API

<Tip>
  **No installation required:** Google Colab runs Python in your browser with all dependencies
  pre-installed.
</Tip>

## Related Resources

<CardGroup cols={2}>
  <Card title="Quick Start" icon="rocket" href="/get-started/quick-start">
    Step-by-step guide to your first API call
  </Card>

  <Card title="API Reference" icon="webhook" href="/api-reference">
    Complete API documentation
  </Card>
</CardGroup>
