llmreference
OpenRouter

Using Command R on OpenRouter

Implementation guide · Command R · Cohere

Serverless

Quick Start

  1. 1
    Create an account at OpenRouter and generate an API key.
  2. 2
    Use the OpenRouter SDK or REST API to call cohere/command-r-08-2024 — see the documentation for request format.
  3. 3
    You'll be billed $0.15/1M input, $0.60/1M output tokens. See full pricing.

Code Examples

See OpenRouter documentation for integration details.

About OpenRouter

OpenRouter provides a unified interface for Large Language Models with better pricing, improved uptime, and no subscription requirements. Route across providers for cost optimization and reliability.

OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.

Pricing on OpenRouter

TypePrice (per 1M)
Input tokens$0.15
Output tokens$0.60

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.

Model Specs

Released2024-04-04
Parameters104B*
Context128K
ArchitectureDecoder Only

Provider

OpenRouter
OpenRouter

OpenRouter, Inc.

New York, NY, USA