Skip to main content
Cohere

Search documentation

Type to search this documentation.

Cohere via OpenAI SDK Using Compatibility API

Today, we are releasing our Compatibility API, enabling developers to seamlessly use Cohere's models via OpenAI's SDK.

This API enables you to switch your existing OpenAI-based applications to use Cohere's models without major refactoring.

It includes comprehensive support for chat completions, such as function calling and structured outputs, as well as support for text embeddings generation.

Check out our documentation on how to get started with the Compatibility API, with examples in Python, TypeScript, and cURL.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu