1024-d cosine retrieval
Generates numerical embeddings rather than text or reasoning. Mistral documents 1,024-d cosine vectors for its Mistral Embed Search Toolkit preset.
MODEL REFERENCE / MISTRAL AI
Mistral Embed API for semantic search and RAG: 8K context, 1024-d vectors, $0.10/1M tokens, Python, cosine similarity and original SXF cost analysis.
PRIMARY-SOURCE VERIFIED
Mistral AI documents a 8,000-token context window. Input modalities: text. Output: embedding. Pricing status: Official paid API.
CAPABILITY CONTRACT
Generates numerical embeddings rather than text or reasoning. Mistral documents 1,024-d cosine vectors for its Mistral Embed Search Toolkit preset.
Input modalities come from the cited official model documentation.
Output modality and output-limit claims remain separate so an undocumented token cap is not guessed.
PRICING STATUS
$0.10 input per 1 million tokens.
Mistral Embed charges $0.10 per million input tokens, not output tokens. SXF keeps it outside the generative token calculator and provides a specialist embedding, reindexing and vector-storage estimator below.
MISTRAL EMBED / DEVELOPER ANSWER
Mistral Embed is Mistral AI's general-purpose text embedding model for semantic search, retrieval-augmented generation (RAG), clustering, similarity and document classification. It accepts text and returns numerical embedding vectors, not natural-language answers. The December 2023 version is identified as mistral-embed-2312 in Mistral's model card, while its embedding API examples call mistral-embed. For practical SDK examples below we follow that documented API name and keep the versioned model-card ID distinct.
Mistral documents an 8,000-token input context, a Standard list price of $0.10 per million input tokens, and a 1,024-dimensional mistral-embed vector configuration in its Search Toolkit. Those figures describe an embedding service. No text-generation output-token rate, reasoning budget or conversational maximum output length applies. Mistral Embed is a Premier hosted API model, not an Apache-2.0 downloadable weight checkpoint.
Mistral Embed is for general text similarity, while Codestral Embed is a separate model developed for source-code retrieval and offers documented output dimension/type controls. Do not reuse its $0.15/MTok price or adjustable dimensions as if they were guaranteed for Mistral Embed. For text RAG, the supported mistral-embed Search Toolkit preset uses 1,024 dimensions and cosine distance; verify your actual endpoint output before defining a persistent vector index.
PRIMARY-SOURCE FACTS
GA Premier release dated December 11, 2023. The documentation's working API examples use mistral-embed.
Input-token ceiling stated by the provider. Split long documents into coherent, overlapping chunks rather than submitting an oversized whole book.
Mistral Search Toolkit's MISTRAL_EMBED_DIM_1024 preset corresponds to model name mistral-embed, with cosine distance.
One numeric embedding per accepted input text. There is no generated chat response or an output token rate to estimate.
Standard Mistral API price, before any separate vector store, network, retries or downstream LLM inference charges.
Accepts input text or a list of texts, returns vectors and API usage. Batching multiple texts in one request is supported.
The Mistral Embed model card and Search Toolkit embedding preset specification provide the exact provenance. Mistral also offers separate 128- and 256-dimensional embedding configurations in its toolkit; these carry distinct model names and must not be assumed to be configurable output sizes of the original 1,024-dimensional Mistral Embed endpoint.
SXF ORIGINAL EMBEDDING ECONOMICS
Embedding a document creates a vector. The input tokens needed for the initial corpus and subsequent user queries are billable inputs, but the model's vector output does not have a separate advertised generated-token fee. Below, SXF derives transparent direct-model API costs from Mistral's published $0.10 / 1,000,000 input tokens, without pretending to have a paid invoice or assuming extra discounts for Batch mode.
| Workload | Input tokens billed | Estimated model cost | What it excludes |
|---|---|---|---|
| 100 documents × 500 tokens | 50,000 | $0.005 | Vector storage and retrieval |
| 10,000 chunks × 500 tokens | 5,000,000 | $0.50 | Retries, duplicated text and index overhead |
| 100,000 chunks × 500 tokens | 50,000,000 | $5.00 | Database, inference and human review |
| 1M chunks × 500 tokens | 500,000,000 | $50.00 | Approximately 4.096 GB of float32 vector payload |
| 100,000 queries × 20 tokens | 2,000,000 | $0.20 | Search service and response generator |
SXF formula: embedding API cost = total input tokens × $0.10 / 1,000,000. To budget a recurring system, also count new chunks, any re-embedded percentage after edits, repeated user queries and input retries. Every token amount in these examples is an assumption, not a measured token count for arbitrary documents. Use the returned API usage fields for actual metering and consult the current model rate before contracting.
A 1,024-dimensional embedding encoded as 32-bit floats has a theoretical numeric payload of 1,024 × 4 = 4,096 bytes per vector. That is 4.096 GB for one million vectors in decimal units, before document IDs, metadata, storage indexing, HNSW edges, replicas and database compression. This is independent mathematical analysis from SXF, not a measurement of any provider's vector database. Changing storage precision, sharding, indexing strategy or metadata can change actual footprint substantially.
| 1024-d vectors | Float32 raw payload | Binary GiB |
|---|---|---|
| 10,000 | 40.96 MB | 0.038 GiB |
| 100,000 | 409.6 MB | 0.381 GiB |
| 1,000,000 | 4.096 GB | 3.815 GiB |
SXF INTERACTIVE ORIGINAL COST MODEL
Estimate initial API processing, monthly changed-chunk re-embedding, query vectors and theoretical float32 vector storage. This calculator is a locally executed sensitivity analysis; it sends no text or inputs to external services.
100,000 chunks × 500 tokens; 5% monthly re-indexing; 100,000 queries × 20 tokens.
Does not include vector database storage/compute bills, RAG generator tokens, metadata, query expansion, embedding cache, sales taxes or minimum charges. Changing model or dimensions requires rebuilding a compatible index.
COPYABLE DEVELOPER QUICKSTART
Use the officially documented mistral-embed name with client.embeddings.create(). Keep your Mistral API key in server environment variables, not in public HTML or client JavaScript. An SDK returns data vectors and usage counters; vector dimensions should be checked before writing persistent indexes.
import math
import os
from mistralai.client import Mistral
documents = [
"Refunds are available within 30 days.",
"Support is available from 9 AM to 6 PM.",
"Invoices are issued on the first of each month.",
]
query = "Can I return my subscription payment?"
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
result = client.embeddings.create(
model="mistral-embed", inputs=documents + [query]
)
vectors = [item.embedding for item in result.data]
query_vector = vectors[-1]
def cosine(left, right):
dot = sum(a * b for a, b in zip(left, right))
norm = math.sqrt(sum(a * a for a in left))
norm *= math.sqrt(sum(b * b for b in right))
return dot / norm if norm else 0.0
ranking = sorted(
((cosine(query_vector, vec), text)
for vec, text in zip(vectors[:-1], documents)),
reverse=True
)
for score, text in ranking:
print(f"{score:.4f} {text}")
print("Dimension:", len(query_vector))
print("API usage:", result.usage)
This example is an executable method based on official SDK patterns, but SXF has not run a paid embedding call for this page. Actual similarity scores depend on the model version and inputs and are not promised here. In production, map every vector to stable document/chunk IDs, enforce access filters and measure retrieval outcomes against labeled relevance judgments.
curl "https://api.mistral.ai/v1/embeddings" \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-embed",
"input": [
"Find the invoice policy.",
"What are the refund rules?"
]
}'
Mistral's REST endpoint uses input, while the current Python SDK uses inputs. Keep these differences separate. The REST interface offers optional output_dimension and output_dtype only where the selected model supports them; their presence in a shared schema does not guarantee that the 2023 Mistral Embed supports arbitrary dimensions or 8-bit output. Use Mistral's text embeddings examples to check syntax.
PRODUCTION RETRIEVAL ARCHITECTURE
mistral-embed in your environment.Review the SXF vector database architecture and filtering guide, RAG vs fine-tuning vs long-context trade-offs, and embedding model comparison. All three decisions—embedding model, retrieval storage and downstream generator—need independent measurement.
NO FABRICATED BENCHMARK WINNERS
These models serve related but different applications. Mistral Embed targets general text embeddings; Codestral Embed is optimized for source-code search; Gemini Embedding 001 is an external provider alternative with its own API, dimensionality controls and pricing. Their embedding vectors are not interchangeable: mixing them into one index invalidates naive distance comparisons even when vector dimensions match.
| Model | Best initial use | Documented context | Model's input price |
|---|---|---|---|
| Mistral Embed | General text, multilingual search and RAG | 8K tokens | $0.10 / 1M input tokens |
| Codestral Embed | Source code and repository retrieval | 8K tokens | $0.15 / 1M input tokens |
| Gemini Embedding 001 | General-purpose external-model comparison | Check Google model card | Check its current pricing route |
Model cards and published prices alone cannot prove superiority in Arabic, legal PDFs, software repositories or specialized entity matching. Use your own labeled query–document pairs, stable chunking, identical search parameters and measured relevance. Codestral's code-centric features, adjustable embedding dimensions and separate $0.15 price must not silently be applied to Mistral Embed.
SXF ORIGINAL REPRODUCIBLE EVALUATION DESIGN
This is a preregistered-style original SXF test specification, not measured Mistral embedding performance. To establish whether Mistral Embed is a useful default for your corpus, prepare 24 human-labeled retrieval queries in four groups of six: English support policy search, Arabic/French multilingual retrieval, numerical/identifier-heavy documents and adversarial near-duplicate passages.
| Six-query group | Question to test | Primary scoring focus |
|---|---|---|
| English support policies | Does a paraphrased question retrieve the correct policy? | Recall@5 and MRR of ground-truth document |
| Multilingual questions | Does Arabic/French search locate the authorized equivalent? | Recall@5 by language and paraphrase category |
| Critical numbers and IDs | Are exact amounts, invoice IDs and dates preserved? | False positives vs exact-match/BM25 baseline |
| Near-duplicate distractors | Will a similar but outdated policy outrank the current source? | MRR and correct revision selection |
Keep dataset, chunk sizes, overlap, top-k and query text fixed for each candidate embedding model. Use a separate index per embedding model, because cross-model cosine scores have no common scale. Add a BM25 baseline, measure total embedding and vector-search expense, and log authorization failures independently of retrieval relevance. When multiple sources are relevant, report graded metrics such as nDCG in addition to single-positive MRR.
Original SXF offline evaluation resources: Python Recall@k and MRR scorer and 12 clearly synthetic query/ranking fixtures. These are invented example rankings, not vectors or search results returned by Mistral. Replace them with real model-produced ranked IDs and independently labeled relevant IDs to obtain meaningful performance evidence. For methodology, see SXF benchmark guidance and the evaluation registry.
SEARCH INTENT FAQ
The model card names the December 2023 release mistral-embed-2312. Mistral's Python and REST embedding examples use mistral-embed.
The published Standard Mistral Embed rate is $0.10 per million input tokens, with no separately published generated-text output-token rate. Vector database and RAG answer-model costs are separate.
Mistral's Search Toolkit pairs mistral-embed with a 1,024-dimensional cosine-distance vector preset. Check the returned array length in your own endpoint response before defining an index.
The official versioned model card lists 8,000 tokens per input. Use document chunking for texts longer than the limit.
No. It maps text inputs into embedding vectors; it does not return chat answers, generated articles or reasoning token streams.
The cited model is classified as a GA Premier embedding API, not an openly downloadable model-weight release. Do not confuse the hosted endpoint with Mistral's separate open-weight models.
Start with Mistral Embed for general text search and Codestral Embed for code-specific retrieval. Benchmark actual query relevance, languages, cost and downstream answer quality rather than assuming one is universally better.
Yes. Store the model's vectors in a compatible index with the correct dimension and distance function. Use the same embedding model for document and query vectors and enforce access controls.
SOURCES AND EDITORIAL INDEPENDENCE
Source review date: November 8, 2026. Mistral's official card and SDK documentation support the published $0.10 rate, 8K input context, endpoint, model names and vector representation. Its Search Toolkit documents the 1,024-dimension configuration. The source-of-truth SXF model catalog and its October 6 verification/history are left unchanged. SXF authored the indexing cost arithmetic, float32 storage model, interactive estimator and retrieval evaluation protocol. Neither model accuracy nor actual API requests were measured or falsely attributed here.
CAVEATS
Mistral lists Mistral Embed as a current GA Premier embedding model with an 8k context window.
The official model card publishes $0.10 per 1M input tokens.
The model is excluded from the generative token calculator because embeddings have no output-token price dimension.
EXPLORE
OFFICIAL SOURCES
WHAT CHANGED
No post-baseline factual changes recorded for Mistral Embed since 2026-10-06.
VERIFIED CHANGE HISTORY
Baseline verified: 8,000 context · Not published max output · $0.10 input per 1 million tokens
Official evidence ↗Append-only SXF ledger · 1 verified event · chain head 5cb61a0bb057…