Text Models
A guided tour of today's real large language models — the closed frontier models you access through an app or API, and the open-weight models you can download and run yourself.
By the end of this chapter, you'll be able to:
- Name several of today's leading text-generation model families and who makes each one
- Explain the practical difference between a closed, API-only model and an open-weight model
- Describe what a model's context window and multimodal input mean, directionally, without needing exact numbers
Everything from Weights and Bias through GPT in this handbook builds one specific machine from scratch: a transformer, trained to predict the next token. This page steps away from the machinery for a moment and asks a different question — not "how does this work," but "which real, named models is the world actually running today, and how do they differ from each other?"
The reassuring part: there's no new theory here. Every model below is the same core idea you've been building — a transformer predicting one token at a time — just scaled up to a size, and trained on an amount of data and compute, that no individual could run on their own laptop.
Closed frontier models vs. open-weight models
The single biggest dividing line in today's text models isn't which company made them — it's whether you can only talk to the model through someone else's app or API, or whether you can download the trained weights and run the model yourself:
| Model family | Maker | Known for | Access |
|---|---|---|---|
| GPT-4 / GPT-4o family | OpenAI | The models behind ChatGPT; strong general-purpose reasoning, plus dedicated reasoning-focused variants | Closed — API / product only |
| Claude family | Anthropic | Long context windows, heavy emphasis on safety, and a reputation for strong coding and long-document work | Closed — API / product only |
| Gemini family | Google DeepMind | Deep integration with Google's own products (Search, Workspace, Android) and native multimodal input | Closed — API / product only |
| Llama family | Meta | Meta publishes the trained weights for free, making it the default starting point for teams that want to self-host | Open-weight |
| Mistral models | Mistral AI | A French lab known for small, efficient models that punch above their parameter count | Mixed — some released open-weight, some closed |
| DeepSeek models | DeepSeek | A Chinese lab that drew industry attention by matching top-tier results at a reported fraction of the usual training cost | Open-weight |
'Family,' not one fixed model
Each row above is a moving target, not a single frozen model — every lab above ships new versions of its model family over time, and by the time you're reading this, newer versions than the ones you've heard of will likely exist. The names and the closed-vs-open-weight split are the stable part; treat any specific version number you see elsewhere as a snapshot in time, not a fact to memorize.
Why open vs. closed actually matters
It's tempting to treat this as a technical footnote, but it drives real, practical decisions for anyone building on top of these models:
- Cost model. A closed model is usually billed per token through an API — you pay for what you use, with no upfront cost. An open-weight model costs you the (often substantial) compute to run it yourself, but nothing per request after that.
- Data privacy. Send a prompt to a closed model's API, and your data leaves your servers and goes to that company's. Run an open-weight model on your own hardware, and nothing has to leave your building at all — which matters enormously for anyone handling sensitive data.
- Fine-tuning. You generally can't reach into a closed model's weights directly — at most, the provider offers a limited fine-tuning API on their terms. With open weights, you can fine-tune the entire model however you like, on whatever data you have.
- Offline / air-gapped use. A closed model requires an internet connection to the provider's servers, full stop. An open-weight model, once downloaded, can run with no internet connection at all — the same idea behind tools like Ollama, mentioned in The AI Landscape.
Neither option is strictly "better" — closed frontier models are typically the most capable models available at any given moment, while open-weight models trade some of that ceiling for control, privacy, and cost predictability.
Context windows: how much a model can hold in its "working memory"
A model's context window is how much text it can consider at once — the prompt, any documents you've attached, and the entire conversation so far, all measured in tokens (the same units from Tokenization). Everything outside that window simply isn't visible to the model when it predicts the next token.
Context windows have grown enormously since the earliest LLMs — from a model being able to "see" only a few thousand tokens at once, to today's frontier models handling hundreds of thousands of tokens or more, enough to fit entire books or large codebases in a single conversation. Exactly how large any specific model's window is changes often enough that it's not worth memorizing a number here — what matters is the direction: this is one of the axes labs actively compete on, and it keeps growing.
Multimodal input: "text" models that also see images
Calling these "text models" is a slight simplification. Many of today's frontier models — including recent GPT-4o-class models, Gemini, and Claude — are multimodal on the input side: you can hand them an image, a PDF, or in some cases audio, alongside your text, and they'll reason about it in their response.
That's a different capability from generating an image, which is what the next chapter is about. A multimodal text model can look at a photo and describe or answer questions about it — but it's still fundamentally a text-in, text-out model. Whether a model can also produce images, audio, or video as output is a separate axis entirely, and one where far fewer models compete.
Same architecture, vastly bigger
It's worth sitting with this for a second: GPT-4o, Claude, Gemini, Llama, Mistral, and DeepSeek all use the transformer architecture from Transformers and the next-token prediction objective from GPT — the exact concepts you're learning from scratch elsewhere in this handbook. What separates a frontier model from the small model you could train and run yourself isn't a different idea, it's scale: far more parameters, far more training data, and far more compute, applied to the same underlying mechanism.
Check your understanding
1. What's the main practical difference between a closed, API-only model and an open-weight model?
2. Which of these is an example of an open-weight model family you can download and self-host?
3. A model that can accept an image as part of its input, but still only produces text as output, is best described as: