BYOK LLM router

BYOK LLM router: your provider keys, no markup on tokens

A BYOK (bring your own key) LLM router sends each request with your own provider key, so the provider bills you directly. The AI Stupid Level Smart Router works this way on every plan: your keys for OpenAI (GPT), Anthropic (Claude), Google (Gemini), DeepSeek, Moonshot AI (Kimi) and Z.ai (GLM), stored with AES-256-GCM, one router key in your code, and no markup on tokens.

Get a free router key

1,000 routed requests a month free · your own provider keys · no card

0%
markup on tokens. Providers bill you directly, at their own list price.
6
providers you can connect a key for, and your own OpenAI-compatible servers.
1
router key in your code. The provider keys stay in the router, encrypted.

01

What is a BYOK LLM router?

Bring your own key means the router does not resell inference. You hold the accounts with the model providers. The router holds a key for each, sends every request with yours and returns the answer.

Your accounts
Each provider bills you directly at its own list price, under your own agreement, rate limits and data terms with it.
One key in your code
An aism_ router key reaches every provider you connected, on one OpenAI-compatible endpoint. Your provider keys stay out of your application’s config.
Nothing resold
The router never answers a prompt itself and never buys tokens for you, so there is no inference balance to pre-pay.

02

How does the Smart Router handle your keys?

Checked before it is saved
When you add a key, the router asks the provider whether it accepts it, with a request that costs nothing: a model list or a balance read. A key the provider refuses is not saved.
Encrypted at rest
Provider keys are stored with AES-256-GCM and are not shown again after you save them.
Replaceable at any time
There is one key per provider. A replacement is checked first, and if the provider refuses it your current key stays in place. Remove a key and that provider’s models leave your routing. Check key asks the provider again whenever you want.
The router key
Shown once, when you create it. The router keeps a SHA-256 hash of it and its first characters, to tell your keys apart, and you can revoke it. A tool that insists on an sk- prefix can send sk-aism_….
Your prompts
Prompt logging is off unless you turn it on. Logged prompts are scrubbed of secrets before they are encrypted.

03

Who bills what?

Two bills, and they do not overlap: your providers bill tokens, and your plan covers routing.

Tokens: your provider
Every token is billed by the provider that answered, on your account, at its list price. The router adds nothing per token and takes no share of your spend.
Routing: your plan
Plans count routed requests. Free includes 1,000 routed requests a month on every provider and every mode, with your own provider keys and no card. Pro Intelligence $12/mo for 10,000 routed requests a month; Developer $25/mo for 100,000.
What counts as a request
A request counts when it succeeds. One that fails on every model is not counted, a request a model refuses is not counted, and neither are sandbox requests or token counting on the Anthropic endpoint.

04

What does routing do with the keys you bring?

Ranks what your keys reach
Each of the 14 auto-* modes ranks the models of the providers you hold a key for. A caller with keys for two providers is ranked among those two providers’ models, and a third key widens the field.
Fails over between your providers
Up to 5 fallbacks on every routed request, and the automatic ones prefer a provider that is not in the chain yet. LLM fallback routing.
Treats your limits as yours
A 429 from your provider account rests that key on that model for 15 seconds, up to 120 seconds when it repeats, while other models take the request.
Says which provider answered
X-AISM-Provider and X-AISM-Model on every response name the provider whose account will show the usage. When a key is missing or refused, the error code says which case it is: no_provider_key, provider_key_rejected or provider_quota_exceeded.

05

Can I bring my own servers as well?

Yes. From Pro Intelligence up, any OpenAI-compatible server you run or rent (vLLM, SGLang, llama.cpp, Ollama, LM Studio, TGI or a hosting company) can be added on the Providers page and named ep/<prefix>/<model>. Its API key, when it has one, is stored with AES-256-GCM as well. Your own endpoints in the docs.

In a workspace project, a request uses the project’s own key for that provider, then the workspace’s shared key, then, if the project allows it, the requester’s own. Project keys and routing rules.

06

Start with your own keys

1. Add your provider keys
Create a free account and add a key for each provider you use.
2. Create a router key
One aism_ key reaches every provider you connected and every mode. It goes wherever your code expects an OpenAI key.
3. Change the base URL
Point the client at https://aistupidlevel.info/v1 and send a mode such as auto-best, or a model id, as the model.
cURLyour keys · auto-best
curl -i https://aistupidlevel.info/v1/chat/completions \
  -H "Authorization: Bearer aism_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"model": "auto-best", "messages": [{"role": "user", "content": "Summarise this contract in five points"}]}'

# Response headers
# X-AISM-Provider: <the provider whose key was used, and who bills the tokens>
# X-AISM-Model: <the model that answered>

curl https://aistupidlevel.info/v1/usage -H "Authorization: Bearer aism_your_key_here"

X-AISM-Provider names the provider whose key was used. GET /v1/usage then returns what the router itself counts: the month’s requests used and included. To try it before adding a provider key, send X-ASL-Sandbox: true: the routing is real, the answer is a mock, and nothing is called or counted.

Every endpoint is in the router documentation, and what an AI router is covers the terms. Settings for each tool are in its guide: Claude Code, which runs on your own Anthropic key, Cursor, LangChain and n8n, with the rest on the integrations hub. Related guides:

07

Questions about bringing your own keys

What is a BYOK LLM router?

BYOK stands for bring your own key. A BYOK LLM router sits between your code and the model providers and sends each request with your own provider key, so each provider bills you directly and nothing is resold. The AI Stupid Level Smart Router works this way on every plan: you add your provider keys, your code holds one router key, and the model for each request is chosen from the public boards.

Does the router mark up tokens or charge a fee on my own keys?

No. Requests go out with your own keys and each provider bills you at its own list price. The router adds nothing per token and takes no percentage of your spend, at any volume. Plans count routed requests instead. Free includes 1,000 routed requests a month on every provider and every mode, with your own provider keys and no card. Pro Intelligence $12/mo for 10,000 routed requests a month; Developer $25/mo for 100,000. Plans and prices.

Which providers can I bring a key for?

OpenAI (GPT), Anthropic (Claude), Google (Gemini), DeepSeek, Moonshot AI (Kimi) and Z.ai (GLM). One key is enough to start, and the modes then rank that provider’s models. Each key you add widens the field and gives fallbacks another provider to go to.

How is this different from a router that sells credits?

A credit-based router calls the providers on its own accounts and deducts usage from a balance you bought from it. A BYOK router sends each request with your key, so the provider’s bill is the whole token bill and your own rate limits and data terms apply. AI aggregator explains the two billing models, and Best AI routers in 2026 compares the options.

Your keys, your bill, one endpoint

Free includes 1,000 routed requests a month on every provider and every mode, with your own provider keys and no card.

Get a free router key

1,000 routed requests a month free · your own provider keys · no card

See the boards it routes on

Coding, Reasoning, Tool use and Combined, over 24 hours, 7 days and 30 days.

Already have an account? Log in