Home / Use cases / deepseek-api-budget
DeepSeek API budget enforcement
The problem
DeepSeek is cheap, so agents tend to call it in loops. Cheap × big loop = expensive.
What Spawnpay does
Daily budget cap via @spawnpay/paywall. Pre-charge throws before DeepSeek sees the request.
Code
curl -X POST https://spawnpay.ai/api/proxy\
-H 'Authorization: Bearer spk_live_...'\
-H 'Content-Type: application/json'\
-H 'X-Provider-Key: $DEEPSEEK_API_KEY' \
-d '{ "provider": "deepseek", "path": "/v1/chat/completions", "method": "POST", "body": { "model": "deepseek-chat", "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.