> This page is for version v2 API (default).
> For other versions, use one of these documentation indexes:
> - v2 API (default): https://docs.cohere.com/v2/llms.txt
> - v1 API: https://docs.cohere.com/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cohere.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cohere.com/_mcp/server.

# Using the Embed API

> This document provides a guide on using the Cohere Embed API endpoint to generate embeddings for text data, with instructions on setting up the SDK, running a sample Question and Answering scenario, and details on input types and compression levels for the embeddings.

> **This Guide Uses the Embed API.**
>
> You can find the API reference for the endpoint [here](/reference/embed). If you are interested in producing upwards of 100,000 embeddings we recommend that you use our [Embed Jobs API](/docs/embed-jobs-api).

## Getting Set Up

First, let's install the SDK (the examples below are in Python, Typescript, and Go):