CosmicAC Logo

How to create an API key (CosmicAC web interface)

Create an API key in the CosmicAC web interface to authenticate requests to a Managed Inference endpoint.

Create an API key in the CosmicAC web interface and use it to authenticate requests to a Managed Inference endpoint that requires an authorization header.

Prerequisites

You need the following before you start.

  • A running CosmicAC deployment. See Installation.
  • Access to the CosmicAC web interface.

Steps

Open the API keys page

In the left sidebar, click Settings. On the Settings page, under Developer, select API keys.

Create the key

Click Create Key. In the dialog that opens, enter a Name, then click Create.

Save the key

In the Save API Key dialog, click Copy, then store the key somewhere safe. Click I have saved the key to close the dialog.

CosmicAC shows the full key only once. If you lose it, revoke the key and create a new one.

Use the key with a Managed Inference endpoint

If your Managed Inference endpoint has Require Authorization header enabled, send this key as Authorization: Bearer <api-key> when you call it. See How to connect to a Managed Inference endpoint.

Next steps

On this page