Course outline

Model Landscape

7 min read · Lesson 1.7

TL;DR: The model landscape in 2025 has three tiers: frontier (GPT-4o, Claude Opus, Gemini Ultra — best quality, highest cost), mid-tier (Claude Sonnet, GPT-4o-mini, Gemini Flash — excellent quality, reasonable cost), and fast/cheap (Claude Haiku, Gemini Flash-8B — good for classification and simple tasks). Most production systems use mid-tier as default and route to frontier only for complex tasks.

Prerequisites: Transformer Intuition Related: Training Pipeline, Small Language Models, Cost Optimization


The 2025 Model Landscape

This table will date itself; the principles behind it won't. Check LMSYS Chatbot Arena for current rankings.

ModelProviderContextInput $/1MOutput $/1MBest For
Claude Opus 4.6Anthropic200K$15$75Complex reasoning, coding, analysis
GPT-4oOpenAI128K$5$15Versatile, vision, function calling
Gemini Ultra 1.5Google1M$7$21Long context, multimodal
Claude Sonnet 4.6Anthropic200K$3$15Most tasks, best cost/quality
GPT-4o-miniOpenAI128K$0.15$0.60Simple tasks, classification
Gemini Flash 1.5Google1M$0.075$0.30High volume, latency-sensitive
Claude Haiku 4.5Anthropic200K$0.25$1.25Classification, fast responses
Llama 3.1 70BMeta (OSS)128KSelf-hostedSelf-hostedPrivacy, self-hosting
Llama 3.1 405BMeta (OSS)128KSelf-hostedSelf-hostedBest OSS quality
Mistral LargeMistral128K$3$9EU data residency
Command R+Cohere128K$3$15RAG-optimized, citations

Prices approximate as of early 2025. Verify at provider pricing pages.


How to Choose

The question is never "what's the best model?" It's "what's the best model for this task at this cost?"

flowchart TD
    A[What's the task?] --> B{Complexity?}
    B --> |Simple classification\nextraction, FAQ| C[Claude Haiku / GPT-4o-mini\n~$0.001-0.005 per call]
    B --> |Moderate: Q&A\ncontent generation\ncoding| D[Claude Sonnet / GPT-4o\n~$0.01-0.05 per call]
    B --> |Complex: multi-step reasoning\nadvanced coding\nnuanced analysis| E[Claude Opus / GPT-4o\n~$0.10-0.50 per call]

    F{Special requirements?} --> G[Long context > 128K → Gemini 1.5 or Claude]
    F --> H[Self-hosting required → Llama 3.1]
    F --> I[EU data residency → Mistral]
    F --> J[Vision/multimodal → GPT-4o, Claude, Gemini]
    F --> K[RAG with citations → Command R+]

Specialized Model Categories

Vision Models

All frontier models now support vision (image input):

ModelVision CapabilityNotes
GPT-4oStrongBest at document understanding, charts
Claude Opus/SonnetStrongExcellent at detailed visual analysis
Gemini 1.5 ProStrongBest for video understanding
LLaVA / Phi-3 VisionGoodOpen-source vision options

For document AI (PDFs with tables and charts), Claude Vision and GPT-4o are most commonly used in production.

Reasoning Models

Models explicitly designed for multi-step reasoning:

ModelProviderNotes
o1 / o3OpenAIExtended thinking before responding; much slower
Claude extended thinkingAnthropicExperimental; available in API

These models trade latency (30-120 seconds per response) for accuracy on complex math, logic, and coding problems. Not suitable for interactive applications; appropriate for offline batch jobs where correctness matters more than speed.

Embedding Models

For RAG and semantic search — these don't generate text, they generate vectors:

ModelDimensionsBest For
text-embedding-3-large3072Best quality, OpenAI
text-embedding-3-small1536Good quality, cheaper
voyage-large-2-instruct1024Best for RAG, Anthropic recommended
BAAI/bge-large-en-v1.51024Best open-source English
E5-mistral-7b-instruct4096Best open-source, multilingual
text-multilingual-embedding-002768Good multilingual, Google

Open-Source vs Proprietary

The gap between open-source and proprietary frontier models has narrowed substantially since 2023.

ConsiderationProprietary (Anthropic/OpenAI)Open-Source (Llama/Mistral)
QualityBestWithin 10-20% of frontier
CostAPI per tokenGPU infrastructure + maintenance
Data privacyData sent to providerFull control
CustomizationFine-tuning via APIDirect weight modification
LatencyManaged by providerYour optimization
OperationsZero (provider manages)Full responsibility
ComplianceSOC2, HIPAA BAAs availableFull control

For most teams: proprietary APIs until you have a compelling reason not to (cost at scale, data privacy, compliance). For teams with strong data residency requirements or >$50K/month API spend, evaluate self-hosting.


Performance Benchmarks (What They Mean)

You'll see models ranked on MMLU, HumanEval, GSM8K, and similar benchmarks. Understanding what these actually measure:

BenchmarkMeasuresReal-World Relevance
MMLUKnowledge across 57 domainsGeneral knowledge, good proxy
HumanEvalCode completion accuracyCode quality, but easy cases
GSM8KGrade school math word problemsBasic reasoning
MATHCompetition mathHarder reasoning
GPQAGraduate-level science Q&ADomain expertise
LMSYS ArenaHuman preference (blind A/B)Best real-world proxy

My recommendation: Weight LMSYS Chatbot Arena ELO scores heavily — it's human preference evaluation on real conversational tasks, not structured benchmarks that can be gamed. For task-specific decisions, build your own eval set on your actual use case.


Model Selection for Common Use Cases

Use CaseRecommendedWhy
Production RAG chatbotClaude Sonnet / GPT-4oBest cost/quality for generation
Classification pipelineClaude Haiku / GPT-4o-miniFast, cheap, accurate
Code generationClaude Opus / GPT-4oBoth strong at coding
Long document analysisClaude Sonnet (200K) / GeminiLarge context window
Multilingual supportGPT-4o / Gemini / ClaudeAll handle major languages
Low-latency (<500ms)Haiku / GPT-4o-miniFastest response times
High-volume (>1M calls/day)Haiku + routing / Gemini FlashCost efficiency at scale

Gotchas

Model quality changes over time without announcement. Providers update models behind the same API endpoint. GPT-4's behavior has shifted multiple times while still being called "gpt-4." Pin to specific versions (gpt-4-0125-preview) if consistency matters and re-evaluate when upgrading.

Benchmarks don't predict task-specific performance. A model that's #1 on MMLU might not be best for your specific task. Build a small eval set from your actual use case and test before committing to a model.

Cost per token doesn't tell the whole story. A model that's 2x cheaper per token but requires 2x more tokens to get the same result (verbose responses, requires more back-and-forth) isn't actually cheaper. Measure cost per resolved task, not cost per token.

Frontier models add new capabilities regularly. By the time you read this, there will be newer models not in this table. The key principles (evaluate on your task, tier selection based on complexity, routing to cheaper models for simple tasks) remain constant even as specific models change.


Key Takeaways:

  1. Use the cheapest model that reliably handles the task. Route complex reasoning to Opus, routine tasks to Haiku. This is the highest-ROI cost optimization.
  2. LMSYS Chatbot Arena ELO is the most reliable benchmark because it's human preference on real conversations, not structured test sets.
  3. The open-source vs proprietary decision isn't about quality anymore — it's about data privacy, compliance, operational burden, and total cost of ownership at scale.

"The right model is the cheapest one that does the job. Build a simple eval, test all the candidates, pick the winner."

Never Miss an AI Job

Get the top AI & LLM jobs delivered to your inbox every week. Curated, not spammy.

Join 1,000+ AI professionals. Unsubscribe anytime.