Choosing a model in 2026
There is no best model. There is a best model for a task, at a price, under a latency budget, with your data constraints, measured on your inputs. In 2026 the frontier labs (Anthropic, OpenAI, Google and others) ship new versions every few months, and open-weight families such as Qwen, DeepSeek, GLM, Kimi, Mistral, Llama and gpt-oss have closed much of the gap on many benchmarks. The goal of this doc is a selection process that survives the next release, not a ranking that will be stale by the time you read it.
Why it matters
Model choice sets your unit economics and your ceiling on quality. The spread is enormous: Artificial Analysis notes that prices for comparable tasks can differ by orders of magnitude across providers, and the fastest models are many times faster than the smartest ones. Picking one premium model for everything wastes money on easy tasks; picking one cheap model for everything fails the hard ones. Most mature systems use several models, routed by task.
How it works
I evaluate candidates on six axes, in roughly this order:
- Task quality on your eval set. Public leaderboards (Artificial Analysis, LMArena, MTEB for embeddings) are for shortlisting. Your own 50 to 200 labeled examples decide.
- Latency. Split into time to first token and output tokens per second, because they matter differently for chat versus batch.
- Cost per successful task, not per token. A cheaper model that needs two retries may cost more than a pricier model that succeeds once.
- Context and modality needs. Window size, max output, PDF, image and audio support, structured outputs and tool calling quality.
- Data and deployment constraints. Residency, retention, compliance, and whether you can call an external API at all.
- Licensing and supply risk. For open weights, read the license (many are Apache 2.0 or MIT, Llama uses a custom community license with its own restrictions). For APIs, check deprecation schedules.
Rendering diagram…
Frontier API versus open weight
Frontier APIs give you the top of the capability curve, managed scaling, long context, mature tool use and fast access to new features. Open-weight models give you control: fixed versions that never change under you, data that never leaves your network, fine-tuning, and potentially lower cost at high steady volume. Many open-weight models are also available through hosted inference providers, which lets you get the licensing and portability benefits without running GPUs. Self-hosting brings real operational cost: GPU capacity, serving stacks, quantization choices and on-call.
Tiering and routing
Every major provider offers tiers: a large, smartest model; a balanced mid tier; and a small, fast, cheap tier. Combined with reasoning effort controls (see reasoning models), that gives you a two-dimensional dial. A typical routing table:
- Classification, extraction, short rewrites: small tier, low or no thinking.
- General chat and RAG answers: mid tier, low to medium effort.
- Complex coding, multi-step agents, high-stakes analysis: top tier, higher effort.
- Embeddings and reranking: specialized models, often open weight.
Reference architecture
Put routing and fallback in one place so swapping a model is configuration.
Rendering diagram…
Code
The Vercel AI SDK gives one TypeScript interface over many providers, which makes a routing table almost trivial. This sketch routes by task and falls back to a second provider on failure.
import { generateText } from "ai";
import { anthropic } from "@ai-sdk/anthropic";
import { openai } from "@ai-sdk/openai";
type Task = "classify" | "chat" | "agent";
const routes = {
classify: { primary: anthropic("claude-haiku-4-5"), fallback: openai("gpt-5-mini") },
chat: { primary: anthropic("claude-sonnet-4-6"), fallback: openai("gpt-5") },
agent: { primary: anthropic("claude-opus-4-6"), fallback: openai("gpt-5") },
} as const;
export async function run(task: Task, prompt: string) {
const { primary, fallback } = routes[task];
for (const model of [primary, fallback]) {
const started = Date.now();
try {
const result = await generateText({ model, prompt, maxRetries: 1 });
console.log({ task, model: model.modelId, ms: Date.now() - started, usage: result.usage });
return result.text;
} catch (err) {
console.warn(`model ${model.modelId} failed, trying fallback`, err);
}
}
throw new Error(`all models failed for task ${task}`);
}
In production the routes object comes from config or a feature flag service, and the console logs become metrics tagged with route and model.
Trade-offs and pitfalls
- Leaderboard chasing. Aggregate scores hide task-specific weaknesses, and benchmarks leak into training data. Shortlist with them, decide with your evals.
- Silent model updates. Aliases that point to "latest" can change behavior. Pin versions in production and upgrade deliberately.
- Prompt portability. Prompts tuned for one family often underperform on another. Budget time to re-tune when switching.
- Feature parity. Structured outputs, caching, citations, thinking controls and tool behavior differ by provider. An abstraction layer smooths syntax, not semantics.
- Self-hosting math. Open weights are only cheaper if utilization is high. Idle GPUs are expensive.
- Fallback quality. A fallback model that is much weaker can produce worse outcomes than a clear error. Test fallbacks with the same evals.
- Deprecations. Providers retire models on published schedules. Track them and keep your eval suite runnable at any time.
Checklist
- Each task type has a documented model choice backed by an eval run.
- Production uses pinned model versions, not floating aliases.
- Routing and fallbacks live in one config-driven layer.
- Metrics track quality, latency and cost per route.
- Data residency and licensing constraints are written down per use case.
- The eval suite can re-run against a new model within a day of its release.
- Deprecation dates for every model in use are tracked.