Hallucination
When a model states something false with confidence, such as invented facts, citations, APIs or numbers.
Why it matters. Verify claims that matter, and prefer models that say 'I don't know' over ones that guess.
How it works
A hallucination is output stated with confidence that is false or unsupported: invented facts, citations, quotes, function names, API parameters or numbers. It happens because models generate plausible text rather than looking facts up.
Rates vary by model, task and domain, and makers measure them with different tests, so figures from different reports are hard to compare. Hallucinations are more likely on obscure topics, events after the knowledge cutoff, exact numbers and long sources the model must summarize. Some models are trained to say they don't know more often.
Give the model the source material and ask it to quote or cite it, use tools for lookups, and verify anything high-stakes. In code, rely on tests and type checks rather than trusting that an API exists.
Worked example
Illustrative: asked to load a config file with a less common library, a model writes load_config(path, strict=True). The function exists but has no 'strict' parameter, so the code fails at runtime; a test or a look at the docs catches it.
Common mistakes
- Trusting citations or links without opening them.
- Asking for a summary of a document the model was never actually given.
- Treating fluent, detailed answers as more likely to be correct.
Across the catalog today
Models whose card flags hallucination
- Claude Haiku 5.5Hallucinates more than larger modelsMedium
- Claude Sonnet 5.5Hallucinates more than Opus 5.5Medium
- Claude Opus 5Overconfident claims and fabricated dataHigh
- Claude Sonnet 5Abstains a lot, still hallucinatesMedium
- Claude Sonnet 4.6Over-eager actions in GUI computer useHigh
- gpt-oss-20bHallucinates factsHigh
Limitations each maker states in its own system or model card.
See it on a real card: Limitations on Claude Opus 5.5.
Related terms
- Basics05
Knowledge cutoff
The date the model's training data stops
Explained - Evaluation60
Benchmark
A standard test used to score models
Explained - Capabilities20
Structured outputs
Replies constrained to match a JSON schema
Explained - Capabilities19
Tool use
Letting the model call your functions
Explained - Basics04
Temperature
How random or predictable the output is
Explained