We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Cohere: Command R (08-2024)
cohere/command-r-08-2024Try Cohere: Command R (08-2024) now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Cohere: Command R (08-2024) at a glance
- Input price is 67% lower than the median of 434 Text models.
- Context window of 128,000 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- A typical request (1,000 input / 500 output tokens) costs about $0.00158.
About Cohere: Command R (08-2024)
Command R (08-2024) is a text generation model from Cohere, identified on api14 as cohere/command-r-08-2024. It is an update to the earlier Command R model, released by the provider on 30 August 2024, and it keeps the same overall role in Cohere's lineup while improving on the original. The update focuses on better performance for multilingual retrieval-augmented generation (RAG) and tool use, and it is also stronger at math, code and reasoning than the version it replaces.
The model works with text in and text out only. It accepts text prompts and returns text completions, with no image or audio input. The context window is 128,000 tokens, which is large enough to hold long documents, multi-turn conversations or several retrieved passages alongside the instructions. The maximum output is 4,000 tokens per response, and the knowledge cutoff is 31 March 2024, so anything after that date has to come from the prompt or from a tool call rather than from the model's own training data.
Those capabilities point to a few practical uses. Because multilingual RAG is a stated strength, the model suits question answering over a document collection where queries and sources may be in different languages, with retrieved chunks placed in the long context window. Tool use and structured outputs make it a reasonable fit for agents and workflows that need to call functions, extract fields into a schema or route a request to another system. The improvements in math, code and reasoning also make it usable for analysis tasks, code explanation and step-by-step problem solving, though the 4,000 token output cap means long generated files or very detailed reports need to be split across calls.
You call it through api14's OpenAI-compatible API using the model id cohere/command-r-08-2024, so existing OpenAI SDK code works with a change of base URL and model name. The request parameters it supports are frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k and top_p. In practice that covers sampling control (temperature, top_p, top_k), repetition control (frequency and presence penalties), output length (max_tokens), stop sequences, deterministic-ish sampling via seed, and both JSON-style response_format and structured_outputs for schema-constrained results. Tool use is configured with tools and tool_choice.
A few limits are worth knowing before you commit. Input and output are text only, so if you need vision or audio, this model is not the right choice. The 4,000 token output ceiling rules it out for tasks that must emit very long single responses. The knowledge cutoff of 31 March 2024 means recent information must be supplied in the prompt or fetched through tools. And since the model is positioned around RAG, tool use and reasoning rather than as a general flagship, a different model may fit better when your priority is something outside those areas.
How to call the Cohere: Command R (08-2024) API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "cohere/command-r-08-2024".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "cohere/command-r-08-2024",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_pSpecifications
- Context length
- 128,000
- Max output
- 4,000
- Input
- text
- Output
- text
- Knowledge cutoff
- 2024-03-31
Requests on api14 · last 7 days
Cohere: Command R (08-2024): frequently asked questions
- How much does the Cohere: Command R (08-2024) API cost?
- Cohere: Command R (08-2024) costs Input $0.52 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Cohere: Command R (08-2024)?
- Cohere: Command R (08-2024) reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 4,000 output tokens per response.
- What can Cohere: Command R (08-2024) do?
- Cohere: Command R (08-2024) accepts text and returns text. It supports tool calling, structured JSON output.
- How do I call Cohere: Command R (08-2024) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "cohere/command-r-08-2024". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Cohere: Command R (08-2024)?
- Comparable Text models at a similar price: MiniMax: MiniMax M3.1 Flash, LiquidAI: LFM2.5-24B-A2B, Upstage: Solar Pro 4. Each runs through the same API key, so switching is one string.
Cohere: Command R (08-2024) community
New topicThis community has no topics yet. Open the first one about Cohere: Command R (08-2024).