API Documentation
CashBackTokens provides an OpenAI-compatible chat completions API. Use any existing OpenAI SDK — just change the base URL and API key.
Authentication
Get your API key from the Dashboard → API Keys. Pass it as a Bearer token:
Authorization: Bearer sk-your-api-key
Endpoint
POST https://api.cashbacktokens.com/v1/chat
Chat Completions
curl -X POST https://api.cashbacktokens.com/v1/chat \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-flash",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Available Models
| Model ID | Provider | Context | Tier |
|---|
Streaming
Set stream: true for server-sent events (SSE) streaming responses.
{
"model": "deepseek-flash",
"messages": [{"role": "user", "content": "Tell me a story"}],
"stream": true
}Pricing
Each model has a TFT price per 1M tokens. TFT is earned through shopping. See Dashboard for your balance and Admin → Pricingfor detailed rates.
SDK Compatibility
Any OpenAI-compatible SDK works. Just configure:
// Python (openai package)
from openai import OpenAI
client = OpenAI(
base_url="https://api.cashbacktokens.com/v1",
api_key="sk-your-api-key"
)