{"uid":"cap_H8s5rGgNMP7AQAN46pKfX","slug":"agentdiet-llms-documentation-distillation-endpoint-5e32c35b","name":"AgentDiet LLMs Documentation Distillation Endpoint","description":"15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).","url":"https://agentdiet-72343955726.us-central1.run.app/v1/llms-generator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"data":{"mode":"markdown","title":"Example Documentation","content":"# Example Documentation\nClean agent-ready markdown..."},"status":"ok","roi_proof":{"raw_tokens":14200,"tokens_saved":13520,"roi_multiplier":67.6,"distilled_tokens":680,"compression_ratio_pct":95.2}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EutpT05rbMOjUQvP-9NAu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and distills LLM/AI documentation pages into compressed, agent-ready markdown with token savings metrics","exampleAgentPrompt":"Distill the LLMs documentation at https://docs.openai.com/api-reference into clean agent-ready markdown using AgentDiet — I want to see how many tokens it saves and the compression ratio.","exampleUseCases":[{"title":"Compressing AI SDK docs for agent pipeline","prompt":"Can you pull the Anthropic Claude SDK reference page and distill it into compact markdown for me? I want to know how much token overhead we're saving versus reading the raw page."},{"title":"On-demand LLM reference summarization","prompt":"Fetch and compress the LangChain documentation homepage into agent-readable markdown — show me the compression ratio and how many tokens were distilled away."},{"title":"Token-efficient doc retrieval for RAG pipeline","prompt":"I need a distilled, token-efficient version of the Mistral API docs — run it through AgentDiet and give me the ROI multiplier so I can decide whether to cache it."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled markdown content and title, plus an 'roi_proof' object showing raw token count, distilled token count, tokens saved, compression ratio percentage, and ROI multiplier — all designed to demonstrate token efficiency gains for agents consuming documentation.","failureModes":["Target URL unreachable or returns non-200 — distillation fails with error status","Payment (HTTP 402 / x402 USDC) not processed — endpoint returns 402 before serving content","URL points to non-documentation content — output markdown may be low quality or near-empty","Rate limiting or cold-start latency on Cloud Run — response may time out","Malformed or missing URL parameter — endpoint returns error without attempting distillation"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to consume verbose LLM or AI-framework documentation but wants to minimize token usage. Ideal for RAG pipelines, agent toolchains, or any scenario where reading full documentation pages is too costly. Prefer it over raw web scraping when you need structured markdown output with built-in compression metrics and ROI proof. Best suited for developer documentation, API references, and technical guides rather than general web pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:42:52.965Z","isFirstParty":false,"canonicalSlug":"agentdiet-llms-documentation-distillation-endpoint-5e32c35b"}