{"uid":"cap_AS_IXjscKFPUJV5bIoHJ8","slug":"agentdiet-x402-gateway-ai-context-window-distiller-80ed511c","name":"AgentDiet X402 Gateway — AI Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/x402-gateway?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_Q2NF1eGyri6w3nfyKfVCF","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 agent context windows to reduce token usage by up to 85-91%, paid per-call via x402 in USDC on Base","exampleAgentPrompt":"My agent's context window is getting huge and eating up tokens — can you run it through AgentDiet to compress it down and show me how much token savings I'll get?","exampleUseCases":[{"title":"Trim LLM context before expensive call","prompt":"Before I send this 8,000-token context to GPT-4, run it through AgentDiet and compress it as much as possible — I want to see the compression ratio proof so I know how many tokens I saved."},{"title":"Reduce agent memory for multi-step workflow","prompt":"My A2A workflow is hitting context limits after a few steps — use AgentDiet to distill the accumulated context window down so the next node in the pipeline doesn't overflow."},{"title":"Cut LLM API costs on high-volume agent","prompt":"I'm running hundreds of LLM calls a day and my token costs are way too high — compress each context window with AgentDiet before sending it to the model and tell me the compression ratio I'm getting."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled output, a 'status' field confirming success ('ok'), and an 'roi_proof' object including 'compression_ratio_pct' (e.g. 91.4%) demonstrating how much the context was reduced.","failureModes":["Missing required 'input' field returns validation error","Invalid 'type' value (must be 'http') causes rejection","Invalid HTTP method enum value causes schema error","Payment not settled in USDC on Base results in 402 Payment Required","Empty or malformed query param causes undefined distillation behavior","Service node unavailable returns non-200 status"],"whenToPreferThis":"Choose this endpoint when an AI agent's context window is approaching token limits and you need a fast, deterministic compression step before forwarding to an LLM. Ideal for high-volume agent pipelines where token costs compound across many calls, or multi-step A2A workflows where accumulated context grows unwieldy. Prefer this over manual summarization when you need a verifiable compression ratio proof and deterministic output rather than a probabilistic LLM-generated summary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:36.681Z","isFirstParty":false,"canonicalSlug":"agentdiet-x402-gateway-ai-context-window-distiller-80ed511c"}