> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cohere

> Cohere provides enterprise-grade NLP through its Command R+ model, alongside best-in-class embeddings and reranking APIs designed for RAG pipelines.

Cohere offers 10 models through Lava's AI Gateway, supporting Chat Completions. Authentication uses `Authorization: Bearer`. See the [Cohere API docs](https://docs.cohere.com/reference) for provider-specific parameters.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.cohere.ai%2Fcompatibility%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'command-a-03-2025',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions

**Target URL:** `https://api.cohere.ai/compatibility/v1/chat/completions`

|                  |                                          |
| ---------------- | ---------------------------------------- |
| **Content Type** | `application/json`                       |
| **Streaming**    | Yes (set `stream: true` in request body) |

| Model                      | Input / 1M tokens | Output / 1M tokens |
| -------------------------- | ----------------- | ------------------ |
| command-a-03-2025          | \$2.50            | \$10.00            |
| command-r-plus-08-2024     | \$2.50            | \$10.00            |
| command-nightly            | \$1.00            | \$2.00             |
| c4ai-aya-expanse-32b       | \$0.50            | \$1.50             |
| c4ai-aya-expanse-8b        | \$0.50            | \$1.50             |
| c4ai-aya-vision-32b        | \$0.50            | \$1.50             |
| c4ai-aya-vision-8b         | \$0.50            | \$1.50             |
| command-r-08-2024          | \$0.15            | \$0.60             |
| command-r7b-12-2024        | \$0.0375          | \$0.15             |
| command-r7b-arabic-02-2025 | \$0.0375          | \$0.15             |

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
