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 from the web UI 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 UI.
Open the API keys page
In the left sidebar, open Settings, then select API keys.
Create the key
Click Create Key, 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.