Authentication
All requests are authenticated with an API key created in the dashboard under
API Keys. Keys start with sk-.
Supported headers
Section titled “Supported headers”Use whichever header your SDK sends — the same key works everywhere.
| Header | Typical client |
|---|---|
Authorization: Bearer sk-... |
OpenAI SDKs, cURL, most tools |
x-api-key: sk-... |
Anthropic SDK, Claude Code |
x-goog-api-key: sk-... |
Google GenAI SDK |
curl https://api.wraitherix.com/v1/models \ -H "Authorization: Bearer $WRAITHERIX_API_KEY"Key settings
Section titled “Key settings”Each key can be configured in the dashboard:
- Credit limit — the maximum number of credits the key may spend, or unlimited.
- Expiry — an optional expiration date.
- Model allow-list — restrict the key to specific models.
- IP allow-list — accept requests only from given IP addresses or CIDR ranges.
Create a separate key per application or environment so you can track usage and revoke access independently.
Keep keys secret
Section titled “Keep keys secret”- Never ship a key in client-side code (browser, mobile app).
- Store keys in environment variables or a secrets manager.
- If a key leaks, delete it in the dashboard immediately and create a new one.
A missing or invalid key returns 401:
{ "error": { "message": "Invalid token", "type": "api_error", "code": "" } }