Start with the task, not the model. Use the cheapest model that can complete a job with acceptable failure, verification, and human-review cost; reserve expensive reasoning models for high-constraint, high-value, or hard-to-debug work.

Do not assume a fixed percentage of traffic belongs on a small model. First collect 2–4 weeks of production logs; if 70% or more of requests are low-risk template tasks, build a routing layer and measure it against a shadow baseline.
Large comparison table: match the model family to the job
Pricing, model names, and context limits change quickly, including during 2026. Treat the following as a buying framework; verify exact numbers on each vendor’s pricing and model card before production.
| Task type | Typical model choice | Context / multimodal | Tool calling | Latency | Cost profile | Main failure risk | Recommended use |
|---|---|---|---|---|---|---|---|
| High-constraint math, symbolic logic, tricky code | o3-style reasoning model | Usually text/code-first; multimodal support varies by release | Strong when the workflow needs planning, verification loops, and retries | Often high because of hidden or visible reasoning effort | Premium; cost can rise with long traces and repeated tool calls | Overthinking simple jobs; expensive retries; brittle assumptions if tools return messy data | Use for hard bugs, compiler-level refactors, optimization, formal constraints, and incident triage |
| Long-document analysis, policy memos, high-stakes writing | Claude-class model | Long-context and document handling are a common strength; check current limits | Good for structured research, drafting, and reviewer agents | Moderate to high on very long inputs | Mid-to-premium; long prompts can dominate cost | Polished but unsupported claims; source omissions in very large packs | Use for contracts, briefs, dense reports, careful synthesis, and human-readable analysis |
| Multimodal workflows, video/image/PDF, Google ecosystem | Gemini-class model | Strong multimodal orientation; verify supported file types and context | Useful when connected to Google Workspace, search, cloud, or media pipelines | Depends heavily on media size and processing | Can be economical for bundled ecosystem work; media processing may add cost | Vision errors, transcript drift, or overconfident interpretation of ambiguous media | Use for screenshots, charts, video notes, image-heavy research, and Google-native automation |
| High-volume, low-risk templates | Small hosted model or distilled open model | Often text-first; multimodal options vary | Adequate for predictable APIs and fixed schemas | Lowest, especially with smaller hosted endpoints | Low per call, but supervision and fallback systems are required | Schema drift, poor recovery from edge cases, hallucinated fields | Use for classification, extraction, standard replies, ticket triage, and first-pass drafts |
| Privacy-sensitive regulated workflows | Self-hosted DeepSeek, Qwen, Llama-class model | Depends on weights, deployment stack, and GPU choice | Requires your own agent framework, guardrails, retries, and observability | Controllable but can be poor under load | Low marginal token cost after infrastructure; high fixed engineering cost | Stale capabilities, patching burden, insecure deployment, uneven tool use | Use when data cannot leave the VPC or volume justifies dedicated GPUs |
| Long multi-step agent runs | Hybrid routing | Combine small models for routing and strong reasoners for exceptions | Best fit if tools are typed, tested, and idempotent | Compounds across steps | Can become expensive quickly through loops | Retry storms, duplicate actions, state corruption | Use budgets, step caps, checkpoints, human approval, and model escalation |
Sources to check before locking decisions: official OpenAI, Anthropic, Google Cloud/DeepMind, Meta, DeepSeek, and Qwen model and pricing pages; your own gateway logs; and a repeatable internal benchmark.

Calculate the real cost of an agent run
Do not price only input and output tokens. A realistic run formula is:
Cost per run = input tokens + output tokens + reasoning tokens + tool-call retries + orchestration compute + human review cost
In practice, express each item in dollars:
- Input cost: prompt, retrieved documents, conversation history, and prior tool output.
- Output cost: final answer plus structured tool arguments.
- Reasoning cost: billed or allocated tokens from reasoning effort, depending on provider.
- Tool retries: failed API calls, malformed arguments, search calls, browser steps, and reruns.
- Review cost: minutes of human time multiplied by loaded hourly rate.
Assumption-based routing example: a support agent handles 10,000 monthly requests. A small model costs $0.01 per run, succeeds on 80%, and needs 5 minutes of review on 15% of cases at $30/hour. A premium reasoner costs $0.25 per run, succeeds on 95%, and needs 5 minutes of review on 4% of cases.
- Small model: 10,000 × ($0.01 + 0.15 × 0.25 × $30) = $12,250.
- Premium model: 10,000 × ($0.25 + 0.04 × 0.25 × $30) = $5,500.
The numbers are assumptions, not market data, but they show the key point: a cheaper token price can produce a more expensive workflow when review and rework are counted.
Where each reasoning family tends to earn its cost
o3-style models: hard constraints and recovery
Use these models when the penalty for a subtle mistake is high: tricky distributed-systems debugging, security-sensitive code changes, mathematical optimization, constrained planning, or multi-condition fault diagnosis. They are less attractive for routine summarization where a smaller model can reach the same accepted answer.
Claude-class models: long context and careful prose
Choose Claude-style models for long PDFs, legal or policy analysis, executive writing, interview synthesis, and tasks where tone, structure, and nuance matter. Keep citations, source chunks, and claim-level verification in the workflow; fluent prose is not evidence by itself.
Gemini-class models: multimodal and Google-native work
Choose Gemini-style models for screenshots, charts, image-heavy PDFs, video understanding, and workflows already tied to Google services. Test ambiguous images separately: labels, tiny text, overlapping UI elements, and low-resolution frames often expose the gap between demo and production performance.
Open-source agents: when DeepSeek, Qwen, or Llama make sense
Open-source reasoning models are attractive when you need control, predictable data boundaries, or very high volume. DeepSeek-class, Qwen-class, and Llama-class systems can handle extraction, classification, coding assistance, and internal support agents, but the total cost includes GPUs, inference servers, model upgrades, red-teaming, monitoring, secrets management, and failover.
A simple self-hosting break-even test is:
Monthly self-host cost = GPU/server lease + hosting + engineers + observability + security + model maintenance
Break-even monthly requests = self-host cost ÷ hosted API cost per request
If volume is uncertain, begin with a hosted API. If compliance forbids third-party processing, deploy in a private VPC with strong access controls, audit logs, and data retention rules. For stable tasks, distill successful traces from a stronger model into a smaller one, then route only uncertain cases upward. Never distill confidential data without checking each model license and data-use terms.
20-task evaluation before choosing a model
Build a private set of 20 real tasks, five from each major category:
- Extract fields from messy invoices
- Classify support tickets by priority and team
- Draft a standard customer response
- Summarize a meeting transcript with owners and deadlines
- Compare contract clauses against a policy checklist
- Answer from an internal knowledge base with citations
- Debug a failing test from logs and source code
- Generate a small code change and tests
- Review a pull request for likely regressions
- Write a SQL query from a business question
- Analyze a spreadsheet or CSV for anomalies
- Read a screenshot and reproduce a UI bug report
- Extract data from a scanned PDF
- Interpret a chart and explain its limitations
- Transcribe and summarize short video or meeting media
- Plan a multi-step research task with sources
- Use a CRM tool to update the right record
- Trigger a refund only when policy conditions hold
- Diagnose an incident from metrics, traces, and deploy history
- Produce a final report after failed or partial tool responses
Score every run with the same rubric:
- Accuracy: correct final result, judged against expert-labeled answers.
- Tool success rate: completed, valid, non-duplicated tool actions divided by attempted actions.
- Rework rate: share of outputs an expert must substantially correct.
- Latency: p50, p95, and timeout rate.
- Cost per successful result: total run cost divided by successful accepted runs.
Run each model blind against the same files and tools. A model that wins raw accuracy but requires repeated retries may lose on cost per successful result.
Decision tree for production routing
- If the task is low-risk, repetitive, and high-volume, start with a small hosted or open-source model.
- If privacy or regulation blocks external APIs, evaluate self-hosted DeepSeek, Qwen, or Llama-class models only after calculating GPU and operations cost.
- If the job is long-document analysis or high-stakes writing, route to a Claude-class model with citation and review checks.
- If the input is image, video, chart-heavy, or embedded in the Google ecosystem, route to a Gemini-class model.
- If the problem involves high-constraint math, difficult code, ambiguous production failures, or expensive recovery steps, escalate to an o3-style reasoner.
- If two routes look similar, choose the one with the lower measured cost per accepted result—not the lower sticker price.