Cohere
Overview
Cohere builds enterprise-focused language models with strong retrieval-augmented generation (RAG) capabilities. Floopy proxies requests to Cohere’s v2 chat API.
Supported Models
| Model | Context Window | Notes |
|---|---|---|
command-r-plus | 128K | Most capable Cohere model |
command-r | 128K | Balanced performance and cost |
command-r-plus-08-2024 | 128K | August 2024 snapshot |
command-r-08-2024 | 128K | August 2024 snapshot |
Setup
- Go to Settings > Providers in the dashboard.
- Click Add provider and select Cohere.
- Paste your Cohere API key and click Save.
Usage
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.floopy.ai/v1", apiKey: process.env.FLOOPY_API_KEY,});
const response = await client.chat.completions.create({ model: "command-r-plus", messages: [{ role: "user", content: "Explain quantum computing." }],});from openai import OpenAI
client = OpenAI(base_url="https://api.floopy.ai/v1", api_key=os.environ["FLOOPY_API_KEY"])
response = client.chat.completions.create( model="command-r-plus", messages=[{"role": "user", "content": "Explain quantum computing."}],)curl https://api.floopy.ai/v1/chat/completions \ -H "Authorization: Bearer $FLOOPY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "command-r-plus", "messages": [{"role": "user", "content": "Explain quantum computing."}]}'Provider-Specific Features
- RAG-optimized — Cohere models are designed for retrieval-augmented generation workloads.
- Enterprise focus — Strong data privacy and compliance guarantees.
- Multilingual — Command R models support 10+ languages natively.