x402 Protocol · USDC on Base

Pay-per-call APIs
for AI Agents

No API keys. No subscriptions. No signup.
Just send a request, pay in USDC, get your result.

4 Live Services
$0.001 Starting Price
Base Network

Services

Each service is a standalone API endpoint. Call it, pay the fee, get the result.

📱

QR Code Generator

Generate QR codes in PNG, SVG, or Base64 from any text or URL.

$0.001 POST
qr.x402tools.xyz/v1/generate
✓ Live
📸

Screenshot Capture

Capture full-page or viewport screenshots of any website via Playwright.

$0.005 POST
snap.x402tools.xyz/v1/capture
✓ Live
🌐

DNS Lookup

Get A, AAAA, MX, NS, TXT, SOA records for any domain.

$0.002 GET
dns.x402tools.xyz/v1/lookup
✓ Live
📄

DocParse

Send any public URL (HTML or PDF) — get back clean, structured JSON.

$0.001 POST
docparse.x402tools.xyz/parse
✓ Live

Coming Soon

🛡️

Guardex

Screen any text for prompt injection before it hits your LLM.

$0.003 POST
guard.x402tools.xyz/screen
⏳ Soon
🎯

Prospex

Name + domain → full enriched sales prospect profile.

$0.05 POST
prospex.x402tools.xyz/enrich
⏳ Soon

How It Works

The x402 protocol makes API payments as simple as HTTP.

1

Send a request

Call any endpoint with a standard HTTP request. No headers, no auth tokens.

curl -X POST https://qr.x402tools.xyz/v1/generate \
  -H "Content-Type: application/json" \
  -d '{"text": "hello"}'
2

Get a 402 response

The server responds with payment requirements: price, wallet, and network.

HTTP/1.1 402 Payment Required
X-Payment-Required: {
  "scheme": "exact",
  "network": "eip155:8453",
  "price": "$0.001",
  "payTo": "0xcEbb...5b6"
}
3

Pay & receive

Attach USDC payment proof to your request. Get your result instantly.

curl -X POST https://qr.x402tools.xyz/v1/generate \
  -H "Content-Type: application/json" \
  -H "X-Payment: <payment-proof>" \
  -d '{"text": "hello"}' \
  --output qr.png

💡 AI agents handle this automatically. Libraries like @x402/fetch and AgentCash manage the full 402 handshake for you.

Quick Examples

Generate a QR Code

curl -X POST https://qr.x402tools.xyz/v1/generate \
  -H "Content-Type: application/json" \
  -d '{
    "text": "https://x402tools.xyz",
    "size": 512,
    "format": "png"
  }' --output qr.png

Take a Screenshot

curl -X POST https://snap.x402tools.xyz/v1/capture \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "width": 1280,
    "height": 720,
    "fullPage": true
  }' --output screenshot.png

DNS Lookup

curl "https://dns.x402tools.xyz/v1/lookup?domain=example.com"

Parse a Document

curl -X POST https://docparse.x402tools.xyz/parse \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://arxiv.org/abs/2301.00001",
    "options": {
      "output_schema": "research"
    }
  }'

For AI Agents

Machine-readable discovery files so your agent can find and use these services autonomously.

Example: Agent discovers and calls a service

// 1. Discover services
const catalog = await fetch("https://x402tools.xyz/agents.json").then(r => r.json());

// 2. Find the right tool
const qr = catalog.services.find(s => s.name === "qr-generator");

// 3. Call it (x402 client handles payment automatically)
import { fetchWithPayment } from "@x402/fetch";
const result = await fetchWithPayment(qr.endpoint, {
  method: "POST",
  body: JSON.stringify({ text: "https://example.com", format: "png" })
});

Available On