Account
API keys
Authenticate platform and inference requests without exposing account credentials.
Create and store
In Try models → API Keys, select Create API key and copy the secret before closing the dialog. Account keys use the format tk_<prefix>.<secret>. For a personal key, open User settings → API Keys; its format is uk_<prefix>.<secret>. The complete value is shown only once.
Authenticate
Send the key using Authorization: Bearer for operations that accept it. A personal key uses the user’s default workspace; to select another workspace the user belongs to, add its identifier in the X-Account-ID header.
1curl https://api.qdiv0.com/v1/models \
2 -H "Authorization: Bearer $QDIV0_API_KEY"Rotate safely
Create a replacement, update clients and revoke the old key. Use separate keys for environments and never commit them to source control.
In API Keys, identify the old key by its visible prefix and select Revoke after clients have switched. Revocation takes effect immediately.
API example
List account-key prefixes and statuses. The response does not reveal the secrets again.
Set QDIV0_USER_API_KEY to a personal uk_ key. The default account is used; for another account you belong to, add its identifier in the X-Account-ID header.
1curl --fail-with-body \
2 "https://api.qdiv0.com/v1/api-keys" \
3 -H "Authorization: Bearer $QDIV0_USER_API_KEY"