# fastapi.online Text Summarization

> fastapi.online Text Summarization is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Summarizes a block of text into a concise summary, with optional word count control, for $0.002 USDC per call.

## Facts

- Endpoint: POST https://api.fastapi.online/summarize
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-text-summarization-b003e758
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8FxIJMbB9JA6MZI0NsaZn

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 fastapi-online-text-summarization-b003e758 -d '<json body>'
```

Example prompt: Can you summarize the following article in no more than 100 words? [paste article text]

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text summarization API with no signup required, paying in crypto (USDC). Ideal for agents that need occasional summarization without committing to a subscription, or when integrating into a crypto-native payment workflow via x402. Best for single-document summarization with optional length control.

## Known failure modes

- Missing required 'text' field returns a validation error
- Very short or empty text may yield a trivial or empty summary
- Extremely long text may hit server-side limits or timeout
- Payment failure (x402) if insufficient USDC balance or wallet not configured
- Rate limiting if too many calls are made in quick succession

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A JSON object containing a 'summary' field with the condensed text of the input. The summary length can be bounded by the optional max_words parameter. Additional properties may be present in the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1
  },
  "max_words": {
   "type": "integer",
   "maximum": 500,
   "minimum": 5
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-text-summarization-b003e758/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
