# AgentDiet Prompt Compress

> AgentDiet Prompt Compress is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Compresses and distills AI prompt/context window content to reduce token count by up to 85-91% while preserving semantic meaning

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/prompt-compress?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-prompt-compress-fd88bbcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_74cMVwEf9d1W8HtD6he7k

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-prompt-compress-fd88bbcd
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

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%).

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-prompt-compress-fd88bbcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
