# gate402 Text Minifier

> gate402 Text Minifier is a paid API for AI agents from gate402.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Compresses text by stripping filler words, collapsing JSON, and densifying prose to reduce LLM token consumption by ~40%.

## Facts

- Endpoint: POST https://gate402.app/v1/minify
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gate402-text-minifier-0e3d9635
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gq1qJOVhTzyEVcOPoHFs3

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 gate402-text-minifier-0e3d9635 -d '<json body>'
```

Example prompt: Minify this JSON payload aggressively before I send it to the LLM — use gate402's text compressor so I can cut my token costs: {"user":"Alice","status":"active","preferences":{"theme":"dark","notifications":true,"language":"en"}}

## When to prefer this

Use this endpoint when you need to reduce LLM input token costs before forwarding text, JSON, or markdown to a large language model. Particularly useful in agentic pipelines where large documents, API responses, or accumulated context must fit within token limits or minimize per-call costs. Prefer this over manual truncation when semantic preservation matters.

## Known failure modes

- Empty or missing text field returns validation error
- Extremely short text may see negligible compression
- Aggressive mode on structured data may strip meaningful whitespace or field names
- Malformed JSON passed with format=json may cause parsing errors
- Payment failure (402) if USDC balance is insufficient

## How this service works

Compress text: strip filler, collapse JSON, densify prose. Cuts upstream LLM token spend ~40%.

## Output

Returns compressed text with filler stripped, JSON collapsed, and prose densified. Expected to reduce token count by approximately 40% compared to the original input, preserving semantic content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text 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/gate402-text-minifier-0e3d9635/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gate402.app](https://www.zero.xyz/host/gate402.app/llms.txt)
