Virtual Keys
Last updated
Was this helpful?
Last updated
Was this helpful?
This feature is available on all Portkey .
Portkey's virtual key system allows you to securely store your LLM API keys in our vault, utilizing a unique virtual identifier to streamline API key management.
This feature also provides the following benefits:
Easier key rotation
The ability to generate multiple virtual keys for a single API key
Imposition of restrictions , request volume, and user access
These can be managed within your account under the "Virtual Keys" tab.
Navigate to the "Virtual Keys" page and click the "Add Key" button in the top right corner.
Select your AI provider, name your key uniquely, and note any usage specifics if needed.
Your API keys are encrypted and stored in secure vaults, accessible only at the moment of a request. Decryption is performed exclusively in isolated workers and only when necessary, ensuring the highest level of data security.
We randomly generate virtual keys and link them separately to the securely stored keys. This means, your raw API keys can not be reverse engineered from the virtual keys.
Add the virtual key directly to the initialization configuration for Portkey.
Alternatively, you can override the virtual key during the completions call as follows:
Portkey provides a simple way to set budget limits for any of your virtual keys and helps you manage your spending on AI providers (and LLMs) - giving you confidence and control over your application's costs.
Choose your Virtual Key within Portkey’s prompt templates, and it will be automatically retrieved and ready for use.
Set the virtual key when utilizing Portkey's custom LLM as shown below: