# x402ai Summarize

> x402ai Summarize is a paid API for AI agents from api.x402ai.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-02).

Summarizes a given block of text into a concise summary, billed at $0.02 USDC per call via x402 on Base mainnet.

## Facts

- Endpoint: POST https://api.x402ai.dev/api/summarize?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402ai-summarize-6e81f026
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t0ZDRl85OcCqqXXGS7xIE

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 x402ai-summarize-6e81f026 -d '<json body>'
```

Example prompt: Can you summarize this for me? 'The global semiconductor shortage, which began in 2020 amid pandemic-driven demand spikes and supply chain disruptions, has had cascading effects across industries from automotive to consumer electronics, leading manufacturers to invest billions in new fabrication plants worldwide.'

## When to prefer this

Choose this endpoint when you need a quick, low-cost AI-powered text summarization with per-call micropayment billing via x402 on Base mainnet — ideal for agents that need to summarize arbitrary text on demand without a subscription, or when integrating into crypto-native workflows that already use the x402 payment protocol.

## Known failure modes

- Missing 'input' field returns a 400-level validation error
- Payment not included or insufficient — x402 payment required before inference is performed
- Input text too long may exceed model context limits
- Network or inference backend unavailability returns a 5xx error
- Empty string input may return an empty or minimal summary

## How this service works

Summarize a passage of text into a short, concise summary with no preamble (qwen3.5 2B model). Good for condensing articles, emails, logs or documents before passing them to another agent. POST JSON {"input": string}, up to 3000 characters; returns {summary, model, elapsed_ms}. Typically 5-15 s. Small model: may miss nuance in technical or long text. Text only.

## Output

Returns a JSON object containing a 'summary' field with a concise, AI-generated summary of the provided input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Text to summarize"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "summary"
 ],
 "properties": {
  "summary": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402ai-summarize-6e81f026/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402ai.dev](https://www.zero.xyz/host/api.x402ai.dev/llms.txt)
