Command R
Cohere
cohere/command-r
128K context
Context Window
128K
128,000 tokens
Max Output
4K
4,096 tokens
About this model
Efficient model optimized for retrieval tasks
This model supports up to 128K tokens of context. It provides strong code generation and debugging capabilities.
Access it through Chuizi.AI with a single ck- API key — no separate Cohere account needed.
Highlights
128K context window
4K max output
Strong code generation
Best For
Code generationRefactoringDebuggingDocumentation
2024-08-30
Capabilities
ChatCodetools
Aliases
command-rPricing (per 1M tokens)
| Pricing (per 1M tokens) | / 1M tokens |
|---|---|
| Input / 1M | $0.16 |
| Output / 1M | $0.63 |
Final prices shown
Quick Start
main.py
from openai import OpenAI client = OpenAI( base_url="https://api.chuizi.ai/v1", api_key="ck-your-key-here", ) response = client.chat.completions.create( model="cohere/command-r", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content)