API Keys
Creating An API Key
Naming your API Key
API Key names cannot have spaces.
Web Platform
- Sign into your Cohere account.
- Scroll down to the
API Keys
section of the homepage. - Click
Create an API Key
. - Create a unique name for your API key, then click
Create an API Key
again to create your API key. - Copy your API key.
CLI
Use the command co key create [key_name]
.
You must be signed in to use this command.
Retrieving an API Key
Web Platform
- Sign into your Cohere account.
- Scroll down to the
API Keys
section of the homepage. - View the list of API keys attached to your account or organization.
You can not retrieve API Keys on the web platform- make sure you copy and backup your keys when prompted. You will always be able to see the names of the keys you’ve created, however.
CLI
Use the command co key list
.
Deleting an API Key
Web Platform
- Sign into your Cohere account.
- Scroll down to the
API Keys
section of the homepage. - Click
Revoke Key
.
CLI
Use the command co key revoke [key_name]
.