Providers and API keys
Where to get an API key for every provider, how 9Router and OpenAI-compatible endpoints work, and how users add their own keys.
On this page4 sections
Getting a key
| Provider | Create a key at | Notes |
|---|---|---|
| OpenAI | platform.openai.com/api-keys | GPT models with tools and images |
| Anthropic | platform.claude.com/settings/keys | Claude models; thinking is shown under Show thought process |
| Google Gemini | aistudio.google.com/apikey | Has a free tier with a small daily request limit per model |
| OpenRouter | openrouter.ai/settings/keys | Hundreds of models with one key |
| xAI | console.x.ai | Grok models |
| Z.AI | z.ai/manage-apikey/apikey-list | GLM models |
| Moonshot AI | platform.moonshot.ai/console/api-keys | Kimi models |
| Groq | console.groq.com/keys | Very fast open models |
Choosing models
AI Helper reads files, logs and settings with tools, so pick models that support tool calling. Models that can see images also answer questions about screenshots. When a model can't read images, AI Helper notices it, leaves the images out and tells the user.
Fast, low-cost models are a good default for everyday questions. Offer a stronger model next to it for hard crashes, and let users switch in the model picker.
9Router and other OpenAI-compatible endpoints
9Router is a self-hosted router that combines your AI subscriptions and free models behind one OpenAI-compatible endpoint. Run it on a machine the Panel can reach, choose 9Router as the provider and set Base URL to its address, for example http://10.0.0.12:20128/v1. Paste its key if you set one.
Choose OpenAI compatible for any other service that speaks the OpenAI Chat Completions API, such as a gateway, a proxy or a local model server. Set its Base URL (ending in /v1 for most services) and click Load models from the provider. If the service has no model list, type the model IDs yourself.
Users' own keys
When Own API keys is on, users open Account → AI Helper and add a key for any allowed provider:
- Choose the provider and paste the key.
- Click Load models and pick a model.
- Keep Use this key by default on to use it for new messages, then click Check and save key.
The key is tested before it is saved, stored encrypted and only ever shown masked, like sk-...b81e. Replies with an own key skip the panel quota; the page shows the tokens used with each kind of key. Users can test, remove or stop using a key at any time.