billing_purchase_credits
[POST /v1/billing/credits/5 — $5.00] Buy a prepaid credit bundle (5, 10 or 25 USD) paid per-endpoint via x402 (mirrors REST POST /v1/billing/credits/:amount). Set amount to the bundle you pay for with payment_token; the proof is verified against that exact bundle, then the account is credited and the balance returned. Afterwards send client_key on every paid tool to pay from balance instead of per-call proofs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | bundle amount in USD: 5, 10 or 25 | |
| client_key | Yes | prepaid credit account key to credit | |
| payment_token | No | Payment proof: dev mode → single-use token from POST /v1/dev-faucet; x402 mode → base64 payment payload (the PAYMENT-SIGNATURE / X-PAYMENT header value) |