01Chapter 1: Start from the task, not the modelThis chapter assumes you have called an HTTP API or SDK before and can read basic Python. You should also know what a large language model does, and what a prompt, a token, and a context are.2 min read
02Chapter 2: Hosted APIs: what you get and what you give upThis chapter assumes you have called an HTTP API or SDK before, can read basic Python, and know the terms prompt, token, and context. A hosted API is a model that a provider runs on its own servers. You send a request over the network and get a completion back. You never see the weights, which are t2 min read
03Chapter 3: Open-weight models: weights you can download and runThis chapter assumes you can call an HTTP API or SDK, read basic Python, and know what a prompt, token, and context are. It covers what an open-weight model is, what you get when you download one, and the errors people commonly make when they first try one.2 min read
04Chapter 4: Open-weight is not always open-source: reading licensesThis chapter assumes you know what a model's weights are and have read the previous chapter on open-weight models. You do not need any legal background. This is a practical guide to what to check, not legal advice.2 min read
05Chapter 5: What model size means for quality and costThis chapter assumes you know what a token and a context window are, can read basic Python, and have called an LLM API before. Here you will learn what "model size" measures and how it affects quality, memory, speed, and price.2 min read
06Chapter 6: Context window limits and why they matterThis chapter assumes you can call a model through an HTTP API or SDK, read basic Python, and know what a prompt and a token are. It covers one selection criterion: how much text a model can handle in a single request.3 min read
07Chapter 7: Estimating cost from token pricesThis chapter assumes you know what a token is, have called a hosted model API, and can read basic Python. You will turn token prices into a per-request and monthly cost estimate before you commit to a model.2 min read
08Chapter 8: Estimating the memory a model needsThis chapter assumes you can read basic Python and know what a parameter count is. You should also know that an open-weight model is a set of downloadable weight files. Memory is the first hard limit you hit when you run one yourself, so you can estimate it before you download anything.2 min read
09Chapter 9: Quantization: trading precision for memoryThis chapter assumes you have read the previous chapter on estimating memory. You should know that weight memory is parameter count times bytes per weight, and that a prompt, a token, and a context are different things.2 min read
10Chapter 10: Latency versus throughputThis chapter assumes you can call an LLM API, read basic Python, and know what a token is. It covers two speed measures that often pull in different directions, and how model size affects each.2 min read
11Chapter 11: Running open-weight models locally and on serversThis chapter assumes you can call an HTTP API from Python, know what a token and a context window are, and have read the earlier chapters on memory estimates and quantization. Here you decide how to run an open-weight model once you have picked one.2 min read
12Chapter 12: Data privacy and compliance constraintsThis chapter assumes you have called a hosted model API before and know that a prompt is sent over the network to a provider. It covers what privacy and compliance rules change about your model choice. It does not cover legal advice. Ask your legal or security team for the final call.2 min read
13Chapter 13: Hosted or self-hosted: weighing the trade-offsThis chapter assumes you have read the earlier chapters on hosted APIs, open-weight models, token pricing, memory, latency, and privacy. It combines them into one comparison. You should be able to read short Python and know what a token is.2 min read
14Chapter 14: Compare candidates on your own examplesThis chapter assumes you can read basic Python and have called an LLM through an HTTP API or SDK. You should also know what a prompt and a token are.2 min read
15Chapter 15: Design so the model can be swappedThis chapter assumes you can call an HTTP API or SDK from Python and know what a prompt, token, and context window are. You should also have read the earlier chapters on hosted APIs, open-weight models, and evaluation.2 min read
16Chapter 16: Routing requests between small and large modelsThis chapter assumes you have read the chapters on model sizes, token pricing, and evaluation. You should also be able to read basic Python and call a model through an OpenAI-style client.2 min read
17Chapter 17: A checklist for making and revisiting the choiceThis chapter assumes you have read the earlier chapters. You should know the difference between hosted APIs and open-weight models, how parameter count affects memory and speed, how token prices turn into monthly cost, and how to score models on your own examples. Here you combine those pieces into 2 min read