# SperaxOS OpenRouter Text Summarizer (x402)

> SperaxOS OpenRouter Text Summarizer (x402) is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Summarizes a block of text or a list of headlines using an AI language model selected by the caller, paid per-request via USDC on Base.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/openrouter-summarize?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-openrouter-text-summarizer-x402-9bd7c2a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gS6Li3hBvwZWlscnV0ZBo

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 speraxos-openrouter-text-summarizer-x402-9bd7c2a8 -d '<json body>'
```

Example prompt: Give me a brief summary (under 3 sentences) of the following text using the Mistral 7B model: 'Ethereum gas fees surged to record highs today as on-chain activity spiked following a major DeFi protocol launch, with average transaction costs exceeding $50 for simple transfers.'

## When to prefer this

Choose this endpoint when you need on-demand, pay-per-use text summarization without managing API keys, especially when operating in a DeFi or crypto-native agent context that already handles x402 USDC payments. Prefer it over general-purpose LLM APIs when you want model flexibility (Llama, Gemma, Mistral) with a single unified payment interface and no subscription overhead.

## Known failure modes

- Missing both 'text' and 'headlines' fields returns a 400 validation error
- Payment not provided or insufficient USDC triggers a 402 Payment Required response with x402 payment instructions
- Invalid model enum value results in a 400 bad request
- Provider-side LLM timeout or rate limit may return a 503 or gateway error
- maxTokens too low may result in a truncated or incomplete summary

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a natural-language text summary of the provided input, either as a concise paragraph or a brief (≤3 sentence) digest depending on the requested mode, generated by the selected LLM via OpenRouter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "'brief' asks for under 3 sentences (openrouter only; ignored by groq)"
  },
  "text": {
   "type": "string",
   "description": "Text to summarize. Required unless headlines is a non-empty array."
  },
  "model": {
   "enum": [
    "meta-llama/llama-3.1-8b-instruct:free",
    "meta-llama/llama-3.1-70b-instruct",
    "google/gemma-2-9b-it:free",
    "mistralai/mistral-7b-instruct:free"
   ],
   "type": "string",
   "default": "meta-llama/llama-3.1-8b-instruct:free"
  },
  "variant": {
   "type": "string",
   "description": "Accepted but unused"
  },
  "headlines": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Alternative to text; joined with newlines when text is absent."
  },
  "maxTokens": {
   "type": "integer",
   "default": 512,
   "description": "max_tokens sent to the provider"
  },
  "geoContext": {
   "type": "string",
   "description": "Optional geographic/regional focus added to the system prompt"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-openrouter-text-summarizer-x402-9bd7c2a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
