---
last_updated: 2026-11-27
source_url: https://opper.ai/mistral/codestral-embed
title: "Codestral Embed by Mistral"
description: "Mistral Codestral Embed: embedding model specialized for semantic code search and retrieval, 8k context."
---

# Codestral Embed

By [Mistral](https://opper.ai/mistral).

Released 28 May 2025 · [Announcement](https://mistral.ai/news/codestral-embed) · [All Mistral releases](https://opper.ai/model-releases/mistral)

Mistral Codestral Embed: embedding model specialized for semantic code search and retrieval, 8k context.

## Available routes

Codestral Embed runs on 2 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Mistral. [See every Mistral model hosted in the EU](https://opper.ai/models/eu/mistral). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=mistral%2Fcodestral-embed.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Mistral](https://opper.ai/provider/mistral) | `mistral/codestral-embed` | EU | Yes | No | $0.17 | n/a | $0.02 |
| [Mistral](https://opper.ai/provider/mistral) | `mistral:global/codestral-embed` | Multi-region | Yes | No | $0.15 | n/a | $0.01 |

## Key info

- Model id: `mistral/codestral-embed`
- Input: Text
- Output: Embeddings
- Features: none listed
- Context window: 8K
- Input price: $0.17 per 1M tokens ($0.02 cache read)
- Released: 28 May 2025
- EU residency available on Mistral
- Zero data retention on pay-as-you-go
- No training by default

## Data handling per route

Each route hosting Codestral Embed has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Mistral — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-08.

### Mistral — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-08.

## Get started

Call Codestral Embed through the Opper gateway with one API key. Embedding models run on the OpenAI-compatible embeddings endpoint, so the OpenAI SDK works as is.

See the [embeddings API reference](https://docs.opper.ai/v3-api-reference/compatibility/create-embeddings).

Codestral Embed is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Create embeddings with Codestral Embed
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const result = await client.embeddings.create({
  model: "mistral/codestral-embed",
  input: "The quick brown fox jumps over the lazy dog",
});
console.log(result.data[0].embedding.length);
```

cURL:

```bash
curl -s https://api.opper.ai/v3/compat/embeddings \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral/codestral-embed",
    "input": "The quick brown fox jumps over the lazy dog"
  }'
```

## Use Codestral Embed in your apps

Pick your tool to see how to run it on Codestral Embed through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/codestral-embed)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/codestral-embed)
- [Codex](https://opper.ai/apps/codex/codestral-embed)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/codestral-embed)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/codestral-embed)
- [Aider](https://opper.ai/apps/aider/codestral-embed)
- [Goose](https://opper.ai/apps/goose/codestral-embed)
- [Droid](https://opper.ai/apps/droid/codestral-embed)
- [OpenCode](https://opper.ai/apps/opencode/codestral-embed)
- [Pi](https://opper.ai/apps/pi/codestral-embed)
- [OpenClaw](https://opper.ai/apps/openclaw/codestral-embed)
- [Hermes](https://opper.ai/apps/hermes/codestral-embed)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/codestral-embed)
- [OmniRoute](https://opper.ai/apps/omniroute/codestral-embed)
- [Cursor](https://opper.ai/apps/cursor/codestral-embed)
- [Cline](https://opper.ai/apps/cline/codestral-embed)
- [Continue](https://opper.ai/apps/continue/codestral-embed)
- [Kilo Code](https://opper.ai/apps/kilo-code/codestral-embed)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/codestral-embed)
- [Zed](https://opper.ai/apps/zed/codestral-embed)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/codestral-embed)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/codestral-embed)
- [n8n](https://opper.ai/apps/n8n/codestral-embed)
- [LibreChat](https://opper.ai/apps/librechat/codestral-embed)
- [Open WebUI](https://opper.ai/apps/open-webui/codestral-embed)
- [See all apps](https://opper.ai/apps)

## Other models from Mistral

- [Mistral Large 4](https://opper.ai/mistral/mistral-large-4)
- [Mistral Medium 3.5](https://opper.ai/mistral/mistral-medium-3-5)
- [Mistral Small 4](https://opper.ai/mistral/mistral-small-2603)
- [Mistral Large 3](https://opper.ai/mistral/mistral-large-3)
- [Voxtral TTS 3](https://opper.ai/mistral/voxtral-mini-tts-3-0)
- [Timestral 5M](https://opper.ai/mistral/timestral-5m)
