Codestral Embed 2505

Neural Network

Codestral Embed 2505 is a Mistral embedding model for semantic code search and repository vectorization.

Main

/

Models

/

Embedding Models

/

Codestral Embed 2505

Specifications

Input
text
Output
vectors (embeddings)
Context size
8 192 tokens
Vector dimensions
1 536
17,68 ₽

Prompt cost

(per 1M tokens)

*Prices are shown for API usage via ECO providers.
Code example and API for Codestral Embed 2505We offer full access to the OpenAI API through our service. All our endpoints fully comply with OpenAI endpoints and can be used both with plugins and when developing your own software through the SDK.Create API key
Javascript
Python
Curl
illustaration

How it works Codestral Embed 2505?

Codestral Embed 2505 is a Mistral embedding model optimized for code: it converts functions, files, and entire repositories into vectors, providing accurate results for codebase searches. In BotHub, access is via a unified OpenAI-compatible API, works without VPN or foreign cards, and payment is in rubles based on token usage. Use the model for semantic repository search, RAG assistants for internal documentation and code, deduplication and clustering of snippets, and finding similar sections during refactoring. Store vectors in Qdrant, pgvector, or other storage; switching to another model in BotHub does not require rewriting your integration.

Frequently asked questions about Codestral Embed 2505

Can I use codestral-embed-2505 results for commercial purposes?

You can use generated results for commercial purposes. You own all rights to the content you create. The only restriction: make sure your prompt does not include copyrighted third-party material. You are responsible for respecting the rights to any input data.

What can codestral-embed-2505 do and what tasks is it suitable for?

codestral-embed-2505 by Mistral converts code and text into vectors. Hence the tasks: semantic repository search, RAG for documentation, clustering and deduplication of snippets, finding similar functions, and classification. The 8192-token context window is enough for a large file or an entire related code block.

In what quality and format does codestral-embed-2505 generate?

The output is not text, but a numerical vector of fixed dimensionality. Such embeddings are stored in vector databases — Qdrant, pgvector, Milvus — compared using cosine similarity, and used to get a ranked list of similar snippets. See the API response for the first request for the exact dimensionality.

Can codestral-embed-2505 reason before answering?

Our data does not indicate reasoning capabilities before answering, and the model's task is different: it does not formulate an answer but calculates a vector representation of the input. Logic on top of the results is built by your code or a generative model connected to the same API.

Does codestral-embed-2505 support function calling and JSON output?

Our data does not indicate function calling or structured output — this is not a primary scenario for embeddings. However, the API response comes as standard JSON with an array of vectors, so parsing it in a pipeline and saving it to a database is straightforward.

Can I upload images, audio, or video to codestral-embed-2505?

Our data does not indicate support for anything other than text, so expect text and code. If your project needs multimodal inputs, you can switch to a suitable model in BotHub via the unified OpenAI-compatible API without rewriting your integration.

How well does codestral-embed-2505 understand Russian?

We have no data on languages, so we cannot promise accuracy — please test it on your own corpus. A practical tip: run both queries and documents through the same model; this keeps the vectors comparable and the search predictable.

Support ServiceOpen from 10:00 to 18:00 MSK