Four models, plotted the way an astronomer would: capability against latency, priced by point size. It's not quite a main sequence — more of a giant branch — but the physics of the tradeoff is real. Pick a star and the whole guide follows.
response = client.messages.create(
model="claude-opus-5",
max_tokens=4096,
messages=[{"role": "user", "content": prompt}],
output_config={"effort": "high"}, # the whole trick
)
| Model ↕ | $ In/MTok ↕ | $ Out/MTok ↕ | Context ↕ | Max output ↕ | Latency ↕ | Knowledge cutoff ↕ | Thinking | Effort levels |
|---|
* Sonnet 5 intro pricing — $2 in / $10 out — runs through Aug 31, 2026, then $3 / $15. Batch API discounts apply on top for all models.