# Text Summarizer API

> Text Summarizer API is a paid API for AI agents from golf-evm-math.x402-evm-math.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Summarizes long text into a faithful short summary using Llama 3.1 8B, with a configurable maximum word count.

## Facts

- Endpoint: POST https://golf-evm-math.x402-evm-math.workers.dev/ai/summarize?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-summarizer-api-8fa08671
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0BMn2wwBXy6GMq28j4Fun

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

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

## When to prefer this

Choose this endpoint when you need a fast, low-cost text summarization with a word-count constraint and don't want to manage your own LLM inference. Ideal for agents processing documents, filings, or articles where a faithful condensed version is needed. The Llama 3.1 8B model offers good quality for general summarization at $0.005 per call — significantly cheaper than GPT-4-class APIs for bulk summarization tasks.

## Known failure modes

- Missing or empty 'input' body returns a validation error
- Text too long for context window may be truncated or error
- max_words not respected precisely — model may slightly exceed the limit
- No internet access for real-time content; raw text must be provided
- Model hallucination risk on ambiguous or complex source text
- Payment failure (402) if USDC balance is insufficient

## How this service works

Exact EVM address, calldata, Uniswap V2/V3 and impermanent-loss math. Pay per call in USDC on Base via x402.

## Output

A JSON object containing a 'summary' field with a concise, faithful plain-text summary of the input text, constrained to the requested maximum word count. The summary preserves the key meaning and facts from the original content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "summary": "Uniswap V3 lets LPs concentrate liquidity in ranges for higher fees but more risk."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-summarizer-api-8fa08671/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from golf-evm-math.x402-evm-math.workers.dev](https://www.zero.xyz/host/golf-evm-math.x402-evm-math.workers.dev/llms.txt)
