Get started
Authentication
How to send your API key.
Every request needs an API key in the Authorization header. OpenAI's SDKs set the header for you when you give them the key.
Authorization: Bearer dkllm-...API keys
- You create and delete keys under API-nøgler (API keys) on the platform. An account can have up to 10 keys.
- The key is shown only once. We store only a fingerprint of it and can't show it again.
- A deleted key is refused from the next request on.
- Every key starts with
dkllm-, so a key that ended up in the wrong place is easy to recognise.
Keep the key on your server. Never put it in code that runs in a browser or an app where users can read it.
When the key is refused
| Status | code | Meaning |
|---|---|---|
| 401 | null | There was no key in the header. |
| 401 | invalid_api_key | The key doesn't exist or was deleted. |
| 401 | account_deactivated | The account is blocked. Write to us if you think this is a mistake. |
| 429 | rate_limit_exceeded | After 20 refused keys in a minute, every request from the same IP address is refused for up to a minute. |