匠人学院 JR Academy
Skip to article
Learning guide
Claude API Guide

Build with the Claude API for messages, streaming, multimodal input, and production integrations.

3 chapters·9 guides·Access varies by chapter
Model Selection
On this page

Choosing a Claude API Model

Choose a model using the workload you need to pass, not a family name alone. The Chinese source includes earlier Sonnet, Opus and Haiku identifiers; treat those examples as historical rather than a current availability list.

#Compare on your own tasks

WorkloadMeasure before choosing
Extraction and routingField accuracy, latency, invalid-output rate
Coding and analysisCorrectness, test results, tool-call reliability
Long documentsRetrieval of relevant details, omissions, total context cost
Interactive chatTime to first useful output and full response time
Image inputSupported formats and accuracy on your actual images

A more capable model may reduce retries, but a larger model is not automatically the cheapest or most reliable choice for every stage. Test lighter routing separately from difficult reasoning.

#Record the exact configuration

Store the model identifier, SDK version, prompt revision, enabled features and evaluation dataset version. An alias may change behavior over time; a pinned version helps reproduce a result but still needs a retirement plan.

Use ANTHROPIC_MODEL as application configuration. Verify that the identifier is available to your account and supports the features used by the request. Context size, output limits, pricing and regional availability vary; do not apply an old table to every model.

#Make a change measurable

Run the same fixed cases before and after a model change. Include malformed input, a missing answer, long context and a tool failure. Compare task success, unsupported claims, usage and latency. Keep a rollback configuration if the new model regresses.

Current model documentation↗

Published by
JR Academy
Learning resources

Individual authors and reviewers are credited where recorded.

System Design

Core system design concepts and practical case studies

Learn the trade-offs and patterns that matter in technical interviews.

Open System Design →

Related Roadmaps

Done reading? Next steps