The Best x402 APIs for AI Agents in 2025 (Tested and Ranked)
A curated list of production-ready x402 APIs that AI agents can discover and pay for autonomously. Document conversion, image processing, validation, and more.
The Best x402 APIs for AI Agents in 2025 (Tested and Ranked)
The x402 ecosystem now has 10,000+ live endpoints, but most of them cluster around two categories: DeFi data and AI inference wrappers. If your agent needs to check ETH staking yields or run an LLM prompt, you’re covered. If it needs to convert a DOCX to PDF, validate an IBAN, or optimize a batch of images—that’s where things get thinner.
This list focuses on production-ready x402 services with proven uptime, honest pricing, and Bazaar-registered discovery metadata. No affiliate relationships, no sponsored placements.
What Makes an x402 API Worth Using
Before getting to the list, here’s what separates good x402 services from ones that’ll cause headaches in production.
Bazaar registration with full schemas. If a service isn’t registered in the x402 Bazaar with proper input/output JSON schemas, your agent can’t discover it autonomously. You’re back to hardcoding endpoints—which defeats a lot of the point.
Stateless execution. x402’s per-call model works best for stateless operations. Anything requiring session state or accumulating context across calls adds complexity that rarely works well at micropayment scales.
No upstream data dependencies. Services that resell third-party APIs have thin margins and reliability tied to someone else’s uptime. Algorithmic services—ones that run computations against free or open data—are typically faster and more reliable.
Predictable latency. At $0.003 per call, a 5-second response time is borderline insulting. Good x402 services run at the edge and execute fast.
Document & File Processing
HTML to PDF Conversion — PicoPayd
Price: $0.01 per call | Network: Base
One of the more commonly needed operations for AI agents doing research or generating reports. Provide an HTML string or URL, get back a PDF. PicoPayd’s implementation runs on Cloudflare Workers with Puppeteer—consistent output, proper handling of CSS, and fast enough for automated workflows.
The Bazaar metadata is clean: documented request schema (URL or raw HTML, page size options, margin config), response schema (PDF binary, file size, page count). An agent can evaluate this without a test call.
Best for: Agents that generate reports, convert web content to archives, or produce documents for downstream tools.
Document Conversion (DOCX ↔ PDF ↔ Markdown) — PicoPayd
Price: $0.008 per call | Network: Base
Converting between document formats is one of those tasks that sounds trivial and turns into a project the moment you try to handle it at scale. PicoPayd’s document conversion handles DOCX, PDF, Markdown, and plain text interconversion, including table and heading preservation.
What works well here is the format detection—you don’t need to specify input format explicitly; the service infers it from the content. Output options let you control heading levels, table rendering, and image extraction.
Best for: Agents processing uploaded files, extracting structured data from documents, or generating output in a specific format for downstream systems.
Image Processing
Image Format Conversion — PicoPayd
Price: $0.005 per call | Network: Base
Converts between JPEG, PNG, WebP, and AVIF. Quality control parameters, metadata stripping option, and output size reporting. The AVIF output is worth highlighting specifically—it’s the format that modern web pipelines want, and most conversion tools either don’t support it or do it poorly.
Best for: Agents building image pipelines, generating thumbnails, or preparing assets for web delivery.
Image Optimization — PicoPayd
Price: $0.007 per call | Network: Base
Compresses images with configurable quality thresholds while preserving visual fidelity. Returns compression ratio and file size reduction alongside the optimized image. Supports JPEG, PNG, and WebP.
Best for: Agents managing media libraries, reducing storage costs, or optimizing images before CDN upload.
Utility & Generation
QR Code Generation — PicoPayd
Price: $0.003 per call | Network: Base
Generates QR codes in PNG or SVG format with customizable size, error correction level, and color options. SVG output is vector-scalable for print applications. This sounds like a simple utility and it is—but it’s exactly the kind of thing you don’t want to self-host just to avoid a subscription.
Best for: Agents generating asset materials, event tickets, authentication tokens, or any workflow that needs machine-readable codes.
Data & Validation
IP Geolocation
Several providers in the x402 ecosystem offer IP geolocation using MaxMind GeoLite2 (free tier, 6-figure accuracy). Pricing ranges from $0.001 to $0.003 per lookup. Worth comparing Bazaar metadata carefully—output schema completeness varies significantly between providers.
Best for: Agents that need to route requests by region, filter content by jurisdiction, or analyze traffic sources.
Domain & DNS Lookup
DNS resolution and domain metadata queries. Free to implement algorithmically (public DNS infrastructure), priced at $0.001-0.002 per query in the ecosystem. Useful for agents doing research, validating emails, or checking infrastructure.
What’s Still Missing
I’ll be direct: the x402 ecosystem has real gaps. Things that should exist and don’t (or have poor implementations):
IBAN validation. Verifying European bank account numbers is a pure algorithm—no external data needed—but almost nobody has implemented it cleanly in x402. The European Central Bank publishes the spec publicly.
EU VAT number validation. The EU’s VIES system has a free public API. Charging $0.002 per validation would be completely reasonable and there’s clear demand from agents doing supplier verification workflows.
Unit conversion with proper precision. There are some unit conversion services in the ecosystem but most use floating-point arithmetic that breaks at high precision. mathjs handles arbitrary precision correctly. This seems like an obvious gap.
Flight delay prediction. OpenSky Network provides free ADS-B flight data. Combining it with historical delay patterns to produce a delay probability score would be genuinely valuable for travel-focused agents.
The common thread: these are all algorithmically implementable with free data sources. They’re not in the ecosystem yet primarily because developers keep building more DeFi endpoints instead.
How to Use These in Your Agent
If you’re using the official x402 TypeScript SDK, discovery and payment are handled automatically once you configure a client:
import { createClient } from '@x402/client'
const client = createClient({
facilitatorUrl: 'https://x402.org/facilitator',
wallet: agentWallet,
})
// Automatically handles 402 challenges and payment
const response = await client.fetch('https://api.picopayd.codefission.co.uk/convert/html-to-pdf', {
method: 'POST',
body: JSON.stringify({ html: '<h1>Hello World</h1>', format: 'A4' }),
})
The client intercepts 402 responses, pays the specified amount, and retries—all transparent to your application logic. No API keys to manage, no subscription to maintain.
For agents that need to discover services by capability rather than by URL, the Bazaar query endpoint lets you search registered services by category, input type, or output type. Your agent can build its own toolbox dynamically.
Featured Image Suggestion: Grid layout showing API service cards with pricing badges, connected by flow arrows on a dark tech background. Include icons representing file types, images, and validation checks.