LLM cost routing
The AI Stupid Level Smart Router routes on cost in three ways: value modes that choose among near-top models by what a benchmark run cost each one, a price cap and budgets you set, and a tie-break that takes the less expensive of models too close to call. Requests go out with your own provider keys, so the price per token is your provider’s list price.
1,000 routed requests a month free · your own provider keys · no card
auto-value to auto-cheapest.01
Send any of these as the model name. The value modes keep a quality bar and then rank on cost; auto-cheapest ranks on list price alone.
| Mode | Ranks on |
|---|---|
auto-value | Among the models within 5 points of the best Combined score, the most points per dollar of one coding run. |
auto-value-coding | The same rule on the Coding board: within 5 points of the best, then points per dollar of one coding run. |
auto-value-reasoning | Within 5 points of the best Reasoning score, then points per dollar of one reasoning session. |
auto-value-tooling | Within 5 points of the best Tool use score, then points per dollar of one tool-use session. |
auto-cheapest | The lowest list price per token, input and output averaged. No quality bar. |
auto-best, auto-coding, auto-reasoning, auto-tooling): A statistical tie goes to your tie-break, cheapest per task by default, among the models within one standard error of the leader. Cheaper compares what one benchmark run cost each tied model when all of them have that on record, and their list prices otherwise. The routing reason says which.auto-value is ranked on the value version of its own board: coding work by auto-value-coding’s rule, tool use by auto-value-tooling’s. LLM routing by task.02
A price list gives a price per token, and models spend different numbers of tokens on the same task. A model that writes four times as much costs four times as much per task at the same list price. So the value modes divide each model’s score by what one benchmark run of that suite cost it. The tasks are the same for every model, which makes the cost of a run a like-for-like figure. What a correct answer costs each model is public on best value AI model.
03
The live router’s own picks for an example caller who holds a key for every provider. They follow the boards.
| Mode | Ranks on | Sends the request to |
|---|---|---|
auto-best | The Combined board: coding 50%, reasoning 25%, tool use 25%. | Claude Opus 5.5 · Anthropic |
auto-coding | The Coding board: repository bug fixes graded by the project’s own tests. | Claude Opus 5.5 · Anthropic |
auto-reasoning | The Reasoning board: long, multi-turn working sessions. | GPT-6.1 Sol · OpenAI |
auto-tooling | The Tool use board: sandboxed agent tasks with real tools. | Claude Sonnet 5.5 · Anthropic |
auto-value | Within 5 points of the best Combined score, the most points per dollar of a scored run. | GLM-5.3 · Z.ai |
auto-fastest-quality | Within 5 points of the best Combined score, the lowest median response time, compared on at least 21 runs; response times within 10% of each other count as equal, and the higher score decides. When fewer than half of these models have 21 runs, they are ordered by score. | Claude Sonnet 5.5 · Anthropic |
auto-fastest | The lowest response time outright. | Gemini 3.5 Flash Lite · Google |
auto-cheapest | The lowest list price per token. | GPT-6 Luna · OpenAI |
As of 26 Nov 2026, 11:24 UTC · the router’s own picks for an example caller with keys for all 6 providers
04
Limits apply before a mode ranks anything, and budgets before a request is sent.
429 insufficient_quota before any provider is called. The request reserves its highest possible cost first and settles to the actual cost after the answer.X-AISM-Strategy-Source: budget-downgrade marks those answers. Budgets and caps.GET /v1/usage returns the month’s requests used and included, and the key’s budget and spend. The dashboard keeps the model, tokens and cost of each request, for 3 days on Free and 30 on Developer.05
usage.prompt_tokens_details.cached_tokens.X-AISM-Switch-Cost-Est gives the estimate when a move is made.06
The routing headers name the strategy, the model and the reason, and the body carries the usage your provider reported. The strategy in the comment is that of an account on default settings.
from openai import OpenAI
client = OpenAI(
base_url="https://aistupidlevel.info/v1",
api_key="aism_your_key_here",
)
raw = client.chat.completions.with_raw_response.create(
model="auto-value-coding",
messages=[{"role": "user", "content": "Write unit tests for parse_date()"}],
)
print(raw.headers["x-aism-strategy"]) # best_value_coding
print(raw.headers["x-aism-model"]) # the model that answered
print(raw.headers["x-aism-reasoning"]) # why it was chosen
usage = raw.parse().usage
print(usage.prompt_tokens, usage.completion_tokens)
print(usage.prompt_tokens_details.cached_tokens) # served from your provider's prompt cacheX-AISM-Strategybest_value, best_value_coding, best_value_reasoning, best_value_tooling or cheapest.X-AISM-ReasoningX-AISM-ModelX-AISM-Provider names the provider, which is the account that bills the tokens.POST /v1/route/preview returns the pick and its reason for any mode without sending the request. Every endpoint is in the router documentation, and what an AI router is covers the other signals routers choose by. The coding tools’ guides name auto-value-coding as the mode that spends less per run: Aider, Cline, Continue and OpenCode. Related guides:
07
A router lowers cost by choosing a less expensive model where one will do the job. The AI Stupid Level Smart Router decides that from its public boards: its value modes look at the models within 5 points of the top score you can use, then take the most points per dollar of one run of that suite. The suites behind the boards are the same tasks for every model, on a fixed schedule: coding every four hours, reasoning and tool use daily, with an hourly canary probe.
auto-cheapest sends each request to the model with the lowest list price per token among your providers, and has no quality bar. auto-value keeps one: it stays within 5 points of the top Combined score and takes the most points per dollar.
No. Requests go out with your own provider keys and each provider bills you at its own list price. 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. BYOK LLM router covers the keys, and plans and prices the rest.
Compare three prices, not one: the provider’s price per token, any markup or fee the router adds, and the cost of a finished task, which depends on the model the router picks. The Smart Router adds nothing per token and names the pick and its reason on every response. Best AI routers in 2026 sets the main options side by side, each described from its vendor’s own pages.
Free includes 1,000 routed requests a month on every provider and every mode, with your own provider keys and no card.
1,000 routed requests a month free · your own provider keys · no card
Coding, Reasoning, Tool use and Combined, over 24 hours, 7 days and 30 days.
Already have an account? Log in