sk-alt- and tells Altrum which organization, AI system or person the request belongs to. You create it in Altrum and see its value once.
Send your key
Send it as a bearer token, as every OpenAI and Anthropic SDK does when you give it an API key:
Keep the key out of source code. Read it from an environment variable or your secret store.
When the key is refused
A key is inactive when someone switched it off in Altrum, and expired when its end date passed. See Virtual keys. Every other refusal is listed in Errors.
Send your own provider key
Some teams want an application to use its own model provider key rather than the one stored in Altrum. This is off unless an owner or admin switches on Callers may send their own provider key under AI Gateway, Settings, Access. When it is on, send three things:x-alt-direct-key: true;- your provider key in
Authorization: Bearer,x-api-keyorx-goog-api-key; - your virtual key in
x-alt-vk, so Altrum knows whose request it is.