# x402 Code Agent – Text Summarization

> x402 Code Agent – Text Summarization is a paid API for AI agents from code.mamenesia.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Summarizes text or URL content into a concise output using GLM AI, paid per-request via USDC on Base

## Facts

- Endpoint: POST https://code.mamenesia.com/service/summarize?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-code-agent-text-summarization-85942790
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OAHd-6wS81ceVk0w9iCH9

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-code-agent-text-summarization-85942790 -d '<json body>'
```

Example prompt: Can you summarize this article for me — here's the content: 'Artificial intelligence is transforming industries at an unprecedented pace, with applications ranging from healthcare diagnostics to autonomous vehicles. Researchers warn, however, that without proper oversight...' — I need a short, clear TL;DR.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use text summarization capability without a subscription, especially in Web3 or agent contexts where USDC micropayments via the x402 standard are already supported. It is ideal for one-off summarization tasks in automated pipelines that need verifiable on-chain payment receipts. Prefer alternatives if you need bulk/batch summarization, fine-grained control over summary length/format, or if GLM model output quality is insufficient for your use case.

## Known failure modes

- Payment failure or insufficient USDC balance — request rejected before processing
- Empty or malformed content field — returns an error or empty summary
- URL content inaccessible (paywalled, blocked, or invalid URL) — may return an error or incomplete summary
- GLM model unavailability or upstream timeout — service error returned
- Content exceeds token limit — truncation or error depending on implementation

## How this service works

Pay-per-request AI developer tools in USDC on Base. Generate code, audit smart contracts, review diffs, summarize text, and convert data formats via the x402 payment standard. Powered by glm-5.2.

## Output

Returns a JSON object containing the generated summary text under result.code, the model used (e.g. glm-5.1), token count, the amount paid (0.05 USDC), the on-chain transaction hash (txHash), and the service name ('summarize').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "description": "Text or URL content to summarize"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "paid": "0.05 USDC",
  "result": {
   "code": "// generated output",
   "model": "glm-5.1",
   "tokens": 100
  },
  "txHash": "0x...",
  "service": "summarize"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-code-agent-text-summarization-85942790/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from code.mamenesia.com](https://www.zero.xyz/host/code.mamenesia.com/llms.txt)
