{"uid":"cap_ya0WG_nH6Q3t4fquE06d7","slug":"agentdiet-dev-agentdiet-web-distiller-40124003","name":"AgentDiet Web Distiller","description":"Distill a URL or raw HTML payload with BM25 budget control (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/paid)","url":"https://agentdiet.dev/paid?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"Target webpage URL to fetch and distill (or builtin://stripe-docs)"},"html":{"type":"string","description":"Optional raw HTML string to distill directly without fetching"},"mode":{"enum":["markdown","structured","skeleton","budget"],"type":"string","default":"markdown","description":"Distillation mode"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"max_tokens":{"type":"integer","minimum":20,"description":"Strict token budget ceiling when mode=budget"}}},"responseSchema":{"type":"object","required":["status","roi_proof","data"],"properties":{"data":{"type":"object","description":"Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."},"cache":{"type":"object","properties":{"status":{"enum":["HIT","MISS"],"type":"string"},"cache_key":{"type":"string"},"latency_ms":{"type":"number"}}},"status":{"type":"string","description":"Execution status ('ok')"},"billing":{"type":"object","properties":{"agent_id":{"type":"string"},"payment_method":{"type":"string"},"fee_charged_usd":{"type":"number"}}},"roi_proof":{"type":"object","properties":{"raw_tokens":{"type":"integer"},"tokens_saved":{"type":"integer"},"roi_multiplier":{"type":"number"},"distilled_tokens":{"type":"integer"},"llm_cost_saved_usd":{"type":"number"},"compression_ratio_pct":{"type":"number"}}}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.001","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UT1hnUtTN7MZDgKPyuGt-","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agentdiet.dev","brandSlug":"agentdiet-dev-mpp","brandBaseUrl":"https://agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches and distills a web URL or raw HTML into compact, token-efficient agent-ready output using multiple extraction modes including BM25 budget control","exampleAgentPrompt":"Can you fetch https://stripe.com/docs/payments and distill it into markdown, keeping it under 800 tokens and focusing on 'payment intents'?","exampleUseCases":[{"title":"Research digest within token budget","prompt":"Go to https://openai.com/research/gpt-4 and distill the content in budget mode with a query focused on 'context window' and cap the output at 500 tokens — I need to fit it inside my prompt."},{"title":"Structured data extraction from a pricing page","prompt":"Pull https://vercel.com/pricing and extract it in structured mode so I can see the pricing tiers and feature comparisons as clean JSON tables."},{"title":"Quick skeleton outline of a long article","prompt":"Fetch https://en.wikipedia.org/wiki/Large_language_model and give me just the skeleton outline so I can see the section headings before I decide which parts to read."}],"resultDescription":"Returns a JSON object containing distilled content (Markdown, structured tables/metadata, skeleton outline, or BM25-focused excerpt depending on mode), an roi_proof block showing raw token count, distilled token count, tokens saved, compression ratio percentage, and estimated LLM cost saved in USD, plus optional billing and cache metadata.","failureModes":["Invalid or unreachable URL — service cannot fetch the target page","URL returns non-HTML content (PDFs, binary files) — may fail or produce poor distillation","max_tokens set below 20 — rejected by schema validation","BM25 query provided without mode=budget — query may be silently ignored","Payment failure via x402 — endpoint returns 402 and no data","Rate limiting or upstream block on target URL — fetch fails with error status"],"whenToPreferThis":"Choose this endpoint when you need to read a webpage inside an LLM prompt but cannot afford the full raw token count — especially useful when operating under strict context window limits or cost budgets. Prefer it over raw fetch+parse when you want agent-ready Markdown, structured tables, or topic-focused BM25 excerpts without writing your own HTML parser. The built-in ROI proof makes it easy to log compression savings per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:43:19.494Z","isFirstParty":false,"canonicalSlug":"agentdiet-dev-agentdiet-web-distiller-d2effbe3"}