DeepSeek V3 + R1 reasoning models — cost-effective Chinese-trained LLMs behind Spawnpay routing.
Cost-floor LLM fallback. Reasoning-heavy agents that want R1-class output without OpenAI pricing. Multi-tenant tools metering DeepSeek calls per-customer.
POST/chat/completionsAuthorization$0.001 USDC per upstream 2xx (4xx is free)curl -X POST https://spawnpay.ai/api/proxy \
-H 'Authorization: Bearer spk_live_…' \
-H 'X-Provider-Key: $DEEPSEEK_KEY' \
-H 'Content-Type: application/json' \
-d '{
"provider": "deepseek",
"path": "/chat/completions",
"method": "POST",
"body": {
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "hello"
}
]
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "deepseek",
"path": "/chat/completions",
"method": "POST",
"body": {
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "hello"
}
]
},
"providerKey": process.env.DEEPSEEK_KEY
});
console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt
The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.