API and Session Keys

In addition to the API key, Xinfer.AI provides a more secure and safe temporary session key mechanism for client-side use. It ensures your integration with our services remains secure, efficient, and scalable.

API Key

Long-term Access:

  • Lifetime: Designed for extended use, API Keys last from days to years.
  • Scope: Come with specific scopes defining their access limits.
  • Functionality: It can generate new API and Session Keys with shorter lifetimes and lesser scopes.
  • Security: Access can be revoked instantly.
  • Identifier: Starts with api- for easy visual distinction.

Session Key

Temporary Access:

  • Lifetime: Designed for short use, measured in minutes.
  • Scope: Inherit their parent API Key's scope but can be restricted further.
  • Security: Access can be instantly revoked and expires frequently.
  • Identifier: Starts with ses- for easy visual distinction.

Usage

Both keys can be used as bearer tokens in the Authorization Header or in the query string with the name key.


You can manage your API key from your settings. Assuming you log in, you will find it under the settings of the right-top dropdown or left-bottom of the admin UI.

Was this page helpful?