Get a provider API key
Where to create an API key at every BYOK-supported provider, the key format, and how to add it to AnyRouter.
With BYOK requests run on your own provider accounts at the provider's prices, with $0 AnyRouter markup. Keys are encrypted at rest and never shown back.
- Create a key in the provider's console (table below). Most providers show it only once; copy it.
- Open anyrouter.dev/dashboard/byok, find the provider under Available, click Add key, paste, and Save.
AnyRouter checks the key live before storing it. A wrong key or an account with no credit fails immediately and nothing is saved.
Frontier and popular
| Provider | Console page | Notes |
|---|---|---|
| OpenAI | platform.openai.com/api-keys | sk-; paid, add a payment method first |
| Anthropic | platform.claude.com/settings/keys | sk-ant-; paid (some starter credits) |
| Google AI Studio (Gemini) | aistudio.google.com/apikey | AIza; free tier |
| xAI (Grok) | console.x.ai → API Keys | xai-; paid |
| DeepSeek | platform.deepseek.com/api_keys | sk-; paid |
| Mistral | console.mistral.ai/api-keys | Free tier |
Fast inference
| Provider | Console page | Notes |
|---|---|---|
| Groq | console.groq.com/keys | gsk_; free tier |
| Cerebras | cloud.cerebras.ai → API Keys | Free tier |
| SambaNova | cloud.sambanova.ai/apis | Free credits |
| NVIDIA NIM | build.nvidia.com → pick a model → Get API Key | nvapi-; free tier |
| DeepInfra | deepinfra.com/dash/api_keys | |
| Together | api.together.ai/settings/api-keys | |
| Fireworks | app.fireworks.ai/settings/users/api-keys | |
| Baseten | app.baseten.co/settings/api_keys | |
| GMICloud | console.gmicloud.ai | Under organization settings |
| Novita AI | novita.ai/settings/key-management | |
| Cohere | dashboard.cohere.com/api-keys | A free trial key is created automatically |
| Venice | venice.ai/settings/api | |
| SiliconFlow | cloud.siliconflow.com/account/ak | |
| Ollama Cloud | ollama.com/settings/keys | Free tier |
Chinese labs
| Provider | Console page | Notes |
|---|---|---|
| Z.ai (GLM) | z.ai/manage-apikey/apikey-list | Switch to Coding Plan on the same page if you have a GLM Coding subscription |
| Moonshot AI (Kimi) | platform.moonshot.ai/console/api-keys | |
| Qwen (Alibaba Model Studio) | modelstudio.console.alibabacloud.com → API Keys | Keys are region-specific (International vs China) |
| StepFun | platform.stepfun.ai/interface-key | |
| LongCat (Meituan) | longcat.chat/platform → API Keys | sk- |
Aggregators and routers
| Provider | Console page | Notes |
|---|---|---|
| OpenRouter | openrouter.ai/keys | sk-or-; free tier for select models. Hitting :free limits? See Unblock free-model rate limits |
| ZenMux | zenmux.ai/settings/keys | Free tier |
| OrcaRouter | orcarouter.ai → account settings | sk-orca- |
| OpenCode Zen | opencode.ai/auth | Free tier; the "Go" variant uses the same login |
| Nous Research | portal.nousresearch.com | |
| Blackbox AI | app.blackbox.ai/dashboard | bb_ |
| Poolside | Poolside console, once your account has access |
Google Vertex AI
Vertex uses a Google Cloud service account, not a plain key. In the Google Cloud console create a service account with Vertex AI access, download its JSON key, and paste the full JSON (with an optional region) into the AnyRouter key field.
AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer