{"uid":"cap_XajO7G4UNu_qyMl_r_Z_f","slug":"agentdiet-semantic-distillation-d3708713","name":"AgentDiet Semantic Distillation","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/distill?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SLU8QXLY9BXTIgP2Mb6xt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Strips 85-97% of HTML token bloat from a URL's content, returning semantically distilled text optimized for AI context windows","exampleAgentPrompt":"Fetch the content at https://en.wikipedia.org/wiki/Large_language_model and distill it — strip all the HTML bloat so I can fit the key information into my context window without wasting tokens.","exampleUseCases":[{"title":"RAG pipeline web page ingestion","prompt":"Pull the article at https://techcrunch.com/2025/01/15/openai-news/ and distill it down to just the meaningful semantic content — I need to embed it without all the HTML junk inflating my token count."},{"title":"AI agent web research summarization","prompt":"I'm building an agent that researches competitors. Can you use AgentDiet to fetch https://www.anthropic.com/product and strip it down to the core content so I can pass it to Claude without hitting context limits?"},{"title":"LLM-ready document extraction from a web source","prompt":"Grab the content from https://docs.python.org/3/library/asyncio.html and distill it — I want just the semantic text with the HTML token bloat removed so I can use it in my prompt."}],"resultDescription":"A JSON response containing the distilled semantic content of the requested URL, a status field ('ok'), and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved — confirming how much token bloat was removed.","failureModes":["Invalid or unreachable URL returns an error status","Paywalled or JavaScript-rendered pages may yield incomplete distillation","Rate limiting or payment failure (x402) if USDC payment not properly handled","Unsupported content types (binary files, PDFs) may not distill correctly","Very short pages may show low compression ratios with minimal benefit"],"whenToPreferThis":"Choose this endpoint when you need to fetch a web URL and reduce its token footprint by 85-97% before feeding content into an LLM, RAG pipeline, or AI agent context window. It is particularly valuable when working with HTML-heavy pages where boilerplate navigation, scripts, and ads dominate raw content. Prefer this over generic web scrapers when token efficiency is the primary concern and you want a semantic signal rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:45.131Z","isFirstParty":false,"canonicalSlug":"agentdiet-semantic-distillation-d3708713"}