Learn Inference for developers and agents
The chapter and section index behind this site is also a small public JSON API: no account, no API key, and no request quota to buy. It is read-only, so the live endpoints below are already safe to try.
Quickstart
List every chapter:
curl https://learn-inference.com/api/v1/chaptersGet one chapter and its sections:
curl https://learn-inference.com/api/v1/chapters/inferenceThe full surface is described machine-readably at /openapi.json (OpenAPI 3.1), with typed request and response schemas an agent can load directly into a function-calling tool definition.
Errors
Every non-2xx response, including an unknown path under /api/ and an unsupported method on a real one, is JSON in the same shape: a stable code, a human-readable message, and usually a hint naming the next call to make.
curl https://learn-inference.com/api/v1/chapters/not-a-real-slug
{
"error": {
"code": "chapter_not_found",
"message": "No chapter matches slug \"not-a-real-slug\".",
"hint": "GET /api/v1/chapters for the list of valid slugs."
}
}Versioning and rate limits
The API is versioned in the URL path (/api/v1/...). A breaking change ships under a new version prefix rather than changing this one in place; this version keeps working for at least 90 days after a new one ships, announced with a Deprecation response header and a Sunset date before removal.
Every response carries RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset headers. Going over the limit returns 429 with a Retry-After header, in the same JSON error shape as above.
Full text
For reading rather than querying, every page is available as Markdown by appending .md to its URL, or by sending Accept: text/markdown. The whole book is one document at /llms-full.txt, indexed at /llms.txt.