x402-gateway — 21 Pay-Per-Call APIs for AI Agents (USDC on B
21 pay-per-call APIs for AI agents — blockchain data, web scraping, ZK proof verification, QR/diagram/OG-image rendering, LLM chat, gift cards. Settled in USDC on Base via the x402 payment protocol. No accounts, no API keys: agents pay per request via the x402 protocol.
Pay-per-call MCP.
No accounts. No logins. No keys.
21 tools on Base via the Coinbase CDP x402 facilitator.
Agents pay per request in USDC — settled on-chain in seconds.
No API keys to provision, no subscriptions to manage.
How it works
The x402 protocol turns HTTP 402 Payment Required into an onchain payment flow.
Agent reads metadata
GET the endpoint. Receive an OpenAPI spec + x402 payment details (payTo, amount, asset, network).
Sees 402 response
Server returns HTTP 402 with a signed payment requirement in USDC on Base or Solana.
Signs & pays onchain
Agent wallet broadcasts a USDC microtransaction on Base. No human needed, no account to create.
Gets the result
Server verifies the payment header and returns the API response. Done.
All APIs
Each tool is a standalone paid endpoint. Browse the catalog — click any card for details.
Fetch a URL and convert its main content to clean, LLM-ready Markdown. Strips nav/ads/sidebars.
Get the live price of a token by symbol (e.g. ETH, USDC, MATIC).
Get a complete wallet portfolio: native ETH balance, ERC-20 balances, NFT holdings, recent transfers.
Scan recent blocks for large ETH transfers involving an address. Filter by direction and threshold.
Aggregate native balance and token/NFT counts for an address across eth, arb, base, polygon, opt.
Diff two OpenAPI specs and generate a structured breaking-change changelog. Deterministic, no LLM.
Diff git commits and generate a structured breaking-change changelog. Provide repo URL + base commit.
Render a Mermaid diagram to an image (PNG or SVG). Returns base64-encoded image.
Convert an HTML string to clean, LLM-ready Markdown. Handles headings, links, tables, code blocks.
Generate a QR code or barcode as an image (SVG or PNG). QR, Code128, EAN, UPC, ISBN, and more.
Generate an Open Graph social-card image (1200x630 PNG) from a title and description.
Search live job postings by keywords and locations. Returns structured results: title, company, location, salary, and more.
Verify a Semaphore ZK proof locally using Groth16 (embedded official vkey). No external dependency — pure on-device verification.
Verify a World ID 4.0 proof via the Worldcoin Developer Portal API. Generates RP signature, proxies to Worldcoin, returns nullifier + validity.
Batch verify up to 10 Semaphore proofs in a single request. Returns per-proof results with timing stats.
Verify a Sign-In-With-Ethereum (EIP-4361) signature as a paid oracle: returns wallet address + chainId, mints nothing.
Verify a NIP-98 Nostr HTTP auth event with replay protection (each event id verifies once). Returns the signer pubkey.
Verify an ed25519 Solana wallet signature over a nonce-bearing message. One verification per nonce; returns signer pubkey.
Convert an Ethereum address to its EIP-55 checksummed form — required on SIWE message line 2 before signing.
Chat with a language model. OpenAI-compatible /v1/chat/completions. 50+ models — free (auto, eco, premium) are $0, paid models at cost.
Buy a digital gift card code (Foot Locker, Target, AMC, 1000+ brands). Search the catalog free, pay the face value + fee in USDC — code delivered instantly, settled on Base via x402.
How payment works
Send a POST to any tool endpoint without a payment header and the API replies 402 Payment Required with an x402 challenge (payTo address, amount in USDC, asset contract, network). Your wallet signs a USDC microtransaction on Base, resubmits the request with the payment proof, and receives the result.
Tool docs
Each tool has its own dedicated blog post with live playground. Browse the catalog above, then read individual deep-dives:
- Blockchain: Wallet Portfolio · Token Price · Whale Alerts · Cross-Chain Balance · Wallet Checksum
- Web/Content: Markdown Extractor · HTML to Markdown · OG Image Generator · QR/Barcode Generator · Mermaid Diagram Renderer
- Changelog: Git Changelog · OpenAPI Changelog
- Verification: Semaphore · World ID · Batch Verify · SIWE · Nostr NIP-98 · Solana
- Other: LLM Chat · Jobs Search
Live playground
Try the payment flow in your browser: x402.freeq.one/try.html — connect a wallet, pick a tool, pay USDC on Base, get results.
Part of the x402 Gateway — 21 tools, USDC micropayments on Base, powered by the x402 protocol.