AI / Claude Models Basics Interview Questions
What is the effort parameter in Claude and which models support it?
The effort parameter allows you to trade intelligence for latency and cost within a single model — rather than switching to a different model. It is available on recent Opus and Sonnet models.
| Level | Behaviour | Use case |
|---|---|---|
| low | Fastest, least compute — lighter reasoning | Simple tasks, classification, short responses |
| medium | Balanced compute | General purpose tasks |
| high (default on Opus 4.8) | Strong reasoning — default on Opus 4.8 | Most coding, analysis, complex tasks |
| xhigh | Maximum reasoning — highest latency and cost | Hardest coding problems, high-autonomy agentic work |
# Using the effort parameter message = client.messages.create( model="claude-opus-4-8", max_tokens=4096, effort="xhigh", # use max reasoning for this hard task messages=[{"role": "user", "content": "Solve this complex algorithmic problem..."}] ) # For simpler tasks, use lower effort to save time and cost message_fast = client.messages.create( model="claude-opus-4-8", max_tokens=256, effort="low", messages=[{"role": "user", "content": "What is 12 + 7?"}] )
Model support: the effort parameter is available on Claude Opus 4.8 and Claude Opus 4.7. The documentation recommends tuning effort as a first lever before switching models. The xhigh effort level on Opus 4.8 is described as the best setting for coding and high-autonomy agentic tasks.
Note: fast mode (a related but distinct feature) on Claude Opus 4.7 is deprecated with removal scheduled for July 24, 2026.
More Related questions...