# XMAI ## Docs - [Agent Platforms](https://doc.xbhuiz.com/en/agent-platforms.md): Wire XMAI into model-agnostic agent platforms with custom providers. - [Anthropic-native API](https://doc.xbhuiz.com/en/api/anthropic-native.md): Use XMAI with Anthropic Messages, Claude Code, and Anthropic SDKs. - [Authentication](https://doc.xbhuiz.com/en/api/authentication.md): Authenticate XMAI API requests with one prepaid API key across OpenAI, Anthropic, and Gemini protocols. - [Balance and Usage](https://doc.xbhuiz.com/en/api/balance-usage.md): Check XMAI balance, key caps, and token usage in the dashboard. - [Errors and Rate Limits](https://doc.xbhuiz.com/en/api/errors.md): Common XMAI API error responses, quota errors, and rate-limit troubleshooting. - [Gemini-native API](https://doc.xbhuiz.com/en/api/gemini-native.md): Use XMAI with Gemini Generate Content and Google Gen AI SDKs. - [API Reference](https://doc.xbhuiz.com/en/api/index.md): XMAI API reference for OpenAI-compatible, Anthropic-native, and Gemini-native protocols. - [OpenAI-compatible API](https://doc.xbhuiz.com/en/api/openai-compatible.md): Use XMAI with OpenAI-compatible Chat Completions, Responses, and model list endpoints. - [API Overview](https://doc.xbhuiz.com/en/api/overview.md): Base URLs, authentication, supported protocols, and common response behavior for XMAI. - [Coding Agents](https://doc.xbhuiz.com/en/coding.md): Point Claude Code, Cursor, Cline, aider, and Codex at XMAI - [aider](https://doc.xbhuiz.com/en/guides/aider.md): Configure aider with XMAI through the OpenAI-compatible base URL. - [Claude Code API Key](https://doc.xbhuiz.com/en/guides/claude-code-api-key.md): Configure Claude Code with an XMAI API key and the Anthropic-compatible base URL. - [Cline](https://doc.xbhuiz.com/en/guides/cline.md): Configure Cline with XMAI as an OpenAI-compatible provider. - [Codex CLI](https://doc.xbhuiz.com/en/guides/codex-cli.md): Configure Codex CLI with XMAI as an OpenAI-compatible provider. - [Cursor API Key](https://doc.xbhuiz.com/en/guides/cursor-api-key.md): Configure Cursor with one XMAI API key and the OpenAI-compatible base URL. - [OpenAI SDK](https://doc.xbhuiz.com/en/guides/openai-sdk.md): Use the official OpenAI SDK with XMAI's OpenAI-compatible endpoint. - [XMAI — Claude, GPT, Gemini, and Grok for coding agents](https://doc.xbhuiz.com/en/introduction.md): A coding-first LLM gateway. One API key drops into Claude Code, Cursor, Codex, Cline, and aider — pay per token, no monthly fee. - [Supported Models](https://doc.xbhuiz.com/en/models.md): The current Claude, GPT, Gemini, and Grok model catalog available through XMAI - [Quick Start](https://doc.xbhuiz.com/en/quick-start.md): Make your first XMAI request in under 5 minutes