First swap
Buy a matched slice of inference capacity end-to-end.
1. List open offers
curl -s https://api.curb.numetal.xyz/v1/offers | jq .Pick an id, model, mtok, and priceUsd you can afford.
2. Post a buy intent
curl -s -X POST https://api.curb.numetal.xyz/v1/intents \
-H 'content-type: application/json' \
-d '{
"model": "llama-3.3-70b",
"mtok": 2,
"maxPriceUsd": 0.5,
"buyer": "0xYourBuyer"
}' | jq .If a match exists, the response includes a match with an id.
3. Request payment challenge
curl -s -X POST https://api.curb.numetal.xyz/v1/matches/MATCH_ID/pay | jq .Expect 402 with dual accepts[] (seller + hub fee). We accept payment in USDC on x402 on both Base and Solana, and via pay.sh on Solana.
4. Retry with payment
Attach your x402 payment header (X-Payment / facilitator signature) and POST again. On success you get a grant — call the seller endpoint with that grant, not the hub.
Next
- Selling instead? → Sell capacity
- Payment shape → Dual-payee x402