Cohere: Command R (08-2024)
cohere/command-r-08-2024
Created Aug 30, 2024128,000 context
$0.15/M input tokens$0.60/M output tokens
Providers for Command R (08-2024)
OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
US | Context 128K Max Output 4K Input $0.15 Output $0.60 |
Throughput
Latency
1.
Secret Desires AI
new
41.4Mtokens
2.
Miniapps.ai
Create and use mini AI-powered apps
27.8Mtokens
3.
Secret Desires AI
Build your perfect partner
25.2Mtokens
4.
SAID Cultural Dataset Localization
new
15Mtokens
5.
TenderManager
new
5.88Mtokens
6.
SillyTavern
LLM frontend for power users
5.09Mtokens
7.
Lucidpic
new
4.55Mtokens
8.
Mantella
Skyrim & Fallout 4 mod, naturally speak to NPCs
3.71Mtokens
9.
Immersive erotic roleplay augmented with e-stim
new
2.81Mtokens
10.
Chub AI
GenAI for everyone
2.45Mtokens
11.
AI Writing Companion
new
1.81Mtokens
12.
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
1.37Mtokens
13.
Future Fiction Academy (Raptor Write)
new
788Ktokens
14.
OpenRouter: Chatroom
Chat with multiple LLMs at once
694Ktokens
15.
Roo Code
A whole dev team of AI agents in your editor
580Ktokens
16.
liteLLM
Open-source library to simplify LLM calls
550Ktokens
17.
Dwemer Dynamics
new
488Ktokens
18.
Cherry Studio
new
464Ktokens
19.
avante.nvim
new
179Ktokens
20.
RisuAI
Browse characters, choose models, and chat
152Ktokens
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it.
Learn more about our load balancing and customization options.
Sample code and API for Command R (08-2024)
OpenRouter normalizes requests and responses across providers for you.
OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="<OPENROUTER_API_KEY>",
)
completion = client.chat.completions.create(
extra_headers={
"HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
"X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
},
extra_body={},
model="cohere/command-r-08-2024",
messages=[
{
"role": "user",
"content": "What is the meaning of life?"
}
]
)
print(completion.choices[0].message.content)
Using third-party SDKs
For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.
See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.