v1

latestOpenAPI 3.1.0API content licensed for inference-only use2026-07-1348269.4 KB
Payment

Initiate a credit purchase (sender_wallet binding required)

Issues a 30-minute payment quote bound to the EVM address that will sign the on-chain USDC transfer. Required body fields: amount_usd (0.5 to 10000) and sender_wallet (0x-prefixed 40-char EVM address). The /api/payment/confirm endpoint will reject any tx whose on-chain from does not match the sender_wallet bound here, which closes the public-mempool tx sniping vector.

post/api/payment/buy-credits

Request body

amount_usdnumber required
sender_walletstring required

Example request

{
  "amount_usd": 1,
  "sender_wallet": "0xabcdef0123456789abcdef0123456789abcdef01"
}

Response

Quote with credits, instructions to send USDC on Base, and the bound sender_wallet.

object required