# Cohere Provider for the Vercel AI SDK now available

**Published:** June 17, 2024 | **Authors:** Lars Grammel

---

The Vercel AI SDK now supports Cohere through [a new official provider](https://sdk.vercel.ai/providers/ai-sdk-providers/cohere). To use the provider, install the relevant package:

```bash
pnpm install ai @ai-sdk/cohere
```

You can then use the provider with all [AI SDK Core](https://sdk.vercel.ai/docs/ai-sdk-core/overview) methods. For example, here's how you can use it with `generateText`:

```javascript
import { cohere } from '@ai-sdk/cohere';
import { generateText } from 'ai';
const { text } = await generateText({
  model: cohere('command-r-plus'),
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
```

For more information, [please see the documentation](https://sdk.vercel.ai/providers/ai-sdk-providers/cohere).

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)