Nexus
1.x
Docs/Nexus/Cohere
Open

Reading1 min
Updated31 Jul 2026
Sourcev1/providers/cohere.mdx

The Cohere provider connects to the Cohere v2 Chat API. It has a custom API format with native embedding support including input_type fields.

Installation01

import "github.com/xraph/nexus/providers/cohere"

Quick Start02

provider := cohere.New(os.Getenv("COHERE_API_KEY"))

gw := nexus.New(
    nexus.WithProvider(provider),
)

Options03

OptionDescription
cohere.WithBaseURL(url)Override the API base URL (default: https://api.cohere.com)

Capabilities04

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsYes
VisionNo
ToolsYes
ThinkingNo

Models05

ModelContextMax OutputInput PriceOutput Price
command-r-plus128K4,096$2.50/M$10.00/M
command-r128K4,096$0.15/M$0.60/M
command-light4,0964,096$0.30/M$0.60/M
embed-v4.0512$0.10/M
embed-multilingual-v3.0512$0.10/M