Advertisement

0x Opens Swap API to AI Agents Paying $0.01 Per Request in USDC

AI agents can now access 0x Protocol's Swap API by paying $0.01 per request in USDC directly from their own wallets, with no API key required, via the HTTP 402 and x402 standard built with Alchemy AgentPay.
0x Opens Swap API to AI Agents Paying $0.01 Per Request in USDC

AI agents can now access 0x Protocol's Swap API by paying $0.01 per request in USDC from their own wallets, with no API key or account setup required. The integration, built with Alchemy AgentPay, runs on the HTTP 402 standard and extends the protocol's DeFi liquidity aggregation to autonomous software agents for the first time.

The mechanism follows the x402 protocol flow: an agent sends an HTTP request to the 0x endpoint, the server returns a 402 Payment Required response, the agent signs a USDC payment on-chain, and a proxy verifies the transaction before releasing swap data. Payment is accepted via x402 on Base and Solana, or via the Machine Payment Protocol (MPP), per the 0x thread on X Tuesday.

Why Agents Need This

Traditional API access requires an account, a credit card, a key, and a billing cycle. None of those map cleanly to an autonomous process that may need to execute a single swap query before spinning down. The pay-per-request model lets an agent call the endpoint when it needs it and pay only for what it consumes, at $0.01 per call.

0x's Swap API aggregates liquidity across major DEX venues, making it one of the more practical data sources for any agent that needs onchain pricing or routing. Opening it to API-keyless access removes the setup step that would otherwise require human intervention before an agent can run.

Growing Stack

The launch adds 0x to a stack of AI-agent payment infrastructure that has grown quickly since early June. AWS plugged Coinbase's x402 into CloudFront on June 19, letting any site behind Amazon's CDN charge agents per request in USDC. Coinbase for Agents launched standalone agent accounts on June 11. Mastercard's Agent Pay for Machines (AP4M) and Ripple's XRPL AI Starter Kit both launched June 10.

The x402 network has processed 75.41 million transactions totaling $24.24 million in volume over the past 30 days, per x402.org. 0x has not disclosed how many agent requests its Swap API has received since the feature launched, and the announcement includes no volume projections.

Advertisement

Get an edge in Crypto with our free daily newsletter

Know what matters in Crypto and Web3 with The Defiant Daily newsletter, Mon to Fri

90k+ Defiers informed every day. Unsubscribe anytime.