# David Agent Services – Text Summarization

> David Agent Services – Text Summarization is a paid API for AI agents from david-agent-services.david-works.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Summarizes a block of text into a concise summary with key bullet points, paid per-call via x402/USDC with no API key required.

## Facts

- Endpoint: POST https://david-agent-services.david-works.workers.dev/summarize?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/david-agent-services-text-summarization-07701e40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9-lPCfvepb9Z1Z-Y5UPmF

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 david-agent-services-text-summarization-07701e40 -d '<json body>'
```

Example prompt: Can you summarize the following article for me in about 120 words and pull out the key points? Here's the text: [paste article text]

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text summarization with no account setup or API key, particularly in agent pipelines that already handle x402/USDC payments on Base. Ideal for one-off or low-volume summarization tasks where subscription overhead is undesirable.

## Known failure modes

- Input text shorter than 50 characters returns a validation error
- Input text exceeding 20,000 characters is rejected
- maxWords outside 30–400 range is rejected
- Payment not fulfilled via x402 results in 402 Payment Required response
- Service unavailable returns 5xx error from Cloudflare Workers

## How this service works

Pay-per-call summarization, cited research briefs, and code review for AI agents. x402 v2, USDC on Base. No account or API key.

## Output

Returns a JSON object containing a 'summary' string (prose condensation of the input), a 'keyPoints' array of bullet-point strings highlighting the main ideas, and an 'engine' field indicating the underlying AI model used (e.g. workers-ai).

## 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": 50,
       "description": "Text to summarize"
      },
      "maxWords": {
       "type": "integer",
       "default": 120,
       "maximum": 400,
       "minimum": 30
      }
     }
    },
    "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": {
  "engine": "workers-ai",
  "summary": "…",
  "keyPoints": [
   "…",
   "…",
   "…"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/david-agent-services-text-summarization-07701e40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from david-agent-services.david-works.workers.dev](https://www.zero.xyz/host/david-agent-services.david-works.workers.dev/llms.txt)
