Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cohere Chat API

The Cohere Chat API enables developers to integrate large language model text generation capabilities into their applications through a conversational interface. It supports multi-turn conversations, tool use with JSON schema definitions, retrieval-augmented generation, and streaming responses. The API is available via the v2 endpoint and works with Cohere's Command family of models.

Cohere Chat API is one of 9 APIs that cohere publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Artificial Intelligence, Chat, Conversational AI, Large Language Models, and Text Generation. The published artifact set on APIs.io includes API documentation, an OpenAPI specification, and an AsyncAPI specification.

This API exposes 2 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version 2.0.

Requests are made against a single base URL, https://api.cohere.com.

2 operations 2 paths 8 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0
Base URL
https://api.cohere.com
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Cohere Chat API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Bearer authentication using a Cohere API key. Pass the API key in the Authorization header as Bearer .

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Chat 2

Endpoints for generating text responses through conversational interactions with Cohere language models.

POST
/v2/chat
Chat with a Cohere model
chat body → 200400401429
POST
/v2/chat/stream
Chat with streaming response
chatStream body → 200400401429

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are ChatRequest (8 properties), ChatResponse (4 properties), Message (4 properties), ToolCall (3 properties). Each schema is shown below with its type and property counts.

ChatResponse
object
4 properties
Usage
object
2 properties
Tool
object
2 properties 2 required
Error
object
1 property
Message
object
4 properties 1 required
ChatRequest
object
8 properties 2 required
ToolCall
object
3 properties
StreamEvent
object
A server-sent event emitted during streaming chat generation. Event types include stream-start, content-delta, citation-start, citation-end, tool-call-start, t…
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cohere-chat-api-openapi.yml Raw ↑

Other APIs cohere publishes across the network.

Cohere Embed API
Cohere Rerank API
Cohere Classify API
Cohere Embed Jobs API
Cohere Datasets API
Cohere Models API
Cohere Tokenize API
Cohere Detokenize API