Skip to main content
Cohere

Search documentation

Type to search this documentation.

On this pageOverview

Setting up

The following labs are all ran as Google Colab. This means that you don't need to worry about installations, as the first lines of code take care of this.

However, if you want to run these labs locally in your computer, you'll need to do some initial set up of the Cohere client in order to make API calls to the endpoints. Here is the setup.

The first step is to install the Cohere Python SDK.

$ pip install cohere

In order to make API calls to the models, you need an API key. You can sign up for a Cohere account and create an API key, which you can generate from the Cohere dashboard

Once that is done, you can set up the Cohere client as follows.

PYTHON
import cohere

co = cohere.Client("add_your_api_key_name")
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu