# x402 AI Text Summarizer

> x402 AI Text Summarizer is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.0085/call, status unknown (last checked 2026-11-20).

Summarizes a block of text into a configurable number of sentences using an AI language model, billed per-call via x402/USDC on Base.

## Facts

- Endpoint: POST https://x402.donnyautomation.com/ai/summarize?utm_source=zero.xyz
- Price: $0.0085/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-text-summarizer-1c35ba50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ksAx1c6sTzNsXS8fjkuwb

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-ai-text-summarizer-1c35ba50 -d '<json body>'
```

Example prompt: Can you summarize the following article into 4 sentences? [paste article text here]

## When to prefer this

Choose this endpoint when you need fast, cheap, single-call AI text summarization billed micropayment-style per use (no subscription), especially in automated agent pipelines on Base/USDC where x402 payment is already wired in. It is distinct from general LLM APIs because payment is atomic and per-call, requiring no API key management — ideal for serverless or multi-tenant agent architectures.

## Known failure modes

- Text exceeds 32,000 byte limit — request rejected
- Sentences parameter outside 1–10 range — validation error
- Payment not authorized via x402 — 402 Payment Required response
- Model unavailable or upstream AI provider error — 5xx error
- Empty text input — may return an empty or error response

## How this service works

Pay-per-call (x402/USDC on Base) endpoints: SEC EDGAR filings, US Treasury yield curve, Federal Register documents, Stablecoin supply, Entity and compliance lookups, Agent utilities, x402 seller checks and agent demand index, AI text tools.

## Output

A JSON object containing a plain-text AI-generated summary of the input, the model name used (e.g. claude-haiku-5-5), token counts for input and output, a boolean indicating if the max token limit was hit, and a notice that the output is AI-generated and factual assertions should not be relied upon.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 32000,
   "description": "The text to summarize, at most 32,000 bytes."
  },
  "sentences": {
   "type": "integer",
   "maximum": 10,
   "minimum": 1,
   "description": "Sentences in the summary, default 3."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "claude-haiku-5-5",
  "notice": "Generated by an AI model; factual assertions in this output should not be relied upon.",
  "summary": "The council voted 7 to 2 to keep the library open until 9 PM on weekdays from March.",
  "input_tokens": 180,
  "maxTokensHit": false,
  "output_tokens": 24
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-text-summarizer-1c35ba50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
