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 R7B (12-2024)

cohere/command-r7b-12-2024
TextInput: text128KAdded Dec 14, 2024

Try Cohere: Command R7B (12-2024) now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Cohere: Command R7B (12-2024) at a glance

  • Input price is 92% lower than the median of 434 Text models.
  • Context window of 128,000 tokens, enough for long documents and multi-turn conversations.
  • Supports structured JSON output with a schema.
  • A typical request (1,000 input / 500 output tokens) costs about $0.000394.

About Cohere: Command R7B (12-2024)

Command R7B (12-2024) is a text model from Cohere, released by the provider on 14 December 2024. It is described as a small, fast update of the Command R+ model, which places it in Cohere's Command family of language models aimed at practical, tool-driven workloads rather than general chat alone. If you already know the Command line, this is the compact, quicker variant to consider when you want the same style of task coverage without a large model.

The model takes text in and returns text out, with a context window of 128,000 tokens and a maximum output of 4,000 tokens. Its knowledge cutoff is 31 August 2024, so anything after that date is outside what it learned during training. Cohere positions it as strong at retrieval augmented generation, tool use, agents, and similar tasks that require complex reasoning. Those are the capabilities to plan around: long inputs, structured or tool-oriented work, and multi-step reasoning rather than pure creative writing.

That combination points to a fairly specific set of use cases. RAG pipelines are the obvious fit, since the 128k context lets you pack in retrieved documents alongside the question without aggressive trimming. Tool use and agent loops follow from the same strengths, for example a model that decides which function to call, reads the result, and continues. Because structured outputs are supported, you can also use it for extraction and classification tasks where the response needs to conform to a schema. The 4,000 token output ceiling is worth noting: it suits answers, summaries and tool calls, but not long document generation in a single response.

You call it through api14's OpenAI-compatible API using the model id "cohere/command-r7b-12-2024". Because the interface follows the OpenAI chat completions shape, existing OpenAI SDKs and clients generally work with only the base URL and model id changed. The request parameters it supports are frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, top_k and top_p. The presence of seed is useful when you want reproducible sampling, and response_format plus structured_outputs are the ones to reach for when downstream code needs parseable output.

On limits, the main constraints given are the 4,000 token maximum output and the 31 August 2024 knowledge cutoff. If your task depends on very recent information, you will need to supply it in the prompt or through retrieval rather than relying on the model's own knowledge. If you need image or audio input, this model does not accept them, since it is text only. Within those bounds it is a reasonable default for RAG, agents and structured text tasks where speed and a long input window matter more than long-form generation.

How to call the Cohere: Command R7B (12-2024) API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "cohere/command-r7b-12-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-r7b-12-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_outputstemperaturetop_ktop_p

Specifications

Context length
128,000
Max output
4,000
Input
text
Output
text
Knowledge cutoff
2024-08-31

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Cohere: Command R7B (12-2024): frequently asked questions

How much does the Cohere: Command R7B (12-2024) API cost?
Cohere: Command R7B (12-2024) costs Input $0.13 / 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 R7B (12-2024)?
Cohere: Command R7B (12-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 R7B (12-2024) do?
Cohere: Command R7B (12-2024) accepts text and returns text. It supports structured JSON output.
How do I call Cohere: Command R7B (12-2024) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "cohere/command-r7b-12-2024". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Cohere: Command R7B (12-2024)?
Comparable Text models at a similar price: Inception: Mercury 2.5, MythoMax 13B, Poolside: Laguna XS 2.1. Each runs through the same API key, so switching is one string.

Cohere: Command R7B (12-2024) community

New topic

This community has no topics yet. Open the first one about Cohere: Command R7B (12-2024).