Knowledges 10 min

Which model for which job?

Saving tokens isn't about chopping context to the bone. It's about using the right model for the right job: prompt caching, tuning reasoning effort, and routing each kind of task to Claude, GPT, Grok, Qwen or DeepSeek.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

Which model for which job?

"Saving tokens" is always a hot topic that a lot of you care about.

First of all, you have to understand that "saving tokens" always goes hand in hand with "output quality" - which is why I'm not really in the "save tokens at all costs" camp. That doesn't mean I don't save tokens, though. The right approach is: use the right model for the right job - and your tokens will naturally get spent efficiently.


Part 1: Prompt Caching

First up: if you're on a pay-as-you-go API key (not a fixed monthly subscription), you need to understand this thing called "Prompt Caching".

If every request resends the system prompt, documentation, codebase context, tool definitions... then paying full price for that pile of tokens every single time really stings :))

Anthropic currently charges cache reads at roughly 0.1x the normal input price, meaning you can cut up to 90% of the cost of reused context.

Prompt caching: relative input cost
Prompt caching: relative input cost
Labelrelative input cost
Normal input100
Cache read10
Mô phỏng chi phí prompt caching
Illustrative calculation for a repeated shared context: first write costs 1.25×, subsequent hits 0.1×, misses 1×. Excludes output, changing context, TTL expiry and other fees. Normalized input-cost units.
Chạy trong sandbox cô lập; mạng chỉ qua proxy được duyệt.

Part 2: Hallucination & Reasoning Effort

I've talked about this a lot: "hallucination is a feature, not a bug". And tuning Reasoning Effort for each model is honestly not much different from "tuning how much the model hallucinates" :))

The higher the reasoning, the longer it thinks, the more angles it weighs, and the more it overthinks & over-engineers. And the more tokens it burns!

So be clear on this: cranking up reasoning effort doesn't automatically make the model smarter. LLMs are like the human brain here - not everything needs that much thinking.

Example: you need to sweep the floor -> just a little reasoning: find the broom & figure out where to start -> you're not going to overthink which broom is best, what time of day sweeping is most effective, and then how to measure the amount of dust collected afterwards =))))) right?

The simplest way to remember it:

Reasoning effortUse it forWhy
LOW/MEDIUMAbout 90% of implementation tasks: scouting/analyzing the codebase, writing code, quick answers,...These need high accuracy, so dial the "creativity" (hallucination) down
HIGHThe remaining 10% of implementation tasks that are highly complex, usually features or bug fixes touching multiple modules at onceComplex tasks that touch many places at once
EXTRA/MAXBrainstorming/advisory tasksYou need to weigh many angles before narrowing the scope of work into a concrete plan

Now let's move on to another equally important part:


Part 3: Task-based Model Routing

To do this, we first need to understand how each kind of model behaves. Here's how the models I use most tend to behave.

1. Claude models

Claude models are highly creative, good at analysis and coming up with solutions, and have good aesthetic taste.

Locked section: 2. GPT models

Locked section: 3. Grok models

Locked section: 4. Qwen models

Locked section: 5. DeepSeek models

Locked section: 6. Kimi & GLM models

Locked section: Concrete use cases for each model

Locked section: Part 4: Don't obsess over "saving tokens"

Locked section: In short

Locked section: Technical sources

The rest is for Knowledges members

Plus 9 more sections (about 7 min) for members

You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.