# 元任务 AI 网关 ## Docs - [Manage API Keys for Gateway Access](https://docs.metask.ai/account/api-keys.md): Create, rotate, and delete 元任务 AI 网关 API keys. Learn how to use keys in requests and follow security best practices to protect your account. - [Manage Balance, Credits, and Subscriptions](https://docs.metask.ai/account/billing.md): Top up your 元任务 AI 网关 account balance, apply promo codes, choose a subscription plan, and monitor real-time token usage and spending. - [Create Your 元任务 Gateway Account](https://docs.metask.ai/account/registration.md): Sign up for 元任务 AI 网关 with your email or LinuxDO account, enable two-factor authentication, and get ready to create your first API key. - [API Authentication with Bearer Tokens](https://docs.metask.ai/api-reference/authentication.md): Authenticate every request to 元任务 AI 网关 by passing your API key as a Bearer token in the Authorization header of each HTTP request. - [POST /v1/chat/completions](https://docs.metask.ai/api-reference/chat-completions.md): Send a list of messages to an AI model and receive a completion. Supports streaming responses and reports prompt, completion, and total token usage. - [GET /v1/models](https://docs.metask.ai/api-reference/models.md): List all AI models available through 元任务 AI 网关. Returns model IDs, providers, and creation timestamps. Use these IDs in chat completion requests. - [元任务 Gateway REST API Reference](https://docs.metask.ai/api-reference/overview.md): Complete REST API reference for 元任务 AI 网关. One OpenAI-compatible base URL, Bearer token auth, and two endpoints to send completions and list models. - [Authenticate with 元任务 AI 网关](https://docs.metask.ai/authentication.md): Learn how to create and use API keys to authenticate every request you make to the gateway, and how to keep your credentials secure. - [What is the AI Gateway?](https://docs.metask.ai/concepts/gateway.md): Learn how 元任务 AI 网关 acts as a unified proxy between your application and multiple AI providers through a single OpenAI-compatible endpoint. - [AI Models Available in the Gateway](https://docs.metask.ai/concepts/models.md): Explore which AI models you can access through 元任务 AI 网关, how to list them programmatically, and how to specify a model in your requests. - [Token Usage and Billing Explained](https://docs.metask.ai/concepts/tokens.md): Understand how tokens are counted, how 元任务 AI 网关 meters your usage, how to read usage data from API responses, and how to manage your balance. - [Use Claude Code with 元任务 AI Gateway](https://docs.metask.ai/integrations/claude-code.md): Point Claude Code CLI at 元任务 AI 网关 by setting two environment variables, then use any gateway-supported model instead of the default Anthropic endpoint. - [Configure Cursor to Use 元任务 Gateway](https://docs.metask.ai/integrations/cursor.md): Route Cursor IDE's AI features through 元任务 AI 网关 by adding a custom OpenAI-compatible endpoint, then pick any gateway model for autocomplete and chat. - [Use the OpenAI SDK with 元任务 Gateway](https://docs.metask.ai/integrations/openai-sdk.md): Call any gateway model from Python or Node.js using the official OpenAI SDK. Change one line — the base URL — and your existing code works immediately. - [Connect Any OpenAI-Compatible Client](https://docs.metask.ai/integrations/other-clients.md): Use curl, LangChain, LlamaIndex, VS Code extensions, and any other OpenAI-compatible tool with 元任务 AI 网关 by setting the base URL and API key. - [元任务 AI 网关: Unified AI API Gateway](https://docs.metask.ai/introduction.md): 元任务 AI 网关 gives you one OpenAI-compatible endpoint for multiple AI models. Manage keys, track token usage, and switch models without changing your code. - [Get started with 元任务 AI 网关](https://docs.metask.ai/quickstart.md): Register, create an API key, and make your first AI request through the gateway in minutes using any OpenAI-compatible client or library.