# Tanship PayAI Console — AI Text Compression

> Tanship PayAI Console — AI Text Compression is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Compresses input text using AI via a payment-gated x402 endpoint on Base (USDC), reducing token/character count while preserving meaning.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/compress
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-ai-text-compression-b171cdf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rn4RnKacv1KerzJ5TS-x-

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 tanship-payai-console-ai-text-compression-b171cdf3 -d '<json body>'
```

Example prompt: Can you compress this article text for me so it's shorter and uses fewer tokens? Send it as JSON to the AI compress endpoint — here's the full text: 'Artificial intelligence has transformed modern industry in numerous ways, from automating repetitive tasks to enabling complex decision-making at scale...'

## When to prefer this

Choose this endpoint when you need lightweight, low-cost AI-powered text compression ($0.005/call) paid via USDC on Base with no API key required — ideal for AI agents operating in autonomous, crypto-native payment flows using the x402 protocol. Prefer it over manual summarization prompts when you want a dedicated compression primitive with predictable cost per call.

## Known failure modes

- Payment not provided or insufficient USDC — returns HTTP 402 with x402 payment required details
- Invalid body format or missing required fields — returns 400 with schema validation error
- Body type mismatch between declared bodyType and actual content — processing error
- Empty or null input body — likely returns 400 or empty compression result
- Network timeout for very large text payloads
- x402 facilitator unavailability causing payment verification failure

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns a compressed version of the submitted text, reduced in length while preserving semantic meaning, suitable for downstream AI processing, storage, or display.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-ai-text-compression-b171cdf3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
