# SperaxOS Groq Summarize (x402)

> SperaxOS Groq Summarize (x402) is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-16).

Summarizes a block of text or a list of headlines using a Groq-hosted LLM, paid per-request via USDC on Base with no API key required.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/groq-summarize?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-groq-summarize-x402-6963d9e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LQvWkpuKhH53WUjM-v_Vh

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 speraxos-groq-summarize-x402-6963d9e7 -d '<json body>'
```

Example prompt: Summarize the following DeFi market update article using the llama-3.3-70b-versatile model and keep the output under 512 tokens: [paste article text here]. Focus on developments relevant to the Base ecosystem.

## When to prefer this

Choose this endpoint when you need lightweight, fast text summarization paid micropayment-style with no API key setup, especially in DeFi/crypto contexts or when building agents that use x402 pay-per-call infrastructure on Base. Prefer over OpenAI or Anthropic direct calls when you want USDC billing and Groq's low-latency LLaMA models.

## Known failure modes

- Payment not received or insufficient USDC balance causes 402 Payment Required response
- Text input missing and headlines array is empty causes validation error
- Selected model unavailable on Groq infrastructure causes 503 or timeout
- maxTokens set too low results in truncated or incomplete summary
- Network timeout if Groq inference takes longer than expected

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

A plain-text summary of the provided content, generated by the selected Groq-hosted LLM. Length is bounded by the maxTokens parameter (default 512). No structured JSON envelope is guaranteed — the response body is the summarized text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "'brief' asks for under 3 sentences (openrouter only; ignored by groq)"
  },
  "text": {
   "type": "string",
   "description": "Text to summarize. Required unless headlines is a non-empty array."
  },
  "model": {
   "enum": [
    "llama-3.1-8b-instant",
    "llama-3.3-70b-versatile",
    "llama3-8b-8192",
    "llama3-70b-8192",
    "mixtral-8x7b-32768",
    "gemma2-9b-it"
   ],
   "type": "string",
   "default": "llama-3.1-8b-instant"
  },
  "variant": {
   "type": "string",
   "description": "Accepted but unused"
  },
  "headlines": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Alternative to text; joined with newlines when text is absent."
  },
  "maxTokens": {
   "type": "integer",
   "default": 512,
   "description": "max_tokens sent to the provider"
  },
  "geoContext": {
   "type": "string",
   "description": "Optional geographic/regional focus added to the system prompt"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-groq-summarize-x402-6963d9e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
