We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Mistral: Codestral Embed 2505

mistralai/codestral-embed-2505
EmbeddingsInput: text8KAdded Oct 30, 2025

Try Mistral: Codestral Embed 2505 now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Mistral: Codestral Embed 2505 at a glance

  • Input price is 650% higher than the median of 34 Embeddings models.

About Mistral: Codestral Embed 2505

Mistral Codestral Embed 2505 is an embeddings model from Mistral, released on 30 October 2025 and published on api14 under the model id mistralai/codestral-embed-2505. It sits in the embeddings category rather than the chat category, which means it is not built to hold a conversation or generate written answers. Instead it turns input into vectors that represent meaning, and Mistral describes it as specially designed for code.

The model accepts text as its only input and returns embeddings as its only output, with a context window of 8192 tokens. That is enough room to embed a substantial function, a class, or a documentation section in a single pass. It declares no supported sampling parameters, which is typical for embedding endpoints where temperature and similar controls do not apply; you send your input and read the resulting vector. The max output field is listed as 6553.

Because it is tuned for code, the most direct use cases are the ones Mistral names: embedding code databases and repositories, and powering coding assistants that need strong retrieval. In practice that covers semantic search across a monorepo, deduplication of near-identical snippets, clustering files by similarity, and building the retrieval layer that feeds relevant code into a coding assistant. General text embedding is possible since input is plain text, but the model's stated focus is source code and the retrieval workloads around it.

Calling it through api14 works the same way as any other model on the platform, because api14 exposes an OpenAI-compatible API. You point your existing OpenAI client at the api14 base URL, supply your api14 key, and pass mistralai/codestral-embed-2505 as the model id on the embeddings endpoint. No extra parameters are listed as supported for this model, so a straightforward request containing the model id and your input text is what you need. If you already have embedding code written against the OpenAI SDK, the change is essentially the base URL, the key, and the model string.

The main thing to weigh is the division of labour. This model produces vectors, not prose, so a task that needs generated explanations, code completion, or agent behaviour requires a chat model alongside it, with Codestral Embed handling the retrieval step. Where your workload is purely semantic matching over code or text and fits within the 8192 token context, this model is the appropriate choice.

How to call the Mistral: Codestral Embed 2505 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "mistralai/codestral-embed-2505".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.embeddings.create({
  "model": "mistralai/codestral-embed-2505",
  "input": [
    "The quick brown fox",
    "Lorem ipsum"
  ]
});
console.log(result.data.map((d) => d.embedding.length));

Specifications

Context length
8,192
Max output
6,553
Input
text
Output
embeddings

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Mistral: Codestral Embed 2505: frequently asked questions

How much does the Mistral: Codestral Embed 2505 API cost?
Mistral: Codestral Embed 2505 costs Input $0.52 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Mistral: Codestral Embed 2505?
Mistral: Codestral Embed 2505 reads up to 8,192 tokens per request: prompt, history and documents together. It writes up to 6,553 output tokens per response.
What can Mistral: Codestral Embed 2505 do?
Mistral: Codestral Embed 2505 accepts text and returns embeddings.
How do I call Mistral: Codestral Embed 2505 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "mistralai/codestral-embed-2505". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Mistral: Codestral Embed 2505?
Comparable Embeddings models at a similar price: Google: Gemini Embedding 001, OpenAI: Text Embedding 3 Large, VoyageAI by MongoDB: voyage-code-4. Each runs through the same API key, so switching is one string.

Mistral: Codestral Embed 2505 community

New topic

This community has no topics yet. Open the first one about Mistral: Codestral Embed 2505.