LAPIS: Lightweight API Specification for Intelligent Systems A Token-Efficient API Description Format for LLM Context Windows
Daniel García García · 2026
Read LAPIS: Lightweight API Specification for Intelligent Systems A Token-Efficient API Description Format for LLM Context Windows by Daniel García García (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-18541.txt.
Description
Daniel Garcia proposes a slimmer API format for language models. His 2026 paper notes large language models increasingly consume API specifications for code generation, agent interaction, or API-assisted reasoning. OpenAPI, the de facto standard, was designed for documentation tools and generators, resulting in heavy token overhead for LLMs.
Garcia presents LAPIS, a format built for LLMs. It preserves the semantic information needed for API reasoning. Tests against five production API specifications: GitHub, Twilio, DigitalOcean, Petstore, and HTTPBin, show average token reductions of eighty-five point five percent versus OpenAPI YAML and eighty-eight point six percent versus OpenAPI JSON. Measurements use cl100k_base. LAPIS adds structural innovations: central error definitions, webhook triggers, structured rate limit notes, and operation flow notes, information OpenAPI duplicates or cannot represent at all. The format converts fully from OpenAPI 3.x via a converter and is published as an open specification under CC BY 4.0.
Catalog record
| CREATOR | Daniel García García |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 26 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2602-18541