Authentication
Last updated:
On this page
All requests are authenticated with your API key (prefix sk-st-). Send it in
the Authorization header:
text
Authorization: Bearer sk-st-your-keyBase URL for all OpenAI-compatible endpoints:
text
https://api.staik.se/v1The Anthropic endpoint
POST /v1/messages also accepts the Anthropic convention
x-api-key — the same key works in both headers:
text
x-api-key: sk-st-your-keyHandle keys safely
- Put the key in an environment variable (e.g.
STAIK_API_KEY), never in source code - Keys are stored hashed on our side and cannot be shown again — if you lose it, generate a new one from the dashboard
- Every response includes rate limit headers so you can track your consumption per request
Leaked key?
Rotate it immediately from the dashboard. The old key stops working right away.