Home / Use cases / groq-fast-llm-billing

Bill per Groq inference — fast LLM through Spawnpay

The problem

Groq is fast and cheap, but multi-tenant billing on top of it requires a paywall layer.

What Spawnpay does

BYOK Groq through Spawnpay. $0.001 per upstream 2xx. Per-agent budget enforced client-side via the paywall SDK.

Code

curl -X POST https://spawnpay.ai/api/proxy\
  -H 'Authorization: Bearer spk_live_...'\
  -H 'Content-Type: application/json'\
  -H 'X-Provider-Key: $GROQ_API_KEY' \
  -d '{  "provider": "groq",  "path": "/openai/v1/chat/completions",  "method": "POST",  "body": {    "model": "llama-3.1-70b-versatile",    "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