GoModel translates OpenAI-compatible Chat Completions, Responses, Embeddings,
and Audio Transcription requests to Cohere’s native v2 API. Model
discovery uses Cohere’s model catalog and exposes chat, embedding, and
transcription models through /v1/models.
Or in config.yaml:
Multiple keys use the standard COHERE_API_KEY_2,
COHERE_API_KEY_3, … rotation convention. You can restrict or supplement
model discovery with COHERE_MODELS.
Chat and Responses
Use a Cohere Command model with either OpenAI-compatible endpoint:
Chat streaming, system and developer messages, image URL parts, JSON response
formats, tool definitions, tool calls, and tool results are translated to the
Cohere v2 format. /v1/responses uses the same chat adapter.
Cohere reasoning models enable thinking by default. To control Cohere’s native
reasoning behavior, include its thinking object as an extension:
Thinking output is returned as the OpenAI-compatible reasoning_content
extension in both normal and streaming responses.
Audio transcription
Cohere audio uses a dedicated speech-to-text model and endpoint; Command chat
models do not accept audio content mixed into Chat Completions or Responses.
Transcribe audio through the OpenAI-compatible endpoint:
The Cohere transcription API requires language and returns JSON. GoModel
accepts the OpenAI-compatible response_format=json field but omits it from the
native request because JSON is Cohere’s fixed response format. Cohere does not
support text-to-speech, prompt hints, timestamp granularities, or streaming
transcription.
Embeddings
GoModel supplies Cohere’s required embedding fields while retaining the
OpenAI request shape:
input_type defaults to search_document. Set it to search_query,
classification, or clustering when that better describes the input.
encoding_format supports float (the default) and base64. Cohere-native
truncate, max_tokens, and priority fields are also passed through.
Native passthrough
Add cohere to server.enabled_passthrough_providers, then use paths such as
/p/cohere/v2/chat or /p/cohere/v2/rerank to call Cohere-native APIs that do
not have an OpenAI-compatible GoModel surface.
See Cohere’s Chat API,
Embed API,
Audio Transcription API,
and reasoning guide for native fields
and model-specific capabilities. Last modified on August 1, 2026