AiLive

AI Summarize API

Summarize a webpage. POST { url, instruction? }. Returns { url, finalUrl, summary (1-3 sentences), keyPoints (3-7 bullets), title, audience, estimatedReadingMinutes, meta:{…

$0.181125USDC per call · settled on Base · no subscription, no API key

Overview

Summarize a webpage. POST { url, instruction? }. Returns { url, finalUrl, summary (1-3 sentences), keyPoints (3-7 bullets), title, audience, estimatedReadingMinutes, meta:{ truncated } }. Sibling to /api/ai/extract — use extract when you need a typed payload conforming to your own schema; use summarize when you want a ready-made digest. Supports x402 upto billing: authorize the quoted max, pay only your actual usage.

Endpoint

MethodEndpointPriceDescription
POST/v1/marketplace/api/ai-summarize$0.181125Invoke Ai Summarize (Ai) and return the upstream response.

How to call it

Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.

# 1. Ask for a quote
curl -i -X POST https://jarvisclaw.ai/v1/marketplace/api/ai-summarize \
  -H 'Content-Type: application/json' \
  -d '{}'

# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://jarvisclaw.ai/v1/marketplace/api/ai-summarize \
  -H 'Content-Type: application/json' \
  -H 'X-PAYMENT: <signed-payload>' \
  -d '{}'

Parameters

Taken from the request example this API publishes.

NameInTypeExample
urlbodystring"https://en.wikipedia.org/wiki/HTTP_402"

Example response

{
  "data": {
    "ok": true,
    "total": 1,
    "items": [
      {
        "url": "https://en.wikipedia.org/wiki/HTTP_402",
        "finalUrl": "https://en.wikipedia.org/wiki/HTTP_402",
        "summary": "HTTP 402 Payment Required is a reserved status code originally intended for digital cash micropayments; modern revival via x402 makes it practical for AI-agent commerce.",
        "keyPoints": [
          "Defined in RFC 7231 but rarely used until x402",
          "x402 protocol revives it for stablecoin micropayments",
          "Agent-friendly: no accounts, sessions, or API keys"
        ],
        "title": "HTTP 402",
        "audience": "developer",
        "estimatedReadingMinutes": 3,
        "truncated": false
      }
    ],
    "source": {
      "provider": "upstream AI (Anthropic Claude Haiku)",
      "url": "upstream",
      "license": "Generated content — no upstream data license"
    }
  },
  "meta": {
    "endpoint": "ai.summarize",
    "version": null,
    "caller": "x402",
    "cost": {
      "usd": 0.1575
    },
    "settlement": {
      "txHash": "[redacted]",
      "network": "eip155:8453",
      "success": true
    }
  }
}

FAQ

How much does the Ai Summarize API cost?

$0.181125 USDC per call, paid per call over x402. There is no subscription, minimum or monthly fee.

Do I need an API key?

No. Call the endpoint, read the 402 Payment Required quote, and repeat the request with a signed USDC payment header. An account API key also works if you prefer prepaid billing.

Which chains can I pay on?

USDC on Base or on Solana. The 402 quote lists the accepted networks and the exact amount; the JarvisClaw SDKs sign and retry for you.

How do I call it from an AI agent?

Send POST to the endpoint above from any HTTP client, or connect the JarvisClaw MCP server and let the agent find and call it with the search_apis and get_api_detail tools.

Related APIs

Open in the marketplace

Docs: Getting started · x402 payments · x402 discovery · All APIs