Most production agent stacks I've seen run every agent on the same big model. Intake, a web search, a daily summary, a supplier negotiation, a final review — all of it goes to the most expensive reasoning model in the account. That's simple to set up. It's also a bit like hiring a senior engineer to sort the mail, then asking them to write the contract.
In Corin, each agent has its own model, temperature, memory, tools, and permissions. The budget belongs to the task: time, tokens, and cost, with a warning before any limit is hit. Not every task needs an expensive frontier model. The question is how you match the model to the job, and how you change that choice once you have data.
What is model routing for AI agents?
Model routing is matching the model to the job: send each job to a model that fits the work, instead of one expensive model for everything. I look at three things: how long a turn can take, what it costs at the frequency it actually runs, and what the task needs — reasoning, context length, reliability, and tool use.
How do you decide which LLM to use?
I think about the choice on three axes.
Speed. How long a turn takes, and how many tool loops the job needs. A classification step that runs all day can't sit behind a long reasoning pass.
Cost. Token price times tokens used, times how often the job runs. A model that looks fine per call gets expensive when it fires every hour.
Task needs. How much reasoning the work actually requires, how long the context is, how reliable the output has to be, and whether the model has to call tools well. A field extraction and a price negotiation are not the same job.
Here's a starting map I use when we design a team. The tiers are generic — small and fast, mid, and frontier reasoning — not a claim about any vendor's models. Temperature is a starting point, not a rule.

In config, that looks roughly like this. Two agents on cheaper, faster models, one on a frontier reasoning model, and a budget on the task so a runaway loop shows up before the bill does:
team: order-fulfillment
version: 14
agents:
intake:
model: provider/small-fast
temperature: 0
reasoning_effort: low
research:
model: provider/mid
temperature: 0.2
reasoning_effort: low # a web search doesn't need a long think
procurement:
model: provider/frontier-reasoning
temperature: 0.4
reasoning_effort: high # substitutes, terms, exceptions
task:
budget:
max_duration: 45d
max_tokens: 2_000_000
max_cost_usd: 40
warn_at: 0.8 # warn at 80% of any limitIllustrative; field names simplified, not Corin's schema.
You can mix providers in the same team. The model gateway supports 40+ LLM providers and 200+ models, and OpenRouter works out of the box. Bring your own API keys, or use Corin Model Access, which is usage-based, when an agent needs a model you don't have credentials for. There's no lock-in to one vendor. Local models are an option if you're a heavy open-source user running Corin yourself. They're not part of the app itself.
What does the spend look like before you change anything?
This is easier to talk about with real numbers. The screenshots below are from our own workspace, on a job we hadn't tuned yet.
Over seven days the workspace used 135.3 million tokens. Almost all of them went to gpt-6-astra. gpt-5.4-mini and gpt-6-sol are barely visible. That's what it looks like when one big model ends up doing nearly every job.

The cost isn't just the model name. Frequency multiplies it. In the same week, our Hourly summary · Gmail worker ran 175 times. It's a simple, repetitive job: fetch mail, write a summary. It used 81.9 million input tokens and 20.8 thousand output tokens, and it cost $502.76. Across the whole workspace, seven days came to $502.95, or $3.78 per successful run. About 39.4% of tokens, 53.3 million, were reused from cache, which helped. The bill was still almost entirely this one job. That's the kind of work to move to a small, fast model.

The same views also showed us a speed problem, not just a cost one. Web Search had a P95 latency of 6.1 minutes. Fetch Emails · Gmail sat at 1.4 minutes. There were 0 failures in 257 tool calls, so the tools themselves were fine. That 6.1-minute tail is wasted time. We were running web search on gpt-6-astra with high reasoning. I don't need a frontier reasoning model for that task. A cheaper, faster model would be better, and it would come back sooner.

You see this because telemetry is built in. Langfuse is part of the platform, so there's nothing extra to subscribe to or wire up. You get a per-task timeline, turn counts, per-agent logs, tokens per day and per model, tool latency, per-worker P50 and P95, and cost, in the same place you already work. Analytics at this level would otherwise run to hundreds or thousands of dollars a month on a separate subscription.
I don't have a before-and-after number for moving the Gmail job or the web search off a frontier model, because we haven't made that change yet. A small, fast model on a repetitive summary should cut both the bill and the wait. The way to know is to test it, not to guess.
Why does each model need its own context window?
Every model has its own context window, the working memory it reads on each turn. That's the system prompt, the conversation, tool results, and the definitions of every tool and skill the agent can use. Every model caches differently, too. Many newer hosted models hold around a million tokens. A lot of small and open-weight models top out at 128K.
That difference is where many multi-model systems we tested ran into trouble. Instead of giving each model its own window, they work within one shared, capped window. Your planning agent on a frontier model ends up with a fraction of what it can hold.
And the window isn't just for your data. Tools, skills, and the system prompt live there too. Anthropic's tool search docs put a typical five-server setup (GitHub, Slack, Sentry, Grafana, and Splunk) at about 55,000 tokens of definitions before the agent does any work. When the window is capped, something has to give. Tools or skills get cut, earlier turns get summarized or dropped, and the model loses track of what it already knew. That's when an agent calls the wrong tool, forgets a constraint from an hour ago, or fills a gap with a guess. (What goes into that window matters as much as its size. I wrote about that in Your business won't fit in a prompt.)
In Corin, each agent's window follows its model. The planning agent on a frontier model gets that model's window, and the intake agent on a small model gets its own. You can still choose a smaller window for a repetitive job, where a tight context is cheaper and keeps the agent focused. That's a choice you make per agent, not a ceiling on the whole team.
agents:
intake:
model: provider/small-fast
context_window: 32k # override: short, repetitive job
procurement:
model: provider/frontier-reasoning
# no override: uses this model's own windowIllustrative; field names simplified, not Corin's schema.
Caching is the other half. Providers keep the stable start of a prompt (instructions, tool definitions, earlier turns) and charge much less to reuse it, sometimes with a small fee to write it the first time. Published cached-input rates on OpenAI's and Anthropic's pricing pages run from about a tenth of the normal input price to a twentieth or less on some of the newest models. OpenRouter's published data for September 2026 put the median provider at 85% of agentic prompt tokens served from cache, with the leaders at around 96%. Our workspace above reused 39.4%, so there's room. But caching needs an unchanged prefix. If a system keeps trimming and reshuffling context to fit a shared window, the prefix keeps changing and the cache misses. A stable, right-sized window per model gets you better answers and a cheaper bill.
How do you change the model without guessing?
Once you can see the spend, changing a model is a small, reversible step.
- Pick a candidate. Here, that's the hourly Gmail summary, or the agent doing the web search. Change one thing in a new release.
- Run it in the built-in sandbox. Test in sandbox runs the new release against the earlier one and fills a scorecard. Every write goes to a stand-in, so nothing reaches your email, ERP, or other live systems.
- Compare per agent. Look at cost, latency, and quality on that one role, and check whether anything downstream moved.
- Roll out to new runs, or roll back in one click. New runs pick up the new release. Runs already in flight keep theirs: "New runs only — runs already started keep their release." Every version is tracked in Releases with its manifest hash and build, so if the change doesn't hold up, you go back to the previous settings in one click.
More on how that works is on the evals and lifecycle page.


Speed isn't just the model
A cheaper model helps a turn. It doesn't help if the agent itself is still waking up.
On shared compute, an agent sleeps between runs and wakes on a trigger or a webhook — a trigger and an event, not a schedule. In this workspace, wake time on shared compute sat around 6 to 25 seconds at P50, depending on the day. If a workflow needs to resume sooner than that, the next lever is dedicated compute, not a larger model.

Questions we hear
What is model routing for AI agents?
It is matching the model to the job. A short classification step and a multi-step negotiation are not the same work, and they should not automatically share the same expensive model. People also ask this as "What is AI model routing?" or "What is routing in AI agents?"; the idea is the same, and LLM routing is another name for it.
How do you decide which LLM to use?
Look at three things: how long a turn can take, what it costs at the frequency it actually runs, and what the task needs — reasoning, context length, reliability, and tool use. Then change that choice once you have data, not before.
Which LLM is best for AI agents?
There isn't one best model for every job. A small, fast model is enough for intake or a repetitive summary; a reasoning model is for planning, negotiation, and final review. "Best" depends on the task, the frequency, and the bill.
How do you change the model without guessing?
Change one agent in a new release, run it in a sandbox where writes hit a stand-in, compare cost, latency, and quality, then roll out to new runs or go back in one click.
Different jobs, different models
The point is straightforward. Give the expensive reasoning model the work that needs it: planning, negotiation, review, the hard exceptions. Give the repetitive, high-frequency jobs a small, fast model. Let each model use its own context window. Watch tokens, cache reuse, latency, and cost per agent. Change one thing, test it in the sandbox, and keep the previous settings one click away.
If you'd rather look at the platform, Corin will be on GitHub soon. Until then, you can join the waitlist.
Yuval Yatskan, co-founder and CEO, Corin


