Before selecting a model, create small, representative test suites for each job (20–30 realistic examples). Decide in advance what constitutes an acceptable result and use that evaluation to compare models.
Performance (top corner)
“Performance” here means the quality and correctness of the model’s output for your specific task: correctness, formatting fidelity, policy compliance, and robust decision-making (especially for agents).- Use public benchmarks to narrow choices, but treat them as a starting point—benchmarks rarely capture task-specific constraints (eg. strict formatting, domain jargon).
- Build a targeted evaluation: run a representative test set through each candidate model and score the outputs against your acceptance criteria.
- Evaluate for edge cases and failure modes that would be costly downstream (wrong facts, broken formatting, unsafe outputs).
- Legal or medical summarization where accuracy is critical.
- Agent-driven workflows that make irreversible decisions.
- Final content generation that will be published or billed.
Cost (one bottom corner)
Token price is a starting point—optimize for cost per successful result.- Compute the true end-to-end cost: API charges, orchestration layers, retries, human review, and downstream cleanup.
- A cheaper-per-token model that fails frequently will increase operational costs through retries and manual fixes.
- When multiple models meet your quality bar, cost usually becomes the deciding factor—especially for high-volume workloads (eg. summarizing millions of documents).
Latency (other bottom corner)
Latency defines how quickly you get a useful answer. Two useful measurements:Time to first token— when streaming begins.Total generation time— when the full response is ready.
- Interactive autocomplete: very low latency (an extra 2–3 seconds per keystroke ruins UX).
- Conversational UIs: low time-to-first-token helps perceived responsiveness.
- Batch jobs: throughput and cost matter far more than per-request latency.
Putting it together: choosing a model for a workload
Start by setting minimum acceptable thresholds on all three axes: quality, cost, and latency. Then prioritize according to your workload. Follow this evaluation checklist for each candidate model:- Pass rate on your representative test set (quality).
- Average cost per successful run (including retries and cleanup).
- Latency profile: time to first token, total generation time, and throughput.
Measure and compare models with these metrics:
Architectural notes
- Use different models for different jobs within the same application. Don’t force every task through a single model.
- Example: small, fast models for UI autocompletion; larger, higher-quality models for final document synthesis or agent decisions.
- Consider an LLM gateway or routing layer to dispatch requests to the model that best fits the job’s performance/cost/latency needs.
- Periodically re-run your tests. As models improve or pricing changes, a cheaper or smaller model may begin to meet your requirements.
The model menu changes rapidly. Whenever new models, capabilities, or pricing appear, re-run your representative tests—your optimal choice may change.