Skip to content

API Keys

API Keys are the credentials that are used to authenticate the requests to FloTorch Gateway. Usually, these are used with OpenAI API Client as OPENAI_API_KEY environment variable.

To create an API Key,

  1. Click on the New API Key button in the top right corner of the FloTorch Console.
  2. Provide a name for the API Key
  3. Click on Create button

Once an API Key is created, you will be shown a secret key. This secret key is not shown again, so please save it in a secure location.

To use an API Key, you can set the OPENAI_API_KEY environment variable to the secret key.

Terminal window
export OPENAI_API_KEY=<secret-key>

To regenerate an API Key,

  1. Identify the API Key you want to regenerate
  2. Click on Actions dropdown and click on Refresh
  3. The API Key will get regenerated.

To deactivate/activate an API Key,

  1. Identify the API Key you want to deactivate/activate
  2. Click on Actions dropdown and click on Activate (if deactivated) or Deactivate (if activated).
  3. The API Key will get deactivated/activated.

To delete an API Key,

  1. Identify the API Key you want to delete
  2. Click on Actions dropdown and click on Delete API Key
  3. The API Key will get deleted.