Tools / AI
Summarize text or a URL
Summarizes a block of text or the content of a URL (HTML or PDF) using a fast LLM. Pick the length and whether you want prose or bullet points, and optionally a focus such as 'pricing' or 'risks'.
- Price per call
- $0.005 USDC
- Endpoint
- POST https://x402-tools.com/v1/summarize
- Also accepts
- GET with query parameters
- Payment
- x402, exact scheme, USDC on Base
- Returns
- application/json
Parameters
| Name | Type | Description |
|---|---|---|
| url | string | URL to summarize (use this or text). |
| text | string | Text to summarize, up to 60000 characters (use this or url). |
| length | string | 'short', 'medium' (default) or 'long'. |
| format | string | 'prose' (default) or 'bullets'. |
| focus | string | Optional topic to focus on. |
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);
const res = await paidFetch("https://x402-tools.com/v1/summarize", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"url": "https://en.wikipedia.org/wiki/HTTP_402",
"length": "short",
"format": "bullets"
}),
});
// costs $0.005 in USDC on Base
Without a payment the endpoint answers 402 with the price, so you can inspect it first:
curl -i -X POST "https://x402-tools.com/v1/summarize" -H "content-type: application/json" -d '{"url":"https://en.wikipedia.org/wiki/HTTP_402","length":"short","format":"bullets"}'
Example response
{
"summary": "- HTTP 402 Payment Required is a reserved status code…",
"source": "https://en.wikipedia.org/wiki/HTTP_402",
"input_characters": 5321
}
If the tool fails or your input is invalid, the payment is not settled.
Other tools
Web page to markdown$0.003
Turn any URL (HTML, PDF, Office docs) into clean markdown an agent can read.
Website screenshot$0.01
A PNG screenshot of any web page, rendered in a real browser.
Extract structured data$0.01
Pull JSON fields out of any text or web page, matching your schema.
Translate text$0.003
Translate text into any language, keeping formatting and tone.
Generate an image$0.02
Text-to-image with FLUX.1 schnell, returned in seconds.
Base wallet lookup$0.002
ETH, USDC and any ERC-20 balances for an address on Base, live from the chain.