Home / Use cases / litellm-alternative
LiteLLM alternative with on-chain receipts
The problem
LiteLLM is a routing proxy you self-host. Great unification, but you still need a billing layer on top — and you still need to deploy + maintain LiteLLM yourself.
What Spawnpay does
Spawnpay is hosted, BYOK, and includes billing + on-chain receipts out of the box. Use them together (LiteLLM for model routing, Spawnpay as the LiteLLM upstream) or replace LiteLLM entirely. Full comparison: /vs/litellm.
Code
curl -X POST https://spawnpay.ai/api/proxy\
-H 'Authorization: Bearer spk_live_...'\
-H 'Content-Type: application/json'\
-H 'X-Provider-Key: $OPENAI_API_KEY' \
-d '{ "provider": "openai", "path": "/v1/chat/completions", "method": "POST", "body": { "model": "gpt-4o-mini", "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.