Built for agentsYour agent can order for itself.
There is no API key to provision and no dashboard to babysit. An agent discovers an offer, asks for a quote, signs an x402 + ERC-7710 payment that satisfies it, and gets the completion back — the whole loop is three HTTP calls. Payment is the credential.
- DiscoverGET /api/v1/offers
- Quote (402)POST /api/v1/inference
- Pay & receive+ PAYMENT-SIGNATURE
quote-first inference
# 1. Browse the menu — pick an offerId
curl -s https://diemsum.com/api/v1/offers
# 2. Ask for a quote — no payment yet → HTTP 402 + PAYMENT-REQUIRED
curl -s -X POST https://diemsum.com/api/v1/inference \
-H 'content-type: application/json' \
-d '{
"offerId": "offer_...",
"messages": [{ "role": "user", "content": "Explain x402 in one sentence." }],
"buyerAddress": "0xYourPayer"
}'
# → 402 { quote: { quoteId, quotedMaxUsd }, paymentRequirements: { accepts: [...] } }
# 3. Replay the identical body, signing the quote over x402 + ERC-7710
curl -s -X POST https://diemsum.com/api/v1/inference \
-H 'content-type: application/json' \
-H 'PAYMENT-SIGNATURE: <base64 x402 payload>' \
-d '{ ...same body... }'
# → 200 { completion, receipt } · you pay only the bite you ordered