元任务 AI 网关 exposes a single OpenAI-compatible endpoint that routes your requests to any supported model. You only need an account and an API key — no per-provider setup, no separate credentials. This guide walks you through everything from registration to your first successful API call.Documentation Index
Fetch the complete documentation index at: https://docs.metask.ai/llms.txt
Use this file to discover all available pages before exploring further.
Create an account
Go to napi.origintask.cn and register for a free account. You can sign up with an email address. If you have a promo code, you can enter it during or after registration to add credit to your balance.
Generate an API key
Once you are logged in, navigate to Settings → API Keys in your dashboard. Click Create API key, give it a name so you can identify it later, and copy the key immediately — it is only shown once.
Make your first API call
Send a request to the chat completions endpoint. Replace A successful response looks like this:
YOUR_API_KEY with the key you just copied.The Python and Node.js examples use the official OpenAI SDK pointed at the gateway’s base URL. Any library or tool that lets you set a custom
base_url works the same way — no gateway-specific SDK required.Next steps
Available models
Browse all AI models you can access through the gateway and learn how to reference them in your requests.
OpenAI SDK integration
Configure the official OpenAI Python and Node.js SDKs to route all requests through the gateway.