Generating an API key
If you have enabled authentication, then you need an API key to call a model. If you are not a collaborator on a particular project, then you cannot access the models within that project using the API key that you generate. You need to be added as a collaborator by the admin or the owner of the project to use the API key to access a model.
There are two types of API keys used in Cloudera AI:
You can generate more than one API keys to use with your model, depending on the number
of clients that you are using to call the models.-
API Key: These are used to authenticate requests to a model. You can choose the expiration period and delete them when no longer needed.
-
Legacy API Key: This is used in the CDSW-specific internal APIs for CLI automation. This cannot be deleted and neither does it expire. This API Key is not required when sending requests to a model.