LLM cost routing

LLM cost routing: near-top models, the most points per dollar

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.

Get a free router key

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

5
points: how close to the top score a model must be for a value mode to consider it.
5
modes rank on cost, from auto-value to auto-cheapest.
0%
markup on tokens. Providers bill you directly, at their own list price.

01

Which modes route on cost?

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.

The modes that rank on cost. X-AISM-Strategy names the one a request was ranked on.
ModeRanks on
auto-valueAmong the models within 5 points of the best Combined score, the most points per dollar of one coding run.
auto-value-codingThe same rule on the Coding board: within 5 points of the best, then points per dollar of one coding run.
auto-value-reasoningWithin 5 points of the best Reasoning score, then points per dollar of one reasoning session.
auto-value-toolingWithin 5 points of the best Tool use score, then points per dollar of one tool-use session.
auto-cheapestThe lowest list price per token, input and output averaged. No quality bar.
How a value mode decides
It looks at the models within 5 points of the top score among the ones you can use, after your keys, exclusions and limits. Among those, the most benchmark points per dollar wins. The dollar figure is what one run of that suite cost the model on its most recent priced runs.
Ties go to the less expensive model
On the quality modes (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.
Per request, when you want it
With Match each request on, a request sent as 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

Why cost per result, and not price per token?

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

What do the cost modes pick right now?

The live router’s own picks for an example caller who holds a key for every provider. They follow the boards.

auto-value and auto-cheapest are the cost rows. The quality modes show the default Cheaper tie-break at work.
ModeRanks onSends the request to
auto-bestThe Combined board: coding 50%, reasoning 25%, tool use 25%.Claude Opus 5.5 · Anthropic
auto-codingThe Coding board: repository bug fixes graded by the project’s own tests.Claude Opus 5.5 · Anthropic
auto-reasoningThe Reasoning board: long, multi-turn working sessions.GPT-6.1 Sol · OpenAI
auto-toolingThe Tool use board: sandboxed agent tasks with real tools.Claude Sonnet 5.5 · Anthropic
auto-valueWithin 5 points of the best Combined score, the most points per dollar of a scored run.GLM-5.3 · Z.ai
auto-fastest-qualityWithin 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-fastestThe lowest response time outright.Gemini 3.5 Flash Lite · Google
auto-cheapestThe 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

Which limits can I set on cost?

Limits apply before a mode ranks anything, and budgets before a request is sent.

Maximum price
A cap in dollars per 1M tokens, on the average of a model’s input and output list price. Models above it are left out before anything is ranked.
A budget per key
From Developer up, a router key can carry a monthly budget. With a hard limit, a request that could take the key past it is refused with 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.
A budget per project
A workspace project has a monthly budget with three behaviours past it: alert only, stop at the budget, or switch to the cheapest models. X-AISM-Strategy-Source: budget-downgrade marks those answers. Budgets and caps.
What was spent
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

What does routing cost inside a conversation?

One model per conversation
By default a conversation stays on the model that answered it. Your provider keeps the conversation in its prompt cache and can serve the part it has already seen at its cache price.
Caching is requested where it has to be
Most providers cache automatically. Claude caches when asked, so the router asks for every conversation that continues. Cached tokens come back in usage.prompt_tokens_details.cached_tokens.
A move has a price
With Model switching set to rank each new message again, a conversation moves when another model is clearly ahead and re-sending it stays within your limit, $0.50 by default. X-AISM-Switch-Cost-Est gives the estimate when a move is made.

06

How do I check what a request was ranked on?

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.

Python · OpenAI SDKauto-value-coding
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 cache
X-AISM-Strategy
The strategy the request was ranked on: best_value, best_value_coding, best_value_reasoning, best_value_tooling or cheapest.
X-AISM-Reasoning
For a value pick with a run cost on record: its score, what one benchmark run cost it and its points per dollar. For a tie settled by Cheaper: the tied models and the figure that decided.
X-AISM-Model
The model that answered. X-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

Questions about cost routing

How does LLM cost optimization routing work?

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.

What is the cheapest way to route prompts?

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.

Does the router add a cost per token?

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.

Which prompt router is best on price?

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.

Route on what a result costs

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