Start
Authentication
Authenticate with a Bearer token (API key).
Every request must include your API key in the Authorization header.
request
Authorization: Bearer $SOBAT_API_KEY
- Create and manage keys on the API Keys page.
- Each key can have its own name and budget limit.
- If a key leaks, delete it and create a new one — the old key is revoked immediately.
Never expose your key
Do not put API keys in frontend code, public repositories, or mobile apps that can be decompiled. Call the API from your server.
Common errors
| Status | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 402 | Insufficient balance — top up first |
| 404 | Model or endpoint not found |
| 429 | Rate limit exceeded |
| 5xx | Gateway or upstream provider failure |