Drop‑in x402 payments, multi‑facilitator routing, and on‑chain verification so your agents can pay per call.
Automatic failover through CDP, PayAI, OpenX402, and on‑chain.
Base first, with Ethereum, Polygon, Arbitrum, and more chains.
Set price per call, per token, or per custom unit.
A complete pipeline from agent request to verified payment and webhook delivery.
From LLM platforms to data APIs, agent services to SaaS backends.
Charge per token or completion
Charge per query or record
Charge per task or action
Charge per call or unit
NexFlow verifies each payment by trying facilitators in order, then falling back to on‑chain verification.
for (const facilitator of orderedFacilitators) {
try {
const result = await facilitator.verify(payment)
if (result.success) {
await updateHealth(facilitator.id, 'success')
return result
}
} catch (error) {
await updateHealth(facilitator.id, 'failure')
continue // Try next facilitator
}
}
// All facilitators failed, try on-chain
return await verifyOnChain(payment)How a router or orchestrator calls a metered endpoint with x402 semantics.
curl https://api.nexflow.io/v1/metered/ep_xxx \
-H "Authorization: Bearer sk_..."
# Response: 402 Payment Required
{
"status": 402,
"x402": {
"version": "1",
"accepts": [{
"scheme": "exact",
"network": "base",
"token": "USDC",
"maxAmount": "1000000",
"resource": "https://api.nexflow.io/..."
}]
}
}curl https://api.nexflow.io/v1/metered/ep_xxx \
-H "Authorization: Bearer sk_..." \
-H "x-payment: 0x1234...abcd"
# Response: 200 OK
{
"data": { ... },
"x402": {
"verified": true,
"facilitator": "cdp",
"txHash": "0x1234...abcd",
"amount": "1000000",
"token": "USDC"
}
}Verification is idempotent; routers can safely retry on network errors.