Lesson 82 of 1455
Claude Opus 4.7 — extended thinking cost math
Extended thinking makes Opus smarter but burns hidden tokens. Here is how to budget it without blowing your bill.
Builders · Model Families · ~17 min read
Thinking tokens are real tokens
When you enable extended thinking on Opus 4.7, the model generates reasoning tokens before producing its visible answer. Those reasoning tokens are billed at the output rate. A 16k thinking budget on a single call can cost $0.40 all by itself.
Budget ladder
- 11024 tokens — quick sanity reasoning for routine questions
- 24096 tokens — multi-step debugging or analysis
- 316384 tokens — hard math, long refactors, legal reasoning
- 432768+ tokens — only for frontier research tasks where you expect to re-use the trace
Compare the options
| Budget | Extra cost (approx) | Typical win |
|---|---|---|
| 1k | $0.025 | Small quality bump on edge cases |
| 4k | $0.10 | Catches most logical errors |
| 16k | $0.40 | Handles genuinely hard problems |
| 32k | $0.80 | Marginal — diminishing returns |
Start at 4k. Raise only when you see reasoning truncate mid-thought.
client.messages.create( model="claude-opus-4-7", max_tokens=2048, thinking={"type": "enabled", "budget_tokens": 4096}, messages=[{"role": "user", "content": prompt}], )How to know it helped
Run the same 20 prompts with thinking off and on. If accuracy moves less than 3 points, the budget is wasted. If it jumps 10+ points, you found the right use case.
Key terms in this lesson
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 30 min
GPT-5.5 vs. Claude Opus 4.7 — which chatbot wins your day
Two frontier models, same subscription price, very different personalities. Pick by vibe, not by benchmark — here is how to figure out which one clicks for you.
Creators · 38 min
Claude Opus 4.7 — when extended thinking earns its cost
Opus 4.7 shipped in April 2026 with a bigger thinking budget and a 1M-token window at standard prices. Here is the architecture, the pricing math, and when the premium is actually worth it.
Builders · 25 min
Claude Opus 4.7 vs. Sonnet 4.6 — which Claude to pick
Opus is the flagship, Sonnet is the workhorse. Here is the five-minute decision tree for when to pay 2x more for Opus and when Sonnet handles it.
