Last refreshed 2026-04-24. Next refresh: weekly.
Why use Command R on DeepInfra?
DeepInfra offers Command R with competitive pricing. DeepInfra is a cloud inference platform offering cost-effective access to open-source AI models.
Compare Command R across 6 providers to find the best fit for your use caseSetup recipe
Python + curlpip install openaiexport DEEPINFRA_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DEEPINFRA_API_KEY"],command-rRequest example
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DEEPINFRA_API_KEY"],
base_url="https://api.deepinfra.com/v1/openai"
)
response = client.chat.completions.create(
model="command-r",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- DeepInfra uses "organization/model-name" format, e.g. "meta-llama/Meta-Llama-3-8B-Instruct" or "mistralai/Mistral-7B-Instruct-v0.3". See the DeepInfra model catalog for exact IDs.
- The examples expect DEEPINFRA_API_KEY; rename it only if your application config maps the new variable.
Compare Command R Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| AWS Bedrock | $0.50 | $1.50 |
| Cohere API | $0.50 | $1.50 |
| Microsoft Foundry | $0.50 | $1.50 |
| OCI Generative AI | — | — |
| OpenRouter | $0.15 | $0.60 |
Capabilities
About Command R
Command R is a 35-billion parameter large language model developed by Cohere, tailored for enterprise-scale AI applications. It is optimized for long-context tasks such as retrieval-augmented generation (RAG) and tool use, emphasizing high performance coupled with strong accuracy. This model excels in reasoning, summarization, and question answering across ten key languages. Its use spans various enterprise applications, automating complex tasks that involve interacting with systems like CRMs, APIs, and databases. The model can process up to 128,000 tokens and integrates seamlessly with Cohere's Embed and Rerank models, enhancing accuracy and efficiency in large-scale tasks. Additionally, a more powerful iteration, Command R+ with 104 billion parameters, offers even greater capabilities.
FAQ
What is the context window for Command R on DeepInfra?
Command R supports a 128,000 token context window on DeepInfra.
How does DeepInfra compare to other Command R providers?
Command R is available from 6 providers. The cheapest input pricing is $0.15/1M tokens from OpenRouter.
Who created Command R?
Command R was created by Cohere as part of the Command R model family.
Is Command R open source?
Command R's open source status is unknown in the seed data.