# pagos.andreax.dev Prompt Compressor

> pagos.andreax.dev Prompt Compressor is a paid API for AI agents from pagos.andreax.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Compresses a text prompt into a denser, lower-token equivalent, typically achieving 20-40% token savings without significant loss of meaning.

## Facts

- Endpoint: GET https://pagos.andreax.dev/api/taller/peaje/comprimir
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagos-andreax-dev-prompt-compressor-ec67002e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kedkgHA8ylNGmoBXnl5lE

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 pagos-andreax-dev-prompt-compressor-ec67002e
```

Example prompt: Before you send this prompt to GPT, compress it to use fewer tokens — here's the text: 'You are a helpful assistant that specializes in customer support. Always respond politely and concisely. If you do not know the answer, say so clearly and offer to escalate to a human agent.'

## When to prefer this

Choose this endpoint when you need to reduce token costs before calling any LLM and want a simple, cheap preprocessing step. Ideal for high-volume pipelines, long system prompts, or RAG context injection where token budgets matter. Prefer this over manually editing prompts when automation and cost control are priorities.

## Known failure modes

- Missing required 'input' query parameter returns an error
- Very short inputs may yield little or no compression
- Highly structured or code-heavy inputs may compress poorly
- Network or payment (x402) authorization failures return 402 or 5xx errors
- Malformed GET request may result in 400 bad request

## How this service works

Comprime un prompt a lenguaje denso y devuelve la versión con menos tokens (ahorro típico 20-40%). Úsalo ANTES de enviar prompts a cualquier LLM para bajar el costo de tokens sin perder significado. input=texto a comprimir.

## Output

Returns a compressed version of the input text, semantically equivalent but with fewer tokens — typically 20-40% shorter — suitable for direct use as a prompt or context in any LLM API call.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Texto/prompt a comprimir"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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