Home / Use cases / multi-provider-llm-routing
Multi-provider LLM routing with one unified bill
The problem
Production agents use 3-5 LLMs depending on task. Tracking spend across OpenAI + Anthropic + Groq + Mistral + Together means logging in to 5 dashboards and reconciling 5 invoices.
What Spawnpay does
One Spawnpay key gates all 21 paid providers. Each call gets a Base L2 tx hash. GET /api/stats returns a single rolling spend total — no dashboard logins, no CSV exports.
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" } ] }}'
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.