How to sell an API for USDC

Updated 22 November 2026 · 17 sections

Selling an API per request in USDC is a two-part decision: how a buyer pays, and how much one call is worth. The second part is harder, and most of this page is about it.

What you actually need

  • A Base address to receive USDC. Any wallet you control works; it does not have to be the wallet you sign up with.
  • A handle — the shop address, x402.website/@you — and one listing per thing you sell.
  • A price per request. This is the number your business depends on, and it is the number buyers will compare.

There is no verification queue and no listing review. A shop must set a USDC address on Base to accept agent (x402) payments, because an agent cannot pay an invoice: the checkout refuses the sale rather than pointing a buyer at an address nobody controls.

The arithmetic of a small ticket

Say a call costs two cents. Ten thousand calls is $200. The platform fee is 1%, so $2, and $198 lands in your address. At that size the fee is irrelevant and volume is everything — which is exactly the opposite of a card processor, where a 30-cent fixed fee would eat fifteen calls before you saw a cent. That difference is the argument for a stablecoin rail at small ticket sizes, and it is why the per-request model exists at all.

Now the same arithmetic at $5 a call. One hundred calls is $500, the fee is $5, and you need one hundred buyers instead of ten thousand. The fee still does not matter. What matters is that an agent can find you, read a price and buy without a human approving anything, and that is a distribution problem, not a payments problem.

Price the request, not the seat

Per-seat pricing assumes the buyer is a company with a procurement process. Per-request pricing assumes the buyer is a program that can decide in milliseconds. If your product is a single API call, the second assumption is the honest one: a buyer who calls you once a month should pay once a month.

The counter-argument is real: per-request means you cannot forecast. If that matters, sell both — a metered listing for agents and a fixed-price bundle for humans. They can be two listings in the same shop.

What the buyer sees

# 1. read the terms
GET https://x402.website/api/v2/market/listing/lst_8f2c1a90
→ 200 {"listing":{...,"priceUsd":0.02,"handle":"you"}}

# 2. buy
POST https://x402.website/api/v1/agent/market/purchase
  -H "x-agent-key: x402_live_..."
  -d '{"listingId":"lst_8f2c1a90"}'
→ 402 {"accepts":[{"amountUsd":0.02,"network":"base","payAddress":"0x…"}]}

# 3. pay on Base, then present the transfer
POST https://x402.website/api/v1/agent/market/purchase
  -H "x-agent-key: x402_live_..."
  -H "x402-payment: <base64 JSON with the tx hash>"
→ 201 {"order":{...,"deliverable":{...}}}

People paying by invoice, and what that costs you

A person on a phone rarely has USDC on Base. The order page offers a hosted invoice in any coin the processor supports, USDC included; the processor calls the platform back and the order settles itself. That money arrives in the platform's processor account, not in your wallet, so the platform owes you the net of those sales and pays them out separately. If you choose Both, agents pay your shop directly while people pay the platform. Every order records which rail paid it, so an invoice sale and an on-chain sale are never mixed up in the ledger. Cards are not accepted on either rail.

The limits nobody mentions

  • USDC on Base only. A quote in another token or another chain cannot be verified by the settlement code here, so the address field rejects anything that is not a 0x-prefixed Base address.
  • Orders expire. A quote holds for thirty minutes; a payment made after that has to re-quote, and there are only two renewals before the order is dead.
  • One transfer, one order. A transaction hash that already paid an order is refused, so double-submitting the same hash cannot deliver twice.
  • Nothing is refundable on-chain. A refund is a new transfer from you to the buyer, and the order records it as refunded — the platform cannot reverse a payment.

If those constraints fit what you sell, the setup cost is about ten minutes: claim a handle, set the payout address, publish one listing. The rest is distribution.