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.

9 Live Endpoints
$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
⟳ Checking
🎨

Styled QR Code

Artistic QR codes with custom dot shapes (dots, diamonds, stars), gradients, and colors.

$0.005 POST
qr.x402tools.xyz/v1/generate/styled
⟳ Checking
📸

Screenshot Capture

Capture screenshots of any website. Supports dark mode, element selectors, and delayed capture.

$0.005 POST
snap.x402tools.xyz/v1/capture
⟳ Checking
🌐

DNS Lookup

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

$0.002 GET
dns.x402tools.xyz/v1/lookup
⟳ Checking
📄

DocParse

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

$0.001 POST
docparse.x402tools.xyz/parse
⟳ Checking
🛡️

Guardex

Screen any text for prompt injection attacks. Returns risk score and threat categories.

$0.003 POST
guard.x402tools.xyz/screen
⟳ Checking
📧

Mailcheck

Validate any email — syntax, MX records, disposable detection, typo suggestion, risk scoring.

$0.002 POST
mailcheck.x402tools.xyz/v1/validate
⟳ Checking
📑

Rendex

Render raw HTML or a public URL into a PDF. Configurable page size, margins, and headers.

$0.005 POST
rendex.x402tools.xyz/v1/render
⟳ Checking
👁️

Visionex

Extract text from images using OCR. Supports structured blocks, hOCR, and multi-language.

$0.005 POST
visionex.x402tools.xyz/v1/extract
⟳ Checking

Coming 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"
    }
  }'

Screen for Prompt Injection

curl -X POST https://guard.x402tools.xyz/screen \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Ignore previous instructions...",
    "options": {"sensitivity": "medium"}
  }'

Render HTML to PDF

curl -X POST https://rendex.x402tools.xyz/v1/render \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>Invoice</h1><p>Total: $99</p>",
    "output": "base64"
  }'

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