Flow
Get a 402 + quote
If credits are short, NEUS responds 402 with a quote in the body and the
PAYMENT-REQUIRED response header.Pay the quote
Settle in USDC (or native ETH) via
POST /api/v1/payments/verify. NEUS returns a one-time payment receipt.The 402 response
The body carrieserror.code: "INSUFFICIENT_CREDITS" and an x402 block you can act on directly:
PAYMENT-REQUIRED response header. exp is a millisecond timestamp — quotes are short-lived, so pay and retry promptly.
Pay and retry
POST /api/v1/payments/verify (type: "x402"). The successful response returns the receipt token and a PAYMENT-RESPONSE header. Each receipt is single-use — reusing one is rejected.
Payment methods
| Rail | Where it settles |
|---|---|
| USDC | Base mainnet (eip155:8453), with Ethereum mainnet as fallback |
| Native ETH | NEUS treasury |
GET /api/v1/payments/pricing.
Agents that pay on their own
Pair x402 with a scoped delegation so an agent can settle calls within a hard cap. This is how autonomous agents settle API calls inside a scoped budget — identity, authority, and payment context in one receipt.- Grant
agent-delegationwithscope: "payments:x402"and amaxSpendcap. maxSpendis a whole-number string in token base units — for USDC (6 decimals), 25 USDC is"25000000". UsetoAgentDelegationMaxSpend('25', 6)from@neus/sdk.- The agent can pay per call up to the cap; spend beyond it is refused.
Next
Billing
Credits, who pays, and the 402 fallback.
Gate checkout
Charge visitors with USDC or card.
Agent delegation
Spend caps for autonomous agents.