{"uid":"cap_9UiImFrafW6DSXiP1wGMp","slug":"agentdiet-rag-diet-context-distiller-v1-mesh-3c50c770","name":"AgentDiet RAG Diet Context Distiller — /v1/mesh","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/mesh?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":{"query":{"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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qK--dvDliwhPjs05tY38q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 by up to 91% token reduction via a paid mesh endpoint, settling in USDC on Base","exampleAgentPrompt":"Can you use AgentDiet's RAG Diet mesh to compress my current context window — pass it as a GET query so I get back the distilled version with compression stats?","exampleUseCases":[{"title":"Slash LLM costs on long RAG contexts","prompt":"My RAG pipeline keeps hitting token limits and costing a fortune — can you run my retrieved documents through AgentDiet's context distiller to strip them down before I send them to the LLM?"},{"title":"Fit large context into fixed-size window","prompt":"I have a 40,000-token context that won't fit in my model's 16k window — use the AgentDiet mesh endpoint to compress it down so it fits, and show me the compression ratio you got."},{"title":"Pre-process agent memory before inference","prompt":"Before my agent calls the expensive model, compress its accumulated memory context through AgentDiet's distiller so I'm only paying for the essential tokens — use a GET query with the context content."}],"resultDescription":"Returns a JSON object with a `data` field containing the distilled/compressed output, a `status` field ('ok' on success), and an `roi_proof` object showing the compression_ratio_pct achieved (e.g. 91.4%). Payment is settled in USDC on Base via x402/L402 at $0.01 per call.","failureModes":["Missing or malformed `input` object returns validation error","Missing required `type` or `method` fields causes schema rejection","Payment not settled in USDC on Base results in 402 Payment Required","Query param `query` absent may return empty or error data","Network or mesh node unavailability returns non-200 status","Oversized context input may exceed processing limits"],"whenToPreferThis":"Choose this endpoint when your AI agent pipeline needs to reduce context window size before expensive LLM calls, particularly in RAG workflows where retrieved chunks are verbose. It is especially useful when you need deterministic, pay-per-call compression (via x402/L402 micropayments in USDC on Base) without managing a self-hosted compression service. Prefer it over manual prompt trimming when you need a measurable compression ratio proof and repeatable results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:28.034Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-context-distiller-v1-mesh-3c50c770"}