# Agent Extraction API – Text Summarizer

> Agent Extraction API – Text Summarizer is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-11-01).

Summarizes up to 12,000 characters of text into 3–6 bullet points or a single paragraph using a small LLM (Llama 3.1 8B), with optional output language and word count control.

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/summarize?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-extraction-api-text-summarizer-f302366e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HiDfQZYc5kLk4CuF0AXXy

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 agent-extraction-api-text-summarizer-f302366e
```

Example prompt: Can you summarize the following article into 4–5 bullet points, max 120 words, in English: [paste article text here]?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.004/call), facts-only summary of a text block up to 12,000 characters, especially when output language control or bullet-vs-paragraph style selection is needed. Prefer it over larger LLM-based summarizers when cost and latency matter more than nuanced reasoning. Not suitable for documents longer than 12,000 characters or when summarization must cite sources or perform multi-document synthesis.

## Known failure modes

- Input text exceeds 12,000 characters — request rejected or truncated
- max_words value outside 20–250 range — may return error or use default
- LLM inference timeout on Cloudflare Workers AI — returns 5xx error
- Invalid style enum value — may return default or error
- Empty or missing 'text' query parameter — returns 400 bad request
- Non-text or binary input — LLM produces nonsensical output

## How this service works

Invoice-to-JSON, on-chain tools (transaction explainer + payment check, wallet profile, contract ABI, ERC-20 token risk), company contacts and web-to-RAG for AI agents. Pay per call with x402 (USDC on Base). No signup, no API key.

## Output

A JSON object containing the chosen style ('bullets' or 'paragraph') and the generated summary string — e.g. a newline-separated list of bullet points or a concise prose paragraph, derived strictly from the input text.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "lang": {
       "type": "string",
       "description": "optional output language"
      },
      "text": {
       "type": "string",
       "description": "text to summarize (max 12,000 chars)"
      },
      "style": {
       "enum": [
        "bullets",
        "paragraph"
       ],
       "type": "string"
      },
      "max_words": {
       "type": "string",
       "description": "20-250, default 80"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "style": "bullets",
  "summary": "- Q3 revenue $562M, +28% YoY\n- 3,000 new large customers\n- Full-year guidance raised"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-extraction-api-text-summarizer-f302366e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
