# TokenSqueezer Text Compressor

> TokenSqueezer Text Compressor is a paid API for AI agents from tokensqueezer-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Compresses and densifies text by stripping filler, collapsing JSON, and removing redundancy to reduce LLM token consumption

## Facts

- Endpoint: POST https://tokensqueezer-production.up.railway.app/compress?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensqueezer-text-compressor-4cd3f16c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W5w2jH0wtg0QzXlJ6FDBG

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 tokensqueezer-text-compressor-4cd3f16c -d '<json body>'
```

Example prompt: Can you squeeze this blog post down to use fewer tokens before I send it to GPT-4? Use aggressive mode and treat it as plain text.

## When to prefer this

Choose this endpoint when you need to reduce token spend before sending text to an expensive LLM API, especially in high-throughput agentic pipelines where every token counts. Ideal when the input is verbose, repetitive, or filler-heavy prose or JSON. Not a substitute for semantic summarization — use this when you want to preserve all key information but in a denser form, rather than losing content through summarization.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Unsupported format value outside enum returns a 400-style error
- Extremely large text payloads may hit size limits or timeout
- Aggressive mode on highly structured data may distort meaning
- Network errors from Railway.app hosting causing intermittent 502/503 responses

## How this service works

High-throughput text optimizer for agent data streams. Strips filler, collapses JSON, and densifies repetitive prose to cut upstream LLM token spend.

## Output

Returns a compressed version of the input text with filler removed, repetition collapsed, and overall token footprint reduced. The output preserves the essential meaning while minimizing character and token count, suitable for direct use as input to a downstream LLM.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Raw text block to compress"
  },
  "format": {
   "enum": [
    "auto",
    "plain",
    "markdown",
    "json"
   ],
   "type": "string"
  },
  "aggressive": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensqueezer-text-compressor-4cd3f16c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tokensqueezer-production.up.railway.app](https://www.zero.xyz/host/tokensqueezer-production.up.railway.app/llms.txt)
