At a glance
- Availability: Experimental (how to enable).
- Auth: API key.
- Connection: The key comes from
COHERE_API_KEY. - Docs: https://docs.cohere.com/reference/about
Credentials
Set these per environment. See Connect an integration.| Variable | Required | Description |
|---|---|---|
COHERE_API_KEY | Yes | Cohere API key from the Cohere dashboard Docs. |
Setup
- Create a Cohere account: Go to https://dashboard.cohere.com and sign up or sign in. New accounts get a free trial key that works for evaluation without billing.
- Create an API key: Open https://dashboard.cohere.com/api-keys. Use the trial key for testing, or click ‘New Production Key’ for production use (requires billing details).
- Store the key: Copy the key and add it to your .env file as COHERE_API_KEY=…
- Verify access: Run the List Models tool to confirm the key works. A 401 means the key is wrong or revoked.
- Trial keys are free but heavily rate limited - switch to a production key for real workloads
- Chat, Embed, and Rerank calls are billed per token/search unit on production keys
Tools
| Tool | Access | Description |
|---|---|---|
| List Models | Read | List the Cohere models available to the API key |
| Create Chat | Write | Generate a chat response with a Cohere Command model (v2 Chat API) |
| Create Embedding | Write | Create embedding vectors for input texts (v2 Embed API) |
| Rerank Documents | Write | Rank a list of documents by relevance to a query (v2 Rerank API) |
Example prompts
- List the Cohere models available to my API key and note which endpoints each supports.
- Use Cohere Rerank to order a list of documents I provide by relevance to my query.