Home / Use cases / fireworks-api-billing
Fireworks AI with on-chain receipts
The problem
Open-model inference at scale needs an audit trail finance can reconcile.
What Spawnpay does
Spawnpay logs every Fireworks call as a Base L2 tx with the upstream response hash. GET /api/stats gives you the full ledger.
Code
curl -X POST https://spawnpay.ai/api/proxy\
-H 'Authorization: Bearer spk_live_...'\
-H 'Content-Type: application/json'\
-H 'X-Provider-Key: $FIREWORKS_API_KEY' \
-d '{ "provider": "fireworks", "path": "/inference/v1/chat/completions", "method": "POST", "body": { "model": "accounts/fireworks/models/llama-v3p1-8b-instruct", "messages": [ { "role": "user", "content": "hi" } ] }}'
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.