# x402-gateway Text Summarizer

> x402-gateway Text Summarizer is a paid API for AI agents from x402-gateway.blackwoodstate8.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-22).

Summarizes plain text (articles, notes, transcripts) into a short paragraph and key bullet points using IBM Granite 4.0 Micro via Workers AI, for 0.008 USDC per call.

## Facts

- Endpoint: POST https://x402-gateway.blackwoodstate8.workers.dev/v1/summarize?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-text-summarizer-b2dbabfa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__lr0zm6AcN8GsfyRv3PK_

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 x402-gateway-text-summarizer-b2dbabfa -d '<json body>'
```

Example prompt: Can you summarize this article text into a short paragraph and 5 bullet points? Here's the text: [paste of article up to 20,000 characters]

## When to prefer this

Choose this endpoint when you have plain text (articles, notes, transcripts) that needs to be condensed into a paragraph and bullet points, especially when you need multilingual summaries or configurable bullet counts. Prefer this over general-purpose LLM calls when you need a metered, cost-predictable summarization at $0.008/call with a guaranteed structured JSON response. Not suitable for URLs or PDFs — extract the text first using a web scraper or PDF parser.

## Known failure modes

- Text shorter than 80 characters is rejected with a validation error
- Text exceeding 20,000 characters is rejected
- Non-plain-text input (URLs, PDFs) will produce poor or nonsensical summaries — caller must extract text first
- Model timeout may occur for very long inputs near the 20,000 character limit (~8 second p95 latency)
- Payment failure or insufficient USDC balance will block the call
- Unsupported or misspelled language codes may cause the language parameter to be ignored

## How this service works

Use when you need to summarize text such as an article, notes or a transcript into a short summary. Do not use for uRLs or PDFs (extract the text first), exact quotes or citations. Returns JSON with a concise summary of the plain text you send (up to 20,000 characters): one short paragraph and key bullet points, written by IBM Granite 4.0 Micro on Workers AI for 0.008 USDC per call. Typical response time 8000 ms (p95). Category: Inference.

## Output

Returns a JSON object containing a concise summary paragraph, an array of key bullet points (up to the requested maximum), the model name used (IBM Granite 4.0 Micro), the number of input characters processed, token usage stats, and an optional suggested next-call hint for chaining workflows.

## 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": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 20000,
       "minLength": 80,
       "description": "Plain text to summarize, e.g. an article or a transcript (80 to 20,000 characters)"
      },
      "language": {
       "type": "string",
       "maxLength": 30,
       "minLength": 2,
       "description": "Language for the summary, e.g. English or Portuguese (default: the language of the text)"
      },
      "maxBullets": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Most bullet points to return (1-10, default 5)"
      }
     }
    },
    "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",
     "required": [
      "summary",
      "bullets",
      "model",
      "inputChars",
      "usage"
     ],
     "properties": {
      "next": {
       "type": "object",
       "required": [
        "service",
        "tool",
        "method",
        "url",
        "useWhen",
        "sample"
       ],
       "properties": {
        "url": {
         "type": "string",
         "description": "Paid route of the next call"
        },
        "tool": {
         "type": "string",
         "description": "MCP tool name of the same call"
        },
        "method": {
         "enum": [
          "GET",
          "POST"
         ],
         "type": "string"
        },
        "sample": {
         "type": "string",
         "description": "Free fixed sample of the whole family"
        },
        "service": {
         "type": "string",
         "description": "Service id of the suggested next paid call"
        },
        "useWhen": {
         "type": "string",
         "description": "When the next call is the right one"
        }
       },
       "de
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/ibm-granite/granite-4.0-h-micro",
  "usage": {
   "promptTokens": 200,
   "completionTokens": 173
  },
  "bullets": [
   "x402 protocol replaces HTTP 402 Payment Required with a functional payment step",
   "Server sends 402 with machine-readable terms (price, network, asset, receiving address) to the client",
   "AI agent signs USDC authorization, facilitator verifies and processes payment on-chain"
  ],
  "summary": "The x402 protocol updates the outdated HTTP 402 Payment Required status to enable a functional payment process. When a client requests a paid resource, the server responds with 402, including machine-readable details like price, network, asset, and the receiving address. The client, typically an AI agent, signs a USDC authorization and resubmits the request. A facilitator verifies the signature, processes the payment on-chain, and the server delivers the data. Sellers never manage cards or accounts, and buyers only pay for the actual calls they make.",
  "inputChars": 518
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-text-summarizer-b2dbabfa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway.blackwoodstate8.workers.dev](https://www.zero.xyz/host/x402-gateway.blackwoodstate8.workers.dev/llms.txt)
