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.

  1. Create a key in the provider's console (table below). Most providers show it only once; copy it.
  2. 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.

ProviderConsole pageNotes
OpenAIplatform.openai.com/api-keyssk-; paid, add a payment method first
Anthropicplatform.claude.com/settings/keyssk-ant-; paid (some starter credits)
Google AI Studio (Gemini)aistudio.google.com/apikeyAIza; free tier
xAI (Grok)console.x.ai → API Keysxai-; paid
DeepSeekplatform.deepseek.com/api_keyssk-; paid
Mistralconsole.mistral.ai/api-keysFree tier

Fast inference

ProviderConsole pageNotes
Groqconsole.groq.com/keysgsk_; free tier
Cerebrascloud.cerebras.ai → API KeysFree tier
SambaNovacloud.sambanova.ai/apisFree credits
NVIDIA NIMbuild.nvidia.com → pick a model → Get API Keynvapi-; free tier
DeepInfradeepinfra.com/dash/api_keys
Togetherapi.together.ai/settings/api-keys
Fireworksapp.fireworks.ai/settings/users/api-keys
Basetenapp.baseten.co/settings/api_keys
GMICloudconsole.gmicloud.aiUnder organization settings
Novita AInovita.ai/settings/key-management
Coheredashboard.cohere.com/api-keysA free trial key is created automatically
Venicevenice.ai/settings/api
SiliconFlowcloud.siliconflow.com/account/ak
Ollama Cloudollama.com/settings/keysFree tier

Chinese labs

ProviderConsole pageNotes
Z.ai (GLM)z.ai/manage-apikey/apikey-listSwitch 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 KeysKeys are region-specific (International vs China)
StepFunplatform.stepfun.ai/interface-key
LongCat (Meituan)longcat.chat/platform → API Keyssk-

Aggregators and routers

ProviderConsole pageNotes
OpenRouteropenrouter.ai/keyssk-or-; free tier for select models. Hitting :free limits? See Unblock free-model rate limits
ZenMuxzenmux.ai/settings/keysFree tier
OrcaRouterorcarouter.ai → account settingssk-orca-
OpenCode Zenopencode.ai/authFree tier; the "Go" variant uses the same login
Nous Researchportal.nousresearch.com
Blackbox AIapp.blackbox.ai/dashboardbb_
PoolsidePoolside 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