LLM ReferenceLLM Reference
DeepInfra

Command R on DeepInfra

Command R · Cohere

Serverless

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 case
Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export DEEPINFRA_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["DEEPINFRA_API_KEY"],
Model ID
command-r

Request 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

ProviderInput (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
View all 6 providers →

Capabilities

Structured Outputs

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.

Get Started

Model Specs

Released2024-04-04
Parameters104B*
Context128K
ArchitectureDecoder Only

Related Models on DeepInfra