Dansk LLM

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

StatuscodeMeaning
401nullThere was no key in the header.
401invalid_api_keyThe key doesn't exist or was deleted.
401account_deactivatedThe account is blocked. Write to us if you think this is a mistake.
429rate_limit_exceededAfter 20 refused keys in a minute, every request from the same IP address is refused for up to a minute.

On this page