{"uid":"cap_AWo-fj56zJOWK7K_jV4Y2","slug":"agentdiet-rag-diet-context-window-distiller-1098d2f8","name":"AgentDiet RAG Diet Context Window Distiller","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/paid?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_1Ap5_JNKCZxwvIQtnGyj0","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":"Compresses and distills AI context windows or web content via a paid endpoint, reducing token usage by up to 91% while preserving semantic meaning.","exampleAgentPrompt":"Can you use AgentDiet to compress the content at https://example.com/longdoc so it fits in my context window? Use GET mode to fetch and distill it.","exampleUseCases":[{"title":"RAG pipeline token cost reduction","prompt":"I'm running a RAG pipeline and my documents are way too long for my LLM's context window — can you run them through AgentDiet to compress them down and show me the compression ratio I'm getting?"},{"title":"Agent web research de-bloating","prompt":"Before you pass that article at https://techcrunch.com/2024/05/01/ai-news to my reasoning agent, can you distill it with AgentDiet so we're not wasting tokens on boilerplate?"},{"title":"Multi-agent context budget management","prompt":"My agent fleet is burning too many tokens on raw context — can you use the AgentDiet distiller to compress each URL I give you before it goes into the shared context window?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled content, a 'status' field ('ok' on success), and a 'roi_proof' object that includes a 'compression_ratio_pct' value (e.g. 91.4%) showing how much the content was reduced.","failureModes":["Missing or invalid 'url' query parameter returns an error or empty data","Invalid HTTP method (not GET or POST) rejected by schema","Unreachable or malformed target URL causes fetch failure","Payment not settled in USDC on Base leads to 402 response blocking access","Rate limiting or quota exhaustion if too many calls are made rapidly"],"whenToPreferThis":"Choose this endpoint when you need to deterministically compress or distill web content or documents before passing them to an LLM, especially in cost-sensitive RAG or multi-agent pipelines where token budget is a constraint. It is particularly useful when you need a measurable compression ratio (roi_proof) and are operating in a B2A/A2A context with x402/USDC micropayment support on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:29.393Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-context-window-distiller-1098d2f8"}