Backend Bootcamp

AI Model Comparison Table (2026)

Side-by-side comparison of GPT-4o, Claude, Gemini, Llama, Mistral, and DeepSeek — context window, pricing, multimodal support, and use cases. Updated 2026.

Side-by-side specs, pricing, and capability comparison for the most widely used LLMs in 2026. Use this page to pick the right model for your use case before you build.

Pricing note: LLM pricing changes frequently. Figures below reflect best available data as of April 2026 — always verify at the provider’s official pricing page before production decisions.


Model Overview

ModelProviderContext WindowInput ($/1M tokens)Output ($/1M tokens)VisionTool UseOpen Source
Claude Opus 4.6Anthropic200K$15.00$75.00✅✅❌
Claude Sonnet 4.6Anthropic200K$3.00$15.00✅✅❌
Claude Haiku 4.5Anthropic200K$0.80$4.00✅✅❌
GPT-4oOpenAI128K$5.00$15.00✅✅❌
GPT-4o miniOpenAI128K$0.15$0.60✅✅❌
o3OpenAI200K$10.00$40.00✅✅❌
o4-miniOpenAI200K$1.10$4.40✅✅❌
Gemini 2.5 ProGoogle1M$1.25$10.00✅✅❌
Gemini 2.0 FlashGoogle1M$0.10$0.40✅✅❌
Llama 3.3 70BMeta128KFree (self-host)Free (self-host)❌✅✅
Llama 3.2 Vision 11BMeta128KFree (self-host)Free (self-host)✅✅✅
Mistral Large 2Mistral AI128K$2.00$6.00❌✅❌
Mistral Small 3Mistral AI128K$0.10$0.30❌✅✅
DeepSeek V3DeepSeek128K$0.27$1.10❌✅✅
DeepSeek R1DeepSeek64K$0.55$2.19❌❌✅
Qwen 2.5 72BAlibaba128KFree (self-host)Free (self-host)❌✅✅

Capability Deep-Dive

Context Window

TierModelsBest For
1M tokensGemini 2.5 Pro, Gemini 2.0 FlashFull codebases, large document Q&A, long video transcripts
200K tokensClaude (all), o3, o4-miniLong documents, multi-file code review, extended conversations
128K tokensGPT-4o, GPT-4o mini, Llama 3.3, MistralMost production use cases
64K tokensDeepSeek R1Reasoning tasks, structured problem solving

Rule of thumb: 1 token ≈ 0.75 English words. 100K tokens ≈ a 75,000-word book (a full novel).

Reasoning & Code

TaskRecommended ModelsNotes
Complex multi-step reasoningo3, DeepSeek R1, Claude Opus 4.6o3 and R1 are reasoning-first; slower but more accurate
Code generation (quality)Claude Sonnet 4.6, GPT-4o, Gemini 2.5 ProAll competitive; Claude Sonnet often preferred for long functions
Code generation (speed/cost)Claude Haiku 4.5, GPT-4o mini, Gemini 2.0 FlashBest for autocomplete, inline suggestions
SQL / data queriesDeepSeek V3, GPT-4o, Claude Sonnet 4.6DeepSeek V3 strong on structured data tasks
Math & scienceo3, o4-mini, DeepSeek R1Reasoning models significantly outperform standard LLMs

Vision & Multimodal

ModelVision CapabilityNotes
GPT-4oDocument parsing, image QA, chartsStrong general-purpose vision
Claude Sonnet 4.6Screenshots, UI understanding, PDFsExcellent for document-to-structured-data
Gemini 2.5 ProLong video, native audio, imagesOnly model with native 1M-token multimodal context
Llama 3.2 VisionImagesOpen-source option; runs locally

Tool / Function Calling

All major closed-source models support tool use. Quality varies:

ModelTool Calling QualityParallel Tool Calls
Claude Sonnet 4.6Excellent✅
GPT-4oExcellent✅
Gemini 2.5 ProGood✅
Mistral Large 2Good✅
DeepSeek V3Good✅
DeepSeek R1Poor (reasoning mode conflicts)❌

Cost Comparison

Per 1,000 API calls (avg 500 tokens in / 500 tokens out)

ModelCost per 1K callsMonthly cost at 1M calls/day
Gemini 2.0 Flash$0.25$7,500
GPT-4o mini$0.375$11,250
DeepSeek V3$0.685$20,550
Mistral Small 3$0.20$6,000
Claude Haiku 4.5$2.40$72,000
Claude Sonnet 4.6$9.00$270,000
GPT-4o$10.00$300,000
Claude Opus 4.6$45.00$1,350,000

Cost optimization tip: Use a routing pattern — route simple classification/extraction tasks to Haiku or Flash, reserve Sonnet/GPT-4o for complex generation, and use o3/Opus only for high-value, complex reasoning.


Use Case Recommendations

Production API at Scale (cost-sensitive)

Start with: Gemini 2.0 Flash or GPT-4o mini
Upgrade to: Claude Haiku 4.5 if you need larger context or better instruction following

Complex Code Generation & Review

Use: Claude Sonnet 4.6 or GPT-4o
For reasoning-heavy tasks: o3 or o4-mini

Use: Gemini 2.5 Pro (1M context) or Claude (200K context)

Self-Hosted / On-Premise

Use: Llama 3.3 70B (best open-source quality), DeepSeek V3 (strong coder), Mistral Small 3 (efficient)

Reasoning & Math

Use: o3 (highest accuracy), o4-mini (cost-effective reasoning), DeepSeek R1 (open-source reasoning)

RAG (Retrieval-Augmented Generation)

Use: Claude Sonnet 4.6 or GPT-4o — both handle structured retrieved context reliably
Avoid: Pure reasoning models (o3, R1) for RAG — they’re slower and not designed for retrieval patterns

Multi-modal Pipelines (vision + text)

Use: Gemini 2.5 Pro for video/audio, Claude Sonnet 4.6 for document/screenshot understanding, GPT-4o for general image tasks


Open Source Models

ModelSizeBest forHow to Run
Llama 3.3 70B70BGeneral-purpose, codeOllama, vLLM, Together AI
Llama 3.2 Vision 11B11BMultimodal at lower resource costOllama
Mistral Small 322BInstruction following, tool useOllama, Mistral API
DeepSeek V3685B (MoE)Code, structured dataDeepSeek API, self-host (large GPU cluster)
DeepSeek R1671B (MoE)Reasoning, mathDeepSeek API, distilled versions via Ollama
Qwen 2.5 72B72BMultilingual, codeOllama, Together AI

Self-hosting rule of thumb: 70B models require ~40GB VRAM (2× A100 or 4× RTX 4090). Run smaller 7B–13B distilled versions on a single 16GB GPU.


Provider Pricing Pages

  • Anthropic (Claude): anthropic.com/pricing
  • OpenAI (GPT-4o, o3): openai.com/pricing
  • Google (Gemini): ai.google.dev/pricing
  • Mistral AI: mistral.ai/pricing
  • DeepSeek: platform.deepseek.com/pricing

Search the bootcamp

↑ ↓ to move · Enter to open · Esc to close See all results