# x402 Text Summarizer

> x402 Text Summarizer is a paid API for AI agents from web-production-78e17.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Compresses text, Markdown, or JSON into a structured summary (prose, bullets, headline, or TL;DR) using Claude AI, paid via x402 USDC micropayment.

## Facts

- Endpoint: POST https://web-production-78e17.up.railway.app/v1/summarize?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-text-summarizer-8e60a095
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uxHnZRQAl0yJq5oRNvUrD

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 x402-text-summarizer-8e60a095 -d '<json body>'
```

Example prompt: Summarize this markdown document into bullet-point format with a medium level of detail, and let me know what was omitted: [paste markdown here]

## When to prefer this

Choose this endpoint when you need to compress large text, Markdown, or JSON into a concise summary with a specific format (prose, bullets, headline, TL;DR) and optional word-count control, and are willing to pay a $0.005 USDC micropayment per call. Prefer this over free alternatives when you need Claude-quality summarization, structured output metadata (word count, compression ratio), or support for Markdown and JSON input types beyond plain prose.

## Known failure modes

- Input exceeds 100KB limit — request rejected
- Payment not provided or insufficient USDC — 402 Payment Required response
- Invalid format or length enum value — validation error
- target_words out of range (must be 1–500) — validation error
- Claude AI backend unavailable — upstream error
- Malformed JSON input when input_type=json — parsing error

## How this service works

Summarize and compress text, Markdown, or JSON into a structured summary. Output as prose, bullets, headline, or TLDR, with optional exact target word count. Built for agent and document pipelines.

## Output

Returns a JSON object with a 'summary' string in the requested format, the word count, compression ratio, the Claude model used, the format and length preset applied, and optional 'notes' explaining what content was omitted if explain=true was set.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Text, Markdown, or JSON string to summarize. Max 100KB."
  },
  "format": {
   "enum": [
    "prose",
    "bullets",
    "headline",
    "tldr"
   ],
   "type": "string",
   "description": "Output format. Default: prose"
  },
  "length": {
   "enum": [
    "brief",
    "medium",
    "detailed"
   ],
   "type": "string",
   "description": "Length preset. Ignored when target_words is set. Default: medium"
  },
  "explain": {
   "type": "boolean",
   "description": "Include notes on what was omitted. Default: false"
  },
  "input_type": {
   "enum": [
    "text",
    "markdown",
    "json"
   ],
   "type": "string",
   "description": "How to interpret the input. Default: text"
  },
  "target_words": {
   "type": "integer",
   "maximum": 500,
   "minimum": 1,
   "description": "Exact target word count (1–500). Overrides length preset."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "model": "claude-haiku-4-5-20251001",
   "format": "headline",
   "input_length": 124,
   "target_words": null,
   "length_preset": "brief"
  },
  "notes": null,
  "format": "headline",
  "summary": "FastAPI: high-performance Python web framework using type hints.",
  "word_count": 8,
  "compression_ratio": 2.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-text-summarizer-8e60a095/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-78e17.up.railway.app](https://www.zero.xyz/host/web-production-78e17.up.railway.app/llms.txt)
