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.
Metadata
The identity and technical contract details declared by the specification.
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.
Endpoints for generating text responses through conversational interactions with Cohere language models.
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.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from cohere 8
Other APIs cohere publishes across the network.