Connect to AI Gateway
To connect to AI Gateway, go to the AI Services → AI Gateway section.
Getting Connection Details Copy link
You can find the connection details in the Connection tab.
- Go to AI Services → AI Gateway.
- Open the Connection tab.
- Select a model and a programming language. The interface will show the input and output token pricing for the selected model. To compare model specifications before choosing, see Comparing Models.
- Copy the code sample for connecting and the command for installing the OpenAI library.

Comparing Models Copy link
The Models tab lists all available models along with their type, context window size, maximum response length, and input/output token pricing.
To find a specific model:
- Go to AI Services → AI Gateway.
- Open the Models tab.
- Filter the list by type or provider, or enter a model name in the search field.
To compare models:
- Go to AI Services → AI Gateway.
- Open the Models tab.
- Click Compare models.
- Select the models you want to compare.

Managing API Keys Copy link
Creating an API Key Copy link
AI Gateway uses separate keys that aren't linked to your account level API keys.
To create a key:
- Go to AI Services → AI Gateway.
- Click Create Key.
- Enter a name for the key and select the validity period.
- (Optional) Add a description that will show in the dashboard.
- (Optional) Select the project.
- Click Create.
- Copy the generated key and store it locally.

Viewing Key Usage Copy link
Each API key has its own dashboard showing incoming and outgoing token counts, token usage, and number of requests. You can filter this data by period and model.
To view key usage:
-
Go to AI Services → AI Gateway.
-
Open the API Keys tab.
-
Click the key you want to view.
-
Check token usage and number of requests on the Dashboard tab.
-
(Optional) Filter the statistics by period or model.
Setting a Token Limit Copy link
To set a token usage limit for a key:
-
Go to AI Services → AI Gateway.
-
Open the API Keys tab.
-
Click the key you want to configure.
-
On the Management tab, click Set limits.
-
To set an overall limit:
-
Enable Common consumption limit.
-
Enter the number of tokens (input + output) allowed per day.
-
-
To set a limit per model:
-
Enable Per-model consumption limit.
-
Click Select models.
-
Choose the models to limit.
-
Enter the number of tokens (input + output) allowed per day for each.
-
(Optional) Click Add limit to set another limit.
-
-
Click Save.

Regenerating an API Key Copy link
To regenerate an existing API key:
- Go to AI Services → AI Gateway.
- Open the API Keys tab.
- Click the three dot menu next to the key you want to remove.
- Click Regenerate.
- Confirm the action.

Deleting an API Key Copy link
If you no longer need an API key, you can delete it:
- Go to AI Services → AI Gateway.
- Open the API Keys tab.
- Click the three dot menu next to the key you want to remove.
- Click Delete.
- Confirm the action.
