x402 pay-per-call
Read pricing and authorization terms from a paid resource’s HTTP 402 response.
Coverage and payment flow
Chains and assets describe catalog coverage. Verify live quotes and settlement support before paying with Axiv Pay.
- Chain
- Base
- Assets
- USDC
- Audience
- Merchant · AI agent
- Verified
- Unverified
- Request the resource
- Parse the 402 challenge
- Approve terms and sign
- Retry with payment signature
Quickstart and examples
HUB_ORIGIN=https://pay.axiv.cc
Quickstart
curl -fsS "$HUB_ORIGIN/api/v1/example/x402-pay-per-call"Example request
{
"method": "GET",
"resource": "<paid-resource-url>"
}Example response
{
"status": 402,
"headers": {
"PAYMENT-REQUIRED": "<base64-encoded requirements>"
},
"x402Version": 2
}