Cohere
Command models, embeddings, and the reranker.
let model = CohereModel("command-a")Key from COHERE_API_KEY; base URL https://api.cohere.com/v2.
Features
- Tools, structured output, and vision on the native v2 chat wire.
- Citations surface as
StreamPart.source. command-a-reasoning-08-2025is a hybrid reasoning model; thinking streams as.reasoningDelta. Thereasoningparameter maps to Cohere'sthinkingfield on reasoning models (ids containingreasoning) and is ignored on the others:.nonedisables thinking, an effort level enables it with atoken_budgetscaled frommaxOutputTokens(capped at 31k), and.providerDefaultleaves the model's default (thinking on) untouched.
Embeddings and reranking
Both are independent model protocols: CohereEmbeddingModel works with
embed and embedMany, while CohereRerankingModel
works with rerank.
let embeddings = try await embedMany(
model: CohereEmbeddingModel("embed-v4.0"),
values: documents
)
let ranked = try await rerank(
model: CohereRerankingModel("rerank-v4-fast"),
query: "How do I cancel my subscription?",
documents: documents,
topN: 3
)
ranked.rankedDocuments.first?.document // best match
ranked.rankedDocuments.first?.relevanceScoreModels
As of July 2026:
| Model | Notes |
|---|---|
command-a / command-a-03-2025 | General chat |
command-a-plus / command-a-plus-05-2026 | Multimodal MoE flagship (vision + text) |
command-a-reasoning-08-2025 | Reasoning; thinking maps from reasoning (above) |
command-a-vision-07-2025 | Vision — up to 20 images, 128K context; no tool calling |
command-a-translate-08-2025 | Translation across 23 languages |
north-mini-code-1.0 | Code |
embed-v4.0 | Embeddings (CohereEmbeddingModel) |
rerank-v4-pro / rerank-v4-fast / rerank-v3.5 | Rerank (CohereRerankingModel) |
The chat, reasoning, vision, and translation models share the v2 chat wire, so
any of them drops into CohereModel("…").