Home / Use cases / openai-api-billing-for-agents

Bill agents per OpenAI call — USDC, no card, no chargebacks

The problem

Cards do not work for agents. Stripe needs a human, OpenAI invoices land at month-end, and 2.9% + 30¢ kills the unit economics of a $0.001 inference call.

What Spawnpay does

Route OpenAI through Spawnpay's proxy. BYOK passthrough, $0.001 USDC per upstream 2xx, settled instantly on Base L2. Every agent gets a spk_ wallet, every call gets an on-chain receipt.

Code

curl -X POST https://spawnpay.ai/api/proxy\
  -H 'Authorization: Bearer spk_live_...'\
  -H 'Content-Type: application/json' \
  -d '{  "provider": "openai",  "path": "/v1/chat/completions",  "method": "POST",  "body": {    "model": "gpt-4o-mini",    "messages": [      {        "role": "user",        "content": "hi"      }    ]  }}'
60-SEC QUICKSTART → PLAYGROUND → TOP UP USDC →

What you get with $7 free credit

Every new spk_ wallet starts with $7. That covers 7,000 proxy calls, 1,400 cloud-scrapes, or 700 screenshots — enough to verify Spawnpay fits your workflow before topping up.

See also