PyPI package

cohere

Updated 2026-07-16 View source ↗

#14 of 54 by Downloads / month among PyPI packages

42.3M Downloads / month

About

The Cohere Python SDK allows access to Cohere models across many different platforms: the cohere platform, AWS (Bedrock, Sagemaker), Azure, GCP and Oracle OCI. For a full list of support and snippets, please take a look at the SDK support docs page.

Cohere documentation and API reference is available here.

You can set a system environment variable COAPIKEY to avoid writing your api key within your code, e.g. add export COAPIKEY=theapikeyforyouraccount in your /.zshrc or /.bashrc, open a new terminal, then code calling cohere.Client() will read this key.

The SDK supports streaming endpoints. To take advantage of this feature for chat, use chatstream.

The SDK supports Oracle Cloud…

Excerpted from pypi.org/project/cohere/

Latest metrics

Downloads / month 42.3M 2026-07-16
Downloads / week 9.2M 2026-07-16
Downloads / day 1.4M 2026-07-16