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

# Getting Started

> Get up and running with MegaLLM in just a few minutes. Access 70+ AI models through one unified API.

## Quick Navigation

> [card] [Quick Start](https://docs.megallm.io/en/home/getting-started/quick-start.md)
>
> Make your first API call in 2 minutes

> [card] [Setup Guide](https://docs.megallm.io/en/home/getting-started/setup.md)
>
> Complete setup and configuration

> [card] [First Request](https://docs.megallm.io/en/home/getting-started/first-request.md)
>
> Your first AI request step-by-step

> [card] [Next Steps](https://docs.megallm.io/en/home/getting-started/next-steps.md)
>
> What to do after getting started

## What is MegaLLM?

MegaLLM is a universal AI platform that provides access to 70+ large language models through a single API. Instead of managing multiple API keys and integrations, you get:

* **One API** for all models
* **One bill** for all usage
* **One integration** to maintain

### Supported Models

* **OpenAI**: GPT-4, GPT-5, GPT-3.5 Turbo
* **Anthropic**: Claude Opus 4, Claude Sonnet, Claude Haiku
* **Google**: Gemini 2.5 Pro, Gemini Flash
* **Meta**: Llama 3 70B, Llama 3 8B
* **And 60+ more models!**

## Why Choose MegaLLM?

> [accordion] Universal Access
>
> Access all major AI models through one API. No need to integrate with multiple providers separately.

> [accordion] Simple Integration
>
> Drop-in replacement for OpenAI and Anthropic SDKs. Just change the base URL and you're ready to go.

> [accordion] Automatic Fallbacks
>
> Built-in failover ensures your application keeps running even when a model is down.

> [accordion] Cost Optimization
>
> Easily switch between models to optimize for cost, speed, or quality without code changes.

> [accordion] One Bill
>
> Unified billing across all providers. Track usage and costs in one dashboard.

## 3-Step Setup

**1. Get API Key**

Sign up at [megallm.io](https://megallm.io) and generate your API key

**2. Install SDK**

Use the OpenAI or Anthropic SDK you already know

```bash theme={null}
pip install openai
# or
pip install anthropic
```

**3. Make Request**

Point to MegaLLM and start using any model

```python theme={null}
from openai import OpenAI

client = OpenAI(
    base_url="https://ai.megallm.io/v1",
    api_key="your-megallm-api-key"
)
```

## Choose Your Path

> [tab] I'm New to AI
>
> Perfect! Start here:
>
> 1. [Quick Start Guide](https://docs.megallm.io/home/getting-started/quick-start) - Get your API key and make your first request
> 2. [First Request Tutorial](https://docs.megallm.io/home/getting-started/first-request) - Step-by-step walkthrough
> 3. [Browse Models](https://docs.megallm.io/home/models) - Explore available models
> 4. [FAQ](https://docs.megallm.io/home/faq.md) - Common questions

> [tab] I Use OpenAI
>
> Great! Switching is easy:
>
> 1. Get your MegaLLM API key
> 2. Change your base URL to `https://ai.megallm.io/v1`
> 3. That's it! All your code works the same
>
> See: [OpenAI Migration Guide](https://docs.megallm.io/dev-docs/openai/overview)

> [tab] I Use Anthropic
>
> Awesome! Migration is simple:
>
> 1. Get your MegaLLM API key
> 2. Change your base URL to `https://ai.megallm.io`
> 3. Done! Use Claude and 70+ other models
>
> See: [Anthropic Migration Guide](https://docs.megallm.io/dev-docs/anthropic/overview)

> [tab] I'm a Developer
>
> Let's dive in:
>
> 1. [API Reference](https://docs.megallm.io/api-reference/introduction) - Complete API docs
> 2. [OpenAI API](https://docs.megallm.io/dev-docs/openai/overview) - OpenAI-compatible endpoints
> 3. [Anthropic API](https://docs.megallm.io/dev-docs/anthropic/overview) - Anthropic-compatible endpoints
> 4. [Streaming](https://docs.megallm.io/api-reference/endpoint/streaming) - Real-time responses
> 5. [Function Calling](https://docs.megallm.io/api-reference/endpoint/function-calling) - Tool use

## Next Steps

> [card] [Quick Start](https://docs.megallm.io/en/home/getting-started/quick-start.md)
>
> Make your first request in 2 minutes

> [card] [View All Models](https://docs.megallm.io/en/home/models.md)
>
> Browse 70+ available AI models

> [card] [Developer Docs](https://docs.megallm.io/en/dev-docs/overview)
>
> Comprehensive API documentation

> [card] [CLI Tool](https://docs.megallm.io/en/cli/overview.md)
>
> Set up AI coding assistants

## Need Help?

* **Documentation**: Complete guides and tutorials
* **FAQ**: [Common questions](https://docs.megallm.io/home/faq.md)
* **Support**: [support@megallm.io](mailto:support@megallm.io)
* **Discord**: [Join our community](https://discord.gg/Megallm)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.