Giving the model room to think
Ask for only the final number and a four-step sum can come back wrong with no way to see why. Watch the same prompt with reasoning first, then see what changes when the model has built-in thinking.
10 minFree
- Build the prompt
- Reason
- Answer
- Use the answer
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
You work at the fee counter of Sunrise Public School.
Fee rules:
- Tuition fee: Rs 12,000 per term.
- Bus fee: Rs 1,500 per term.
- Sibling discount: 10% off the tuition fee only.
- Late fine: Rs 500 if the fee is paid after the 10th.
Question: Meena has a brother in the same school, and she uses the bus.
Her parents pay on the 14th. What is the total to pay for Meena this term?
Reply with only the final amount. No explanation.What came back
Nothing yet. Press Play.
Background: the idea in plain words
Some questions have one step: "What is the capital of Tamil Nadu?" Others have several steps that depend on each other: apply this discount, but only to that fee, then add a fine if the date is late. People solve the second kind on paper, one line at a time. A model benefits from the same thing.
To see why, remember how a model writes. It produces its reply one token at a time (a token is a small piece of text), and it chooses each token by looking at everything that came before, including what it has just written itself. So the text a model has already written is its only rough paper.
Now think about a prompt (the text you send to the model) that ends with "Reply with only the final amount". The very first thing the model writes must be the answer. No working is on the page yet. The model has to jump over all the steps at once, and a slip in any one of them is invisible.
The classic fix is to ask the model to reason first and answer last: work through the problem step by step, then give the final answer in a marked place, such as inside <answer> tags. This is often called chain of thought. The working costs extra tokens and extra time, but each step now has the earlier steps to stand on.
Many current models go one step further. They have built-in thinking: the model reasons privately before it writes the reply, and you control how much with an API setting. For these models the vendors' advice changes. You no longer script the thinking. You describe the goal clearly and let the model work out the method.
The running example is the fee counter at Sunrise Public School. Meena's fee has four rules: a tuition fee, a bus fee, a sibling discount on tuition only, and a late fine. The correct total is Rs 12,800.
Press Play to watch the "only the amount" prompt go wrong. Then switch Try it to After: reason first, answer in tags, and finally to A thinking model: drop the script.
What to notice
- "Only the answer" removes the rough paper. With no built-in thinking, a model that must start its reply with the final number has nothing written down to build on. The reply looks tidy and hides any slip.
- Order matters: reasoning first, answer last. The working helps only if it is written before the answer. Ask for the answer first and the explanation after, and the explanation can no longer improve the answer.
- Separate the answer from the working. Ask for the final answer inside tags such as
<answer>, so your code can take the answer and keep the reasoning for the log. Anthropic's guide recommends exactly this for manual step-by-step prompting. - With a thinking model, give the goal and drop the script. OpenAI says that asking its reasoning models to think step by step is unnecessary. Google says it is generally not necessary to have a thinking model outline its reasoning. Anthropic says general instructions often beat a hand-written plan.
- Thinking always has a price. Visible working is output tokens. Hidden thinking is billed as output tokens too, and both add latency (waiting time). Use reasoning for tasks that have real steps, and skip it for simple ones.
Go deeperWhich advice applies to your model
Before you write the prompt, find out one thing: does your model think by itself for this request?
| Your situation | What to do in the prompt |
|---|---|
| No built-in thinking, or thinking is turned off | For multi-step tasks, ask the model to work through the problem before it answers, and to put the final answer in tags. |
| Built-in thinking is on | State the goal, the rules and the output you want. Leave out "think step by step" and long hand-written plans. If you want more care, a short general line such as "think carefully before you answer" is enough. |
| Not sure | Check the model's documentation. The same prompt can be right for one model and wasteful for another. |
The vendors describe the second case in their own words:
- OpenAI says, for its reasoning models: keep prompts simple and direct, and avoid chain-of-thought prompts, because these models reason internally. It also notes that its non-reasoning models are faster and tend to cost less, so they remain the better fit when speed and cost matter most.
- Google says its thinking models generate internal thinking automatically, so it is generally not necessary to have the model outline, plan or detail reasoning steps in the response. For problems that need heavy reasoning, a simple request such as "Think very hard before answering" can help, at the cost of extra thinking tokens.
- Anthropic says to prefer general instructions over prescriptive steps, because the model's own reasoning often goes beyond what a person would prescribe. When thinking is off, it suggests manual step-by-step prompting with the final answer in
<answer>tags as the fallback. It also notes that some of its models may decline a prompt that asks them to write out their reasoning, and on those you should rely on built-in thinking.
A cheap extra check Anthropic's guide suggests ending a prompt with a line such as "Before you finish, verify your answer against the rules above." It says this catches errors reliably, especially for code and maths. It also warns that on some newer models such a line is no longer needed and only adds tokens and latency. As always: test it on your model.
Go deeperThe cost, and the setting that controls it
Reasoning buys accuracy with tokens and time. That is true in both styles.
- Visible reasoning is part of the reply. You pay output-token prices for every line of working, and the user waits while it is written.
- Built-in thinking is hidden from the reply, but it is still generated. Google, Anthropic and OpenAI all bill thinking tokens as output tokens. Google and Anthropic state that you are billed for the full thinking even when the API returns only a summary.
With built-in thinking you do not control the amount through the wording of the prompt alone. Each vendor has a setting: Google's docs describe a thinking_level, and Anthropic and OpenAI each describe an effort setting. Lower levels mean fewer tokens and faster replies. Higher levels mean more reasoning, more cost and more waiting.
Google's guidance is a sound rule for any vendor: match the amount of thinking to the task. Simple tasks such as looking up a fact or picking a category need very little. Hard tasks such as multi-step planning need more. Run your test cases at several levels and choose the lowest one that still meets your quality bar. The lesson Testing prompts with evals shows how to build those test cases.
Go deeperReasoning is a debugging tool, not a proof
When a model shows its working, you can see which rule it misread, and that points you to the line of the prompt to fix. This is a big practical gain. But a model can write neat, confident steps and still make a mistake in one of them. So keep checking the final answer in the ways you already would: test cases, a second check in code where the rules are simple, and a person for cases that matter.
For sums like the one in this lesson, there is an even safer design: let the model pick out the facts (sibling: yes, bus: yes, paid on the 14th) and let ordinary code do the arithmetic. Splitting work like this is the subject of Prompt chaining.
Go deeperWords to know
| Word | Meaning in simple words |
|---|---|
| Token | A small piece of text. Models read and write in tokens, and you pay per token |
| Chain of thought | Asking the model to write its reasoning step by step before the final answer |
| Built-in thinking | Reasoning that the model does privately before it replies, as a feature of the model |
| Thinking tokens | The tokens used for that private reasoning. They are billed as output tokens |
| Thinking level or effort | An API setting for how much the model should think |
| Latency | The time you wait for the reply |
Check your understanding
Sources: the official documentation
This lesson is based on the official documentation. Check it for the latest details.
Something wrong or unclear in this lesson? Tell us, it gets fixed.