x4PayAPI Market

How AI agents pay for APIs without keys

How to let an AI agent pay for APIs: give it a USDC wallet and a catalogue that speaks x402. The agent calls the provider unpaid, reads the price, the network and the payTo address from the HTTP 402, then pays that call. There is no API key. Listing is free, and PayAPI takes 0% of each job.

Why can an agent not use an API key?

An agent cannot fill a signup form, wait for approval, copy a secret key or type a card number. Traditional APIs assume a person is in that loop. The agent stops and waits. Pay per call removes the account. The caller needs a wallet, not a key issued by each provider. Background is at x402.org.

That limit is why a directory of key-based APIs is a poor fit for an autonomous caller. The caller has a few seconds and a balance it can spend. It does not have a browser session or a finance team.

What does x402 change for a paid API?

x402 uses HTTP 402 Payment Required. An unpaid call does not return the product. It returns a challenge the client can pay, then retry. There is no invoice run and no monthly plan. The payment is the authorisation. The protocol home page is x402.org.

On PayAPI Market the caller pays the provider, not the marketplace. We are not in the payment path. PayAPI takes 0% of each job. Listing is free.

Can an agent see the price before paying?

Yes. Call the endpoint without a payment. The HTTP 402 response states the price, the network and the payTo address before any payment is made. Nothing has been signed, so the agent can stop. get_api on payapi.market/mcp also returns price_min and price_max, read from that live 402.

The challenge on the call is the amount the agent will be asked to pay. The catalogue range should agree with it. Set a per-call cap and refuse anything above it. How we verify is a different question: it is about a receipt, not about the price line.

Which networks can the agent pay on?

Listings accept USDC on Base. Some also accept USDC on Solana or Algorand on the same route, and the unpaid 402 names the network. Match that name to the wallet the agent holds before it signs. A network is verified for a listing only after we have paid a route on it. See how we verify.

An agent that only holds Base USDC can still pay any listing, because Base is accepted across the catalogue. Solana and Algorand are extra options on the routes that offer them. They are not a replacement for Base.

Where does PayAPI Market fit?

PayAPI Market is the x402 marketplace where an agent finds the API and the provider gets paid directly. Search is free at payapi.market/mcp. Settlement-verified means we paid one named route from our own wallet, got real product back, and link the receipt. The badge is not a claim about demand. How we verify defines it.

A live listing we have not paid is still findable. It is labelled as listed, not as settlement-verified. The catalogue size is the live line in llms.txt, settlement-verified first and the total listed second. This page does not freeze that line.

How does the payment loop work?

The agent finds a listing, calls the provider unpaid, reads the 402, and either stops or pays that exact challenge and retries. Discovery on the catalogue MCP never returns a 402. Paying happens on the provider endpoint. The steps below are the same loop the 402 response already states. See x402.org.

  1. The agent needs a fact or a tool.
  2. It finds a listing through MCP, /agent/search or the marketplace.
  3. It calls the provider endpoint with no payment attached.
  4. The endpoint returns HTTP 402 with the price, the network and the payTo address.
  5. The agent pays that challenge in USDC and retries with proof of payment.
  6. The provider returns the product. The agent pays only for the calls it makes.

How do the public payment paths compare?

Each row links to a public page opened on 30 October 2026. The wording is what that page supports. These paths tell an agent the price in different ways, and they are not the same check. A 402 line is not a receipt, and a receipt is not a count of buyers.

Path What you can know before paying Source Checked on
x402 HTTP 402 The unpaid response states the price, the network and the payTo address. x402.org 30 October 2026
PayAPI get_api price_min and price_max are read from the live 402 for that listing. PayAPI MCP 30 October 2026
x402 MCP transport An unpaid tool result carries the payment requirement before a payment is attached. MCP transport spec 30 October 2026
CDP Bazaar Indexing follows a settled payment through the CDP Facilitator, not a verify step alone. CDP discovery docs 30 October 2026
PayAPI settlement-verified We paid one named route and linked the on-chain USDC receipt. That is not the price line. How we verify 30 October 2026

What should a provider do?

Price each call, return a real 402 from the paid route, and list it. Listing is free and PayAPI takes 0% of each job. You do not need a separate billing stack for the agent to pay you. We pay for the verification call from our own wallet. The provider playbook is the longer setup guide.

If the unpaid call does not return a 402, the form will not create a listing. Paste the paid route, not the homepage. The challenge payTo has to be the wallet you control.

how to let my ai agent pay for apis

Give the agent a wallet that holds USDC and a catalogue such as PayAPI Market. It calls the provider unpaid, reads the HTTP 402, and pays that exact challenge. Search on the catalogue is free. Listing is free, and PayAPI takes 0% of each job.

How do I pay for an API without signing up?

You do not create an account. Call the provider endpoint unpaid, read the HTTP 402, and pay that challenge from a wallet that holds USDC. The payment is the authorisation. PayAPI Market does not take the payment. Search is free at the catalogue MCP. Listing is free and PayAPI takes 0% of each job. See x402.org.

How do I pay for an API without an API key?

You do not copy a key. The unpaid 402 states the price, the network and the payTo address, and the signed USDC payment is what the provider accepts. get_api on payapi.market/mcp returns price_min and price_max from that live 402, so you can refuse the call before you sign.

Last updated: 30 October 2026

Sources