API Documentation
CashBackTokens provides an OpenAI-compatible API. Use any existing SDK — just change the base URL and API key.
Authentication
Use your API key from the Dashboard. Pass it in the Authorization header. Get your API key
Authorization: Bearer sk-your-api-key
Chat Completions
POST https://api.cashbacktokens.com/v1/chat
Chat Completions Example
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 | Provider | Context | Tier |
|---|
Streaming
Set stream: true for real-time streaming responses. stream: true
{
"model": "deepseek-flash",
"messages": [{"role": "user", "content": "Tell me a story"}],
"stream": true
}Pricing
TFT pricing per model is shown in your Dashboard. View pricing
SDK Compatibility
OpenAI JavaScript SDK, Python, curl — all work out of the box.
// Python (openai package)
from openai import OpenAI
client = OpenAI(
base_url="https://api.cashbacktokens.com/v1",
api_key="sk-your-api-key"
)