{"uid":"cap_74cMVwEf9d1W8HtD6he7k","slug":"agentdiet-prompt-compress-fd88bbcd","name":"AgentDiet Prompt Compress","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/prompt-compress?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_c770O8lnWDHX19fLJhl8D","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 prompt/context window content to reduce token count by up to 85-91% while preserving semantic meaning","exampleAgentPrompt":"Compress the content at this URL using AgentDiet's prompt compressor so it fits in my context window — use GET mode and give me the compression ratio you achieved.","exampleUseCases":[{"title":"Shrink long document for LLM ingestion","prompt":"I need to feed a long research paper URL into my LLM pipeline but it's too many tokens — can you compress it with AgentDiet and tell me the compression ratio I'm getting?"},{"title":"Reduce agent context window overhead","prompt":"My multi-agent workflow is hitting token limits on every step. Can you run this context through AgentDiet's prompt compressor using GET mode to trim it down before passing it to the next agent?"},{"title":"Cut LLM inference costs on web content","prompt":"I want to save money on LLM calls — compress the content from this URL with AgentDiet so I'm only sending the distilled version to GPT-4, and show me how much it shrunk."}],"resultDescription":"Returns a JSON object with 'status' (ok/error), 'data' containing the compressed prompt output, and 'roi_proof' with a 'compression_ratio_pct' field showing the percentage of tokens removed (e.g. 91.4%).","failureModes":["Invalid or inaccessible URL returns error status","Missing required 'input' object returns validation error","Unsupported HTTP method (not GET or POST) rejected","Payment not settled in USDC on Base causes 402 response","Extremely short input may return minimal or no compression gain","Network timeout fetching target URL results in failure"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce token count of fetched web content or prompt text before sending to an LLM, especially in A2A or MCP workflows where context windows are constrained. Particularly useful when paying per token for inference and needing verifiable compression ratios. Prefer this over manual summarization when you want deterministic, measurable compression with proof of ROI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:02.231Z","isFirstParty":false,"canonicalSlug":"agentdiet-prompt-compress-fd88bbcd"}