- Text Embeddings
Gemini Embedding 2 is Google's natively multimodal embedding model that maps text, images, video, audio, and documents into a single semantic vector space. It is notable…
Powered by Mistral
Codestral Embed 2505 is an embedding model from Mistral AI designed for creating vector representations of text, with a focus on code-related content. It offers an 8K-token context window at a competitive input cost for large-scale retrieval and search applications.
Output tokens per second · Higher is better
Seconds · Lower is better
USD per 1M tokens (blended) · Lower is better
About the model
Codestral Embed 2505 is a Mistral AI embedding model that converts text, especially source code, into dense vector representations for similarity search and retrieval. It is mainly used for semantic code search, powering code-focused RAG pipelines over large repositories, and building coding assistants that rely on high-quality retrieval. It is also suitable for other embedding-driven tasks like indexing technical documentation or integrating with vector databases where efficient storage and search over embeddings is required. The model is part of Mistral’s Codestral line of code-oriented models and represents their first specialized code embedding offering in the 25-05 (May 2025) release generation.
Model capabilities
Generates dense vector embeddings tailored for source code, capturing syntax and semantics for downstream machine learning and retrieval.
Enables semantic search over large codebases by embedding snippets, functions, and files for similarity-based retrieval and navigation.
Supports clustering and organization of code repositories using embeddings to reveal functional groupings, patterns, and architectural structure.
Identifies near-duplicate or similar code blocks by comparing embedding vectors, assisting refactoring, deduplication, and code quality improvements.
Powers retrieval-augmented generation pipelines for coding assistants by providing high-quality embeddings as the retrieval backbone.
Use cases
Transparent pricing
LLM API offers the lowest embedding costs and best performance for Codestral-class models.
| Provider | Region | Latency | Throughput | Uptime | Input ($/1M) | Output ($/1M) | Context |
|---|---|---|---|---|---|---|---|
| LLM API BEST | Global | 80ms | 120K tps | 99.99% | $0.03 | $0.03 | ~1M tokens |
| Mistral | EU West | ~140ms | ~60K tps | 99.9% | ~$0.06 | ~$0.06 | ~1M tokens |
| OpenAI | Global | ~160ms | ~80K tps | 99.9% | ~$0.10 | ~$0.10 | ~1M tokens |
| Azure AI | US East | ~180ms | ~50K tps | 99.9% | ~$0.11 | ~$0.11 | ~1M tokens |
| Google Cloud | US Central | ~170ms | ~70K tps | 99.9% | ~$0.09 | ~$0.09 | ~1M tokens |
Performance benchmarks
| Metric | Codestral Embed 2505 | text-embedding-3-large (OpenAI) | nomic-embed-text (Nomic) |
|---|---|---|---|
| Dimensions | 1024~estimate | 3072 | 768 |
| Max Input Tokens | 8K~estimate | 8K~estimate | 8K~estimate |
| Price per 1M Tokens | $0.05~estimate | $0.13 | $0.10~estimate |
| Throughput | 2,000 tps~estimate | 1,500 tps~estimate | 1,200 tps~estimate |
| Avg Latency | ~120ms~estimate | ~150ms~estimate | ~180ms~estimate |
| Uptime | 99.9%~estimate | 99.9%~estimate | 99.5%~estimate |
30-day usage via LLM API
Architecture & Integration
One unified API. Every major model. Built-in reliability, cost control, and observability.
Automatically route each request to the best model across providers based on latency, cost, and quality. One API, pluggable policies, zero vendor lock-in.
One endpoint, every modelDynamically pick the cheapest viable model for each call, with guardrails on spend. Optimize token usage without rewriting app logic or juggling pricing tables.
Cut spend, keep qualityConfigure fallback chains so failures, rate limits, or regional outages seamlessly fail over to alternatives. Keep production apps resilient without custom retry logic.
Stay online by defaultGet end-to-end traces, latency breakdowns, token usage, and errors across all models and providers. Debug faster and tune prompts with real production telemetry.
See every token flowDefine tasks like chat, generation, extraction, or tools once and map them to any model. Swap providers without touching your business logic or payload shapes.
Think tasks, not modelsRun massive batch inferences with smart chunking, concurrency control, and retries baked in. Ship evaluations, backfills, and data labeling pipelines with one call.
Batch at production scaleDecision guide
FAQ
Codestral Embed 2505 is a Mistral embedding model optimized for generating vector representations of code and related textual content.
It is best suited for code search, semantic retrieval, similarity, and indexing large codebases via high-quality embeddings.
Codestral Embed 2505 supports long input sequences suitable for embedding substantial code files or documents in a single request.
Codestral Embed 2505 is a text-only embedding model and does not support images, audio, or video.
On LLM.API, Codestral Embed 2505 is billed per input token, with exact rates shown in the project’s pricing and usage dashboard.
Latency is typically low and dominated by network and provider response time, making it suitable for real-time or interactive tools.
You select the Codestral Embed 2505 model in your LLM.API request and send text input to receive embedding vectors in the response payload.
It is specialized for code understanding and may outperform general-purpose text embeddings on developer and repository search tasks.
It can embed code and associated natural-language text from multiple languages, but performance may vary across less-represented languages.
It cannot generate natural-language outputs, execute code, or handle non-text modalities, and is limited to producing fixed-length numeric vectors.
Compare
Gemini Embedding 2 is Google's natively multimodal embedding model that maps text, images, video, audio, and documents into a single semantic vector space. It is notable…
paraphrase-MiniLM-L6-v2 is a compact sentence-transformers embedding model from Sentence Transformers that maps text into 384-dimensional vectors. It is notable for offering a strong balance of quality…
Gemini Embedding 001 is Google’s production-grade text embedding model that provides high-quality, multilingual vector representations for retrieval, classification, and other language tasks.