Choosing AI models
Picking the right model for a task by testing quality, cost, speed and data terms.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOverview
Choosing a model means matching a task to a model that does it well enough, at a cost, speed and set of data terms you can accept. Providers release and retire models often, context windows and prices differ widely, and open-weight models now handle many jobs that once needed a frontier API, so last year's choice is often no longer the right one.
Practitioners start from their own task, not a leaderboard. They collect a few dozen real inputs with agreed pass criteria, run several candidate models on them, and compare quality alongside cost per task, latency and the ways each model fails. They read model cards and provider terms for context limits, data retention and licences, keep the model name in configuration so switching is cheap, and route easy requests to smaller models when the evals show it is safe.
What you will practise
- Write down your requirements: quality bar, budget per task, latency and data rules
- Run three candidate models on the same set of real inputs and score them
- Compare cost per task and latency, not only the price per token
- Read a model card and the provider's data terms before sending real data
- Re-run your comparison when a provider releases or retires a model
Workflow recipes
- Move an app to a new model without regressions
LLM model migration without surprises: freeze a golden set, run old and new models side by side, fix the prompts, compare cost, then roll out behind a flag.
Articles
- How to choose an LLM for a task without trusting leaderboards
A method for choosing an LLM: build 20 test cases from your own work, then compare accuracy, cost per correct answer, latency and data terms. No rankings.
- How large language models work, without the maths
A large language model predicts the next token, one at a time. Tokens, training, context windows and why that design explains the limits you hit at work.
Tools for this skill
Amazon Bedrock
AWS service for foundation models, RAG and agents.
DeepSeek
Chat app and API for DeepSeek's open-weight models.
Groq
Fast inference API on Groq's own LPU chips.
Kilo
Open-source coding agent for IDEs, the terminal and the cloud.
LiteLLM
Open-source SDK and AI gateway that calls 100+ providers through one OpenAI-style API.
LLM
CLI and Python library for prompting many models.
OpenRouter
One API and bill for models from many providers, with routing and fallbacks.
Replicate
Cloud API for running open and proprietary models.
Key terms
Words you will meet while learning this, defined in the glossary.
- Model parameters
The numbers learned in training that determine what a model outputs; a model's size is usually quoted as how many of them it has.