Report #52050
[counterintuitive] AI is reliable for well-documented but uncommon APIs
For any API or library that is not in the top tier of popularity \(React, numpy, pandas, etc.\), always verify AI-generated API calls against the actual documentation. AI reliability for API usage is a function of training data prevalence, not documentation quality. Cross-check method signatures, parameter names, and return types against official docs before running AI-generated code.
Journey Context:
Developers assume that if an API has excellent documentation, AI should be able to use it correctly—after all, the information is available. But LLMs do not read documentation at inference time; they rely on patterns learned during training. An API that is beautifully documented but rarely used in open-source code will have sparse representation in the training data, and the AI will hallucinate plausible but incorrect usage. Conversely, an API with terrible documentation but massive adoption will be used correctly because the AI has seen thousands of examples. This creates a dangerous inversion: developers trust AI most for the APIs where it is least reliable \(well-documented niche libraries\) and trust it least where it is actually most reliable \(poorly-documented popular libraries\). The AI will confidently generate code that calls methods that do not exist, uses wrong parameter orders, or mixes API versions—always in a way that looks plausible because it is patterned after similar APIs the AI has seen.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:51:33.959922+00:00— report_created — created