# MegaLLM ## Home ### Overview - [MegaLLM Documentation](https://docs.megallm.io/en/home/introduction.md): Welcome to MegaLLM - the universal AI platform that connects 70+ large language models through a single, powerful API. - [Models Catalog](https://docs.megallm.io/en/home/models.md): Access cutting-edge AI models from leading providers through a single, unified API. All models are accessible using their model ID in your API calls. - [FAQ](https://docs.megallm.io/en/home/faq.md): Find answers to common questions about MegaLLM - the universal AI platform connecting 70+ models. ### Getting Started - [Getting Started](https://docs.megallm.io/en/home/getting-started/overview.md): Get up and running with MegaLLM in just a few minutes. Access 70+ AI models through one unified API. - [Quick Start](https://docs.megallm.io/en/home/getting-started/quick-start.md): Get started with MegaLLM in just 2 minutes. This guide will help you make your first API call. - [Setup Guide](https://docs.megallm.io/en/home/getting-started/setup.md): Complete guide to setting up MegaLLM for your development environment. - [First Request](https://docs.megallm.io/en/home/getting-started/first-request.md): Let's build a simple AI application step-by-step. You'll learn how to make requests, handle responses, and work with different models. - [Next Steps](https://docs.megallm.io/en/home/getting-started/next-steps.md): You've made your first AI request! Here's what to explore next. ## Dev docs ### Getting Started - [Quick Start](https://docs.megallm.io/en/dev-docs/getting-started/quick-start.md): Get up and running with MegaLLM API in just a few minutes. This guide will walk you through the initial setup and your first API call. - [Authentication](https://docs.megallm.io/en/dev-docs/getting-started/authentication.md): MegaLLM uses API keys for authentication. This guide covers all authentication methods and best practices. ### OpenAI API - [OpenAI API](https://docs.megallm.io/en/dev-docs/openai/overview.md): MegaLLM provides full compatibility with OpenAI's API format, allowing you to use existing OpenAI SDKs and tools seamlessly. - [Chat Completions](https://docs.megallm.io/en/dev-docs/openai/chat-completions.md): The Chat Completions API enables you to build conversational experiences using GPT models. Send a list of messages and receive an AI-generated response. - [Streaming](https://docs.megallm.io/en/dev-docs/openai/streaming.md): Stream chat completions in real-time for a more interactive user experience. Perfect for chatbots, live assistants, and responsive applications. - [Function Calling](https://docs.megallm.io/en/dev-docs/openai/function-calling.md): Enable your AI assistant to interact with external tools, APIs, and functions. Perfect for building agents that can perform actions, retrieve real-time data, and integrate with your existing systems. ### Anthropic API - [Anthropic API](https://docs.megallm.io/en/dev-docs/anthropic/overview.md): MegaLLM provides full compatibility with Anthropic's Claude API format, enabling you to use Claude models through our infrastructure. - [Messages](https://docs.megallm.io/en/dev-docs/anthropic/messages.md): The Messages API is the core interface for interacting with Claude models. Send messages and receive AI-generated responses with support for conversations, tool use, and vision. ## CLI/Module ### Getting Started - [CLI Overview](https://docs.megallm.io/en/cli/overview.md): The MegaLLM CLI is an interactive setup tool that configures AI coding assistants to use the MegaLLM AI service. It automates configuration, manages API keys securely, and provides seamless setup across multiple platforms. - [Installation](https://docs.megallm.io/en/cli/installation.md): Learn how to install and run the MegaLLM CLI on your system. ### Configuration - [Configuration Overview](https://docs.megallm.io/en/cli/configuration.md): The MegaLLM CLI configures AI coding assistants by creating configuration files and setting environment variables. Each tool has its own configuration format and storage location. - [Claude Code Configuration](https://docs.megallm.io/en/cli/claude-config.md): Configure Claude Code to use MegaLLM - [Codex/Windsurf Configuration](https://docs.megallm.io/en/cli/codex-config.md): Configure Codex and Windsurf to use MegaLLM - [OpenCode Configuration](https://docs.megallm.io/en/cli/opencode-config.md): Configure OpenCode to use MegaLLM ### Guides - [Usage Examples](https://docs.megallm.io/en/cli/examples.md): Practical examples showing how to use the MegaLLM CLI in different scenarios. - [Troubleshooting](https://docs.megallm.io/en/cli/troubleshooting.md): Solutions to common issues when using the MegaLLM CLI. - [FAQ](https://docs.megallm.io/en/cli/faq.md): Common questions and answers about the MegaLLM NPM package and CLI tool. ## Agents ### Overview - [AI Coding Agents Overview](https://docs.megallm.io/en/agents/overview.md): Configure AI coding agents to use MegaLLM - CLI tools and GUI extensions ### Configuration - [Claude Code Configuration](https://docs.megallm.io/en/agents/claude.md): Configure Claude Code to use MegaLLM - [Codex/Windsurf Configuration](https://docs.megallm.io/en/agents/codex.md): Configure Codex and Windsurf to use MegaLLM - [OpenCode Configuration](https://docs.megallm.io/en/agents/opencode.md): Configure OpenCode to use MegaLLM - [Kilocode Configuration](https://docs.megallm.io/en/agents/kilocode.md): Configure Kilocode VSCode extension to use MegaLLM - [RooCode Configuration](https://docs.megallm.io/en/agents/roocode.md): Configure RooCode standalone application to use MegaLLM - [Cline Configuration](https://docs.megallm.io/en/agents/cline.md): Configure Cline VSCode extension to use MegaLLM ## API reference ### Overview - [API Reference](https://docs.megallm.io/en/api-reference/introduction.md): Welcome to the MegaLLM API reference documentation. MegaLLM provides unified access to 70+ AI models through OpenAI-compatible and Anthropic-compatible REST APIs. ### Chat & Messages - [Create chat completion](https://docs.megallm.io/api-reference/chat/create-chat-completion.md): Generate conversational AI responses using the OpenAI-compatible chat completions API - [Create message](https://docs.megallm.io/api-reference/messages/create-message.md): Create conversational messages using the Anthropic-compatible Messages API ### Models - [List models](https://docs.megallm.io/api-reference/models/list-models.md): List all available AI models with their capabilities and pricing ### Guides - [Streaming](https://docs.megallm.io/en/api-reference/endpoint/streaming.md): Stream AI responses in real-time using Server-Sent Events (SSE) for improved user experience in interactive applications. - [Function Calling](https://docs.megallm.io/en/api-reference/endpoint/function-calling.md): Enable AI models to interact with external tools, APIs, and functions for building intelligent agents and automation workflows. ## Resources ### Community - [Resources](https://docs.megallm.io/en/resources/overview.md): Find additional resources, guides, tutorials, and community content for MegaLLM. ## Release Notes ### Updates - [Release Notes](https://docs.megallm.io/en/releases/overview.md): Stay up to date with the latest features, improvements, and changes to the MegaLLM platform. ## OpenAPI Specs - [openapi](/cn/api-reference/openapi.json) - [openapi](/en/api-reference/openapi.json) - [openapi](/ru/api-reference/openapi.json) ## Optional - [Dashboard](https://megallm.io/dashboard/overview) - [Discord](https://discord.gg/Megallm) - [GitHub](https://github.com/megallm) > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [Russian (40 pages)](https://docs.megallm.io/_llms/ru.md): Documentation for Russian. - [Chinese (40 pages)](https://docs.megallm.io/_llms/cn.md): Documentation for Chinese. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.