Learn / Comparisons

x402 vs API keys and subscriptions

An API key is a promise to pay later, tied to an account someone had to create. x402 is payment now, with no account at all.

What API keys cost you

What x402 changes

The 402 response is the onboarding. An agent that finds a new endpoint can pay for one call and get an answer in the same minute. There is no key to leak, because each payment is a one-time signed authorization.

Keeping spend under control

The worry with letting an agent pay is runaway spend. AgentPay's facilitator enforces an owner-set budget before it settles, published per wallet at /facilitator/authority/<wallet>, and refuses with BUDGET_EXCEEDED once the cap is hit.

Common questions

Does x402 replace API keys?

For paid calls it can: payment and access happen in one request with no account. Some sellers keep keys for identity or rate limits.

Is pay-per-call more expensive than a subscription?

It depends on volume. For occasional or exploratory use, paying per call is usually cheaper; heavy users may prefer a plan.

How do I stop an agent overspending with x402?

Give it a wallet with a capped budget. Our facilitator checks the owner's budget before settling.

Keep reading

x402 vs card payments for AI agentsHow an AI agent pays with x402What is x402?All x402 guides
See what our facilitator supports
LearnDocsSettlement policyEndpoint report