npm package

cohere-ai

Updated 2026-07-16 View source ↗

#29 of 203 by Downloads / week among npm packages

444.1k Downloads / week

![](banner.png)

About

The Cohere Typescript 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.

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

When the API returns a non-success status code (4xx or 5xx response), a subclass of CohereError will be thrown:

To use Cohere models on AWS Bedrock or SageMaker, import the AWS clients from the cohere-ai/aws subpath and install the required peer dependencies:

The AWS dependencies are…

Excerpted from www.npmjs.com/package/cohere-ai

Latest metrics

Downloads / week 444.1k 2026-07-16