The Model Landscape and Choosing a Model
Frontier APIs, small fast models and open-weight models each fit different jobs; choose on quality, latency, cost, privacy and license.
Beginner · about 3 hours · difficulty 2/5
Learn first: How LLMs Are Trained and Aligned
There is no single best model. There is the right model for a task, a budget and a set of constraints, and that choice changes every few months. Build your code so that switching models is a config change, not a rewrite.
The landscape
- Frontier hosted models: the Claude, GPT and Gemini families. Strongest at reasoning, coding, long context and tool use. Usually offered in tiers: a large flagship, a balanced mid tier and a small fast tier.
- Open-weight models: Llama, Mistral, Qwen, Gemma, DeepSeek and others. You can run them yourself or through hosting providers. Good for privacy, offline use, fine-tuning and cost control at scale.
- Specialized models: embedding models, rerankers, speech-to-text, image generation, moderation classifiers.
How to choose
- Start with a strong model to prove the task is possible.
- Build a small eval set (see the evaluation section).
- Try cheaper, faster tiers and keep the smallest one that passes.
- Consider routing: a small model for easy requests, a big one for hard ones.
Other factors
Data residency and privacy terms, rate limits, context size, multimodal support, license terms for open weights, and availability on your cloud provider. Public leaderboards are a starting signal, but your own eval on your own data is what decides.
Good enough to move on
You can justify a model choice for a given use case with numbers from your own small test, and your code reads the model name from configuration.
Key concepts
- Frontier model families and tiers
- Open-weight models and licenses
- Quality vs latency vs cost
- Benchmarks and leaderboards: A signal, not a verdict
- Model routing
- Data privacy and residency terms
Mini project
Write a comparison script that runs the same 20 prompts across three models (two hosted tiers and one open model), records latency, token usage and cost, and saves results to a CSV for review.
Check yourself
Why is a public leaderboard score not enough to pick a model for your product?
Free resources
- Anthropic docs: models overview (Anthropic)
- OpenAI docs: models (OpenAI)
- LMArena leaderboard (LMArena)