Cohere models - Amazon Bedrock

Cohere models

This section describes the request parameters and response fields for Cohere models. Use this information to make inference calls to Cohere models with the InvokeModel and InvokeModelWithResponseStream (streaming) operations. This section also includes Python code examples that shows how to call Cohere models. To use a model in an inference operation, you need the model ID for the model. To get the model ID, see Amazon Bedrock model IDs. Some models also work with the Converse API. To check if the Converse API supports a specific Cohere model, see Supported models and model features. For more code examples, see Code examples for Amazon Bedrock using AWS SDKs.

Foundation models in Amazon Bedrock support input and output modalities, which vary from model to model. To check the modalities that Cohere models support, see Supported foundation models in Amazon Bedrock. To check which Amazon Bedrock features the Cohere models support, see Model support by feature. To check which AWS Regions that Cohere models are available in, see Model support by AWS Region.

When you make inference calls with Cohere models, you include a prompt for the model. For general information about creating prompts for the models that Amazon Bedrock supports, see Prompt engineering concepts. For Cohere specific prompt information, see the Cohere prompt engineering guide.