Create, Delete, or Update API Keys in Vijil Web Interface
In the left sidebar, click on Keys. You will see a list of all the model hub API keys you have added to Vijil, along with their metadata like rate limits. Click Add new key to create a new API key.Create, Delete, or Update API Keys in the Python Client
Before doing any of this, you will need to instantiate your Vijil client. In this topic we will assume you have instantiated a Vijil client calledclient.
List Available API keys
This lists all the model hub API keys you have added to Vijil, along with their metadata like rate limits:Add an API Key
When adding an API key, you must specify the model hub it is for, the name you want to give it, and the API key value. You can also specify a rate limit for the API key, which defines the maximum number of requests to send to model endpoint per unit of time. Therate_limit_interval is the number of seconds in the interval, and rate_limit_per_interval is the number of requests you can make in that interval. In the example below, we are specifying a limit of 600 requests per 60 seconds, i.e. 600 requests per minute.
Delete an API Key
Modify an API Key
You can use this to update any property of an API key except for its name. To update its name, use therename function instead.
The following example updates the API key value and rate limit properties for the key with name openAI20240630-2: