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

CREATORDaniel García García
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE26 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2602-18541

Browse the full library · About the Tower of Babel