A large language model (LLM) is an AI model trained on enormous amounts of text and specialized in predicting the next piece of text. From that one ability come answers, summaries, translations and code. “Large” refers to the number of parameters, the numbers learned during training, which in today's models run into the billions.
The easiest way to picture it is autocomplete. It guesses not just the next word on your phone keyboard, but whole paragraphs that fit the text so far, because the model has seen a large share of everything written on the internet. Type “The capital of France is” and “Paris” is the most likely continuation, which is exactly what the model returns.
If the basic idea is that simple, why does a model sometimes invent sources? The answer lies in how it works. For a ranking of current models, see the model directory and the LLM comparison.
And what does it cost? The same task costs very different amounts depending on the model. We calculated it for all 208 current models with an API price. 10,000 customer emails (about 300 input tokens and 80 output tokens each, the example from section 6) cost $0.11 with the cheapest model, Ling 3.0 Flash, and $234.00 with the most expensive, GPT-5.5 Pro. That is a factor of about 2,063. The eight most popular models fall in between:
- Input per million tokens
- $0.10
- Output per million tokens
- $0.50
- 10,000 emails
- $0.70
- Input per million tokens
- $0.10
- Output per million tokens
- $0.50
- 10,000 emails
- $0.70
- Input per million tokens
- $1.00
- Output per million tokens
- $5.00
- 10,000 emails
- $7.00
- Input per million tokens
- $1.40
- Output per million tokens
- $4.40
- 10,000 emails
- $7.72
- Input per million tokens
- $2.00
- Output per million tokens
- $10.00
- 10,000 emails
- $14.00
- Input per million tokens
- $2.00
- Output per million tokens
- $10.00
- 10,000 emails
- $14.00
- Input per million tokens
- $3.00
- Output per million tokens
- $15.00
- 10,000 emails
- $21.00
- Input per million tokens
- $4.00
- Output per million tokens
- $20.00
- 10,000 emails
- $28.00
1. LLM, ChatGPT and chatbot: the difference
The three terms are constantly mixed up, yet they describe different layers.
So when you say “ChatGPT”, you mean a product. The model underneath can change without the name changing. For an overview of products, see the guide to AI chatbots.
2. LLM or search engine?
An LLM is not a search engine, even though both answer questions. The difference decides when you use which:
- Search engine
- Links to pages that exist
- LLM
- A newly written text
- Search engine
- An index of web pages that is updated continuously
- LLM
- The training data up to its cutoff, plus material you attach or a web search supplies
- Search engine
- Every result has an address
- LLM
- Only if they are in the context. Otherwise the model can invent sources
- Search engine
- Results do not match the question
- LLM
- A fluent but wrong answer
- Search engine
- Looking up facts, current news, finding specific pages
- LLM
- Rewriting, summarizing, translating, drafting, code, analyzing material
How expensive the mix-up can get is shown by Mata v. Avianca. In 2023 a New York lawyer told the court he had wrongly taken ChatGPT for a “super search engine”. The opinions he had filed did not exist, and the court imposed a $5,000 penalty. Our DOI test (section 7) shows the same pattern with invented studies.
3. How does an LLM work?
3.1 Tokens: the building blocks
An LLM does not read words but tokens. These are pieces of text, often a whole short word or a part of a word. Long or rare words are split into several tokens. Google gives a rule of thumb for its Gemini models of about four characters per token, with 100 tokens equal to about 60 to 80 English words. For other languages such as German this is only a rough estimate, and you can count exactly with the token counter.
Because the model sees tokens rather than single letters, it stumbles over tasks like counting letters. In a test gradually.ai ran on November 7, 2026, 5 models had to count how often “e” appears in the German word “Erdbeermarmelade” (strawberry jam, correct answer: 5). DeepSeek V4.1 Flash gave the right number in 0 of 3 attempts. All results are in the entry on tokens.
3.2 Predicting the next token
At each step the model computes a probability for every possible next token. One token is then drawn, appended to the text, and the whole process starts again until the answer is complete.
Step 1: The text is split into tokens (example split, real tokenizers differ by model).
Step 2: The model scores every possible next token (example values for illustration).
Step 3: One token is drawn from this distribution and appended, and the loop starts again.
Because the model does not always take the single most likely token but draws from the distribution (sampling), answers to the same question vary. You control how much with temperature, top-p and top-k.
3.3 Transformers and attention in plain words
The architecture behind practically all of today's LLMs is the transformer, introduced in the 2017 paper “Attention Is All You Need”. First, the model turns every token into a long vector of numbers, a so-called embedding. Words with similar meanings end up in similar places. The core piece is the attention mechanism, which lets the model weigh, for every token, which other tokens in the text matter right now. In “The cat chased the mouse because it was hungry”, the model has to work out what “it” refers to, and attention helps it make that connection across many tokens.
How many tokens a model can look at once is set by its context window. What it knows about the world ends at its knowledge cutoff.
Where does the model get those probabilities in the first place? From training.
4. How an LLM is trained
Modern models go through several stages:
- Pretraining: The model reads huge amounts of text from books, websites and code and learns to predict the next token. This is where language and world knowledge come from. The right answer is in the text itself, so nobody has to label the data by hand. It is the most expensive step. Meta trained its largest Llama 3 model, with 405 billion parameters, on up to 16,000 H100 GPUs.
- Instruction tuning: The model is trained further on examples of questions and good answers so that it follows instructions instead of just continuing text.
- Reinforcement learning: People or other models rate answers, and the model learns to prefer more helpful and safer ones. For reasoning models this is also how step-by-step thinking is trained. The 2022 InstructGPT paper describes the basic idea of learning from feedback.
Why do models keep getting bigger? A 2020 study found that a language model's error falls along a power law as model size, data and compute grow. A follow-up study from 2022 used the Chinchilla model to show that size and data should grow at the same rate. Chinchilla, with 70 billion parameters, beat the four times larger Gopher on the same compute budget because it was trained on four times as much data.
If you want to tailor a finished model to a task or style, you can adapt it afterwards, see the entry on fine-tuning.
5. Types of LLMs
“Which types are there?” has no single answer, because models differ along several independent axes.
- Variants
- Closed or open weights
- What it means for you
- You use closed models through a service or API. Open weights can be downloaded and run yourself, though the license sets limits on use.
- Variants
- Standard or reasoning
- What it means for you
- Reasoning models work through longer chains of thought before answering. That helps with math, logic and code but costs more tokens and time.
- Variants
- Text only or multimodal
- What it means for you
- Multimodal models also process images, audio or video.
- Variants
- Text generator (like GPT) or text reader (like BERT)
- What it means for you
- GPT models generate text token by token from left to right, and chatbots build on them. Models like BERT read text in both directions and mainly serve search and classification.
- Variants
- Dense or mixture of experts (MoE)
- What it means for you
- An MoE model activates only part of its parameters per token, so it is faster and cheaper to run at similar quality.
- Variants
- Small (SLM) or large
- What it means for you
- Small models run locally and cost little, large ones solve harder tasks more reliably.
For an overview of open models, see the guide to open-source LLMs.
6. Worked example: summarizing a customer email
This is what a typical task looks like. The example is constructed to show how the model works, and the output does not come from a particular model run.
Summarize the following customer email in two sentences and tell me
what I need to do next.
Email: "Hello, my order from October 28 has not arrived. According to
tracking, the parcel has been in the distribution center for four
days. I need the contents by Friday for a gift. Can you help me or
refund the order?"Example answer:
The customer has been waiting four days for a delivery stuck in the
distribution center and needs it by Friday.
Next step: Check the status with the carrier and offer the customer a
solution today, either a replacement shipment or a refund.This works because the whole text is in the context. The model does not need to “know” anything, it only has to reshape, and tasks like this are where LLMs are most reliable. It gets harder as soon as the model has to know something that is not in the text.
7. Limits of LLMs
- Hallucinations: An LLM produces plausible-sounding text, not verified truth. When it lacks a fact, it often fills the gap with something that fits. In a test gradually.ai ran on November 7, 2026, GPT-6.1 Terra and Llama 3.1 8B Instruct named three studies with DOIs without web search in the German run, and not a single DOI was correct. More in the entry on hallucination.
- Outdated knowledge: Anything after the cutoff is known only through tools such as web search.
- Limited context: Very long inputs are sometimes evaluated less well. The 2023 study “Lost in the Middle” found that models use information from the middle of long inputs less well than information at the start or end.
- Bias: The model mirrors its training data.
- Unreliable self-reports: What a model says about itself or its abilities is also predicted text.
Two prompts show the difference for hallucination, again as an illustration.
The model may return invented titles and links that look real.
The sources are in the context, so the model can point to them. Spot checks are still worthwhile.
Give the model the material instead of letting it work from memory, and check every number, quote and source you reuse. That is the most useful rule of thumb. For causes and kinds of hallucination, see the 2022 survey in the sources.
8. How to use LLMs
- Chat: The simplest route through ChatGPT, Claude, Gemini and others. Good prompts make the biggest difference.
- API: Developers build the model into their own software and pay per token.
- RAG: Retrieval-augmented generation fetches matching documents from a knowledge base before answering and places them in the context window. The model then answers from your data instead of from memory.
- Agents: The model calls tools, reads files and works through several steps on its own.
- Local: Small open models run on your own computer, so no data leaves the device.
In everyday life you meet LLMs mostly in these tasks. The instructions are examples:
- Example instruction
- “Summarize this email in two sentences.”
- What to check
- Check figures and names against the original
- Example instruction
- “Make this paragraph friendlier without changing the content.”
- What to check
- Is the tone right, are the facts unchanged?
- Example instruction
- “Translate this into German for a business contact.”
- What to check
- Check technical terms and the form of address
- Example instruction
- “Draft a reply to this complaint and offer a refund.”
- What to check
- Treat it as a draft, never send it unchecked
- Example instruction
- “Explain the difference between gross and net with an example.”
- What to check
- For tax, legal and health questions only as orientation
- Example instruction
- “Explain what this function does and suggest tests.”
- What to check
- Run and test it
- Example instruction
- “Which three complaints appear most often in this email list?”
- What to check
- Spot-check against the data
9. What LLMs cost
Chatbots come as a free version and as subscriptions. Through the API you pay per million tokens, separately for input and output, and output tokens usually cost more. Prices vary widely by model, and reasoning models add thinking tokens. Current prices are in the LLM price index, and you can run your own numbers with the API cost calculator.
How big the gap gets is shown by the table at the start of this entry. For a plain summary, a cheaper model is often enough.
10. Which LLM fits you?
- To get started, a chatbot subscription or the free version from a large provider is enough.
- For code, research or long documents, look at the benchmarks in the LLM comparison.
- For many simple API requests, cheap small models are often enough.
- For confidential data, check privacy and hosting, or run an open model locally.
11. Well-known LLMs at a glance
The table lists models with their parameter counts, filterable by developer, size and model type. Many providers do not publish the size of their current models, so those rows read “Unknown”. Current prices and benchmarks are in the model directory.
Moonshot describes the model as 3T-class. The model card on Hugging Face lists 2.8 trillion total and 104 billion active parameters. The weights are available under the own Kimi K3.1 Pro License, which attaches conditions to some commercial use.
2.8T total, 104B active, 896 experts with 16 active experts per token, KDA hybrid linear attention, native vision, and a 1,048,576-token context window. Model weights are published.
The Qwen3.8-Max-0902 snapshot released September 2, 2026 improves coding, long-horizon autonomous development, agent collaboration, and visual analysis. Alibaba describes Qwen3.8-Max as a 2.4T-parameter MoE model. Its documentation does not publish an active parameter count for the 0902 snapshot and confirms a 1M-token context window.
Anthropic
Analyst estimate: ~2T parameters
Announced but not yet released; 16 experts, ~2T total
Leaked: 8x220B experts MoE, ~1.76T total parameters
1.6T total, 49B active, 1M context, CSA+HCA attention, MIT-licensed
Open-weights MoE with 1.6T total parameters, about 48B active parameters, and a 1M-token context window.
API preview. Weights are announced for the end of October 2026. The launch post and the model page both list 52 billion active parameters. Mistral advertises 1M tokens of context; OpenRouter documents 524,288 tokens.
1T total, 32B active, 384 experts (8 routed + 1 shared), 262K context, native INT4, Modified MIT
1T total, 32B active, 256K context, thinking always enabled
Sparse MoE (~1T total), 262K context, integrated thinking mode, API-only
* Estimate, not confirmed by the developer
