How to generate and store CentML API tokens and other vault objects
Vault
It is worth noting that Serverless API Keys
do not work on general CentML solutions and Bearer Tokens
do not work on serverless endpoints.
You will need to create one of each if you’d like to use CentML LLM endpoints as well as CentML serverless endpoints.
This guide will walk you through creating both Bearer Tokens
, Serverless API Keys
, and other Vault objects you can use to configure or access CentML services.
Serverless API Keys
, Bearer Tokens
,or other Vault objects you will need to login to the CentML platform. If you do not know how to login or do not have an account, please follow the Creating an Account documentation before proceeding.
Once logged in, you will need to select Account
from sidebar menu, and then click on the Vault
tab from the Your Account
window.
Serverless API Keys
are used for accessing the CentML serverless endpoints either via the UI or API calls directly.
To create a key, click on the green Generate
button on the Your Account
screen.
Add Vault Item
. A dropdown menu will appear. From that menu, select the Bearer Tokens
option.
Add Bearer Token to Your Vault
. From there, you can either name and automatically generate a token with the Generate new Bearer Token
option or you can enter a previous token using the Use an existing Bearer Token
option.
Add to Vault
option and your Bearer Token should appear in your vault.
Vault Certificates
generate a .pem
file that is downloaded to your local browser. That .pem
file is named after the generated cert. You can then use that .pem
file to access one of CentML’s private endpoints as long as they are associated with the appropriate certificate and .pem
pair.