How can I work with my API keys?
API keys are used to call our models from the Playground and from your own applications via the API.
In your account dashboard, open the Keys section. You will see two tabs:
API Keys
Management Keys
API Keys
Creating an API key
Open the API Keys tab.

Click Create API Key.
Enter a descriptive name for the key. Use a name that clearly reflects its purpose (for example, a specific project or environment).
Copy the key immediately after it is created and store it in a secure location.
The full key will not be displayed again. If the key is lost, simply create a new one.
Configuring an API key
Usage limits
For each API key, you can configure a spending limit. Once the limit is reached, further charges using this key are blocked. This allows you to better control your costs.
You can select one of the following limit types:
No reset
Daily
Weekly
Monthly
All limits that have a reset period (except No reset) are reset at 00:00 UTC.
The reset periods are defined as follows:
Daily From 00:00 to 23:59 UTC of the current day.
Weekly From 00:00 UTC on Monday to 23:59 UTC on Sunday.
Monthly From 00:00 UTC on the first day of the month to 23:59 UTC on the last day of the month. The limit is reset on the first day of the next month.
Endpoint permissions
You can restrict which API endpoints are allowed for a specific API key.
This allows you to:
limit access to only the required endpoints, and
reduce the risk of misuse by team members or accidental calls to unsupported endpoints.
2. Management Keys
Creating a Management key
Open the Management Keys tab.

Click Create Management Key.
Enter a descriptive name for the key.
Copy the key immediately after creation and store it in a secure location.
The full Management key will not be displayed again. If the key is lost, simply create a new one.
Last updated
Was this helpful?