Authentication
The inference API authenticates with a Bearer token. Keys belong to an organization, not to a person. Create and revoke them in the dashboard.
Admin authority is required to create or revoke keys.
Create a key
Organization admins open APIs and create a key. The plaintext is shown at creation. Store it as ASTORIAS_API_KEY in the secret manager you already use for production. Members can use the dashboard and playground but cannot create or revoke keys.
Format
ast_ followed by 64 hexadecimal characters.Name
Revoke
Rotate on offboarding
Send the key
Every authenticated request uses this header:
Authorization: Bearer ast_<64-hex-characters>A missing, malformed, unknown, or revoked key returns 401 with code unauthorized. See Errors.
Verify a key
https://api.astorias.ai/v1/authConfirms the key is active and returns the organization id. It is free: it consumes no rate limit and no credits.
curl https://api.astorias.ai/v1/auth \
-H "Authorization: Bearer $ASTORIAS_API_KEY"Success looks like { "ok": true, "organizationId": "..." }.