◇ BenchmarkLanguages
Node.js fs module: 60.6% fewer tokens.
One of the longest single pages in the Node.js API reference. Read through the Lyrenth index, the page becomes one clean AIDocument of 102,372 tokens instead of 259,563 tokens of raw HTML: 2.5x smaller for every agent that reads it. Numbers straight from the API's economics block, measured 2026-07-05.
Raw HTML · 259,563 tokens
AIDocument · 102,372 tokens
| Cost to ingest raw HTML | $0.779 |
| Cost to ingest the AIDocument | $0.307 |
| Saved, per read, per agent | $0.472 |
Basis: $3.00 per 1M input tokens (Claude Sonnet / GPT-4 Turbo class), as reported in the API's economics block. Source page: https://nodejs.org/api/fs.html
Reproduce it
One call, same numbers.
Every AIDocument response carries its own economics block, so this benchmark reproduces itself:
curl -X POST https://api.lyrenth.com/v1/aidocument \
-H "Authorization: Bearer $LYRENTH_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://nodejs.org/api/fs.html"}'