Get started in under five minutes.
Every request needs a bearer token from your dashboard.
Authorization: Bearer <YOUR_ZEROCREDIT_TOKEN>
POST /api/chat
Content-Type: application/json
{
"message": "Explain GST",
"preferred_mode": "balanced"
}{
"response": "...",
"model": "Gemini 2.5 Flash",
"provider": "google",
"cache_hit": false,
"cost_usd": 0.00021,
"savings_usd": 0.0017,
"latency_ms": 740
}cheapest — always pick the lowest-cost model.fastest — pick the lowest-latency model.balanced — weighted score across cost, latency, quality.premium — always pick the highest-quality model.auto — same as balanced.