LLM routing by task

LLM routing by task: each request to the model for its job

The AI Stupid Level Smart Router routes LLM requests by task in two ways. Name the task with a mode such as auto-coding, or send auto-task and each request is read on its own and ranked on the benchmark board for its kind of work. The suites behind the boards are the same coding, reasoning and tool-use tasks for every model, on a fixed schedule: coding every four hours, reasoning and tool use daily, with an hourly canary probe.

Get a free router key

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

6
rules read each request, tried in order.
4
boards a request can rank on: Coding, Reasoning, Tool use and Combined.
0
extra model calls. The rules run inside the request.

01

How does the Smart Router route a request by task?

Either your code names the task, or the router reads it from the request. Both ways, the request is ranked on the board for that kind of work, among the models your provider keys reach.

Name the task yourself
Send a mode as the model name: auto-coding for code, auto-reasoning for analysis and planning, auto-tooling for agents that call tools. A mode that names a board is used as sent, whatever the request contains.
Let the router read each request
Send auto-task and the router picks the board per request, from the six rules below. Match each request in Preferences turns the same matching on for Best overall and Best value, so for auto-best, auto-value, and auto when either is your saved strategy. It is off until you turn it on.

02

Which rules decide the task?

Six rules, tried in order. They read what the request already carries: its tools, its latest message and the length of the conversation.

The rules in the order the router tries them. The first that fits decides, and X-AISM-Request-Kind names it on the response.
RuleWhat it looks forRanked on
Tools that work on code tools_codeTools offered, at least two of them for files, code or a terminal (read, edit, grep, bash and the like).Coding
Tools toolsAny other request that offers tools.Tool use
Long session long_sessionA conversation already eight or more messages long when it first reaches the router.Reasoning
Design and planning planningArchitecture, system design, trade-offs, a migration plan, a roadmap, a step-by-step plan.Reasoning
Code codeA code block, code syntax, or two or more programming terms in the latest message.Coding
Anything else generalQuestions, writing, summaries and the rest of everyday work.Combined
Three things are read
The names of the tools the request offers (the first 64), its latest user message (of a long one, the first and the last 8,192 characters) and the number of messages in the conversation, system messages aside.
Tools decide before text
When a request offers tools, the tool names alone decide. At least two tools for files, code or a terminal, such as read_file, apply_diff, execute_command, bash or grep, rank it on Coding, and any other tool set on Tool use. The text is read when no tools are offered.
Code needs more than one hint
Text counts as code with a code block, code syntax such as an import or a stack trace, or two different programming terms. One stray word such as “method” does not.
No extra model call
The rules are fixed patterns that run inside the request, so matching adds no tokens and no round trip.

03

Which mode names which task?

Each of these modes names a task and ranks on the board that tests it.

auto-coding
Code generation, debugging and refactoring. The Coding board: repository bug fixes graded by running the project’s own tests, every four hours. Best LLM for coding.
auto-reasoning
Analysis, planning and long multi-step work. The Reasoning board: long, multi-turn working sessions, daily. Best LLM for reasoning.
auto-tooling
Agents and assistants that call tools. The Tool use board: sandboxed agent tasks with real tools, daily. Best AI model for agents.
auto-best
Work with no single board. The Combined score: coding 50%, reasoning 25%, tool use 25%.
auto-value-coding
With auto-value-reasoning and auto-value-tooling, the value version of each board: within 5 points of the top score, the most points per dollar of one run of that suite. LLM cost routing.

Your exclusions, maximum price and maximum response time are applied before a mode ranks anything. Every mode and its rule is on the Smart Router page.

04

Where does each task go right now?

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

auto-coding, auto-reasoning, auto-tooling and auto-best are the task modes. Each pick links to the model’s page, with its scores and history.
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:23 UTC · the router’s own picks for an example caller with keys for all 6 providers

05

How do I check which rule and board a request used?

Every answer says how it was routed. The request below asks for a migration plan, so it matches the planning rule and ranks on Reasoning. The headers shown are those of an account on default settings.

cURLauto-task
curl -i https://aistupidlevel.info/v1/chat/completions \
  -H "Authorization: Bearer aism_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto-task",
    "messages": [{"role": "user", "content": "Write a migration plan for moving our billing tables to a multi-tenant schema"}]
  }'

# Response headers
# X-AISM-Request-Kind: planning
# X-AISM-Benchmark: reasoning
# X-AISM-Strategy: best_reasoning
# X-AISM-Strategy-Source: request
# X-AISM-Model: <the model that answered>
X-AISM-Request-Kind
The rule that matched: tools_code, tools, long_session, planning, code or general.
X-AISM-Benchmark
The board it was ranked on: overall, coding, reasoning or tool_use.
X-AISM-Strategy
The strategy, such as best_reasoning. X-AISM-Strategy-Source says where it came from: request for the mode the request named, preferences for your saved strategy.
X-AISM-Reasoning
The decision in words: the rule, the board, the model’s score and why it won. X-AISM-Model and X-AISM-Provider name what answered.

POST /v1/route/preview takes the same body and returns the decision with nothing called or counted. The X-ASL-Sandbox: true header returns a mock answer through the real routing, before you add a provider key. Every header is in the router documentation.

06

What happens to the task inside a conversation?

A conversation keeps its board
The board is set at a conversation’s first request. A later request changes it when its own content calls for another: tools, code, design or planning.
A long conversation, once
The long-session rule, eight or more messages, applies when a conversation first reaches the router and not again.
And its model
By default a conversation also stays on the model that answered it. Model switching in Preferences can rank each new message again, and X-AISM-Conversation says what happened. Model switching in the docs.

Each tool’s guide says which mode fits it: Cline, Cursor, LangChain and n8n, with the rest on the integrations hub. Related guides:

07

Questions about routing by task

How do I route LLM requests by task?

Point an OpenAI-compatible client at https://aistupidlevel.info/v1 and send the task as the model name. With the AI Stupid Level Smart Router, auto-coding ranks the request on the Coding board, auto-reasoning on Reasoning and auto-tooling on Tool use, and auto-task reads each request and picks the board itself. 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 task-based LLM routing?

Task-based routing sends each request to a model chosen for its kind of work, instead of sending everything to one model name. The Smart Router recognises the task from six fixed rules over the request’s tools, its latest message and the length of the conversation, and ranks the request on a benchmark board for that task. What an AI router is covers the other signals routers choose by.

Does a coding agent need its own mode?

A coding agent’s requests offer tools for files, code and a terminal, so auto-task ranks them on Coding with no extra setting. Model routing for coding agents has the modes and the settings for each tool.

Which automatic LLM router is best?

The one whose routing signal you can check. Ask what decides the model for each request, whether the response says which rule and which model were used, whose keys pay for the tokens, and what happens when a provider fails. The Smart Router names the rule, the model and any fallback in its response headers, and sends every request with your own keys. Best AI routers in 2026 sets the main options side by side, each described from its vendor’s own pages.

Send each task to the model for it

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