MODEL REFERENCE / MISTRAL AI

Mistral Embed
API, $0.10 pricing, 1024-d RAG vectors.

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.

8,000context tokens
1,024Search Toolkit vector dimensions
2026-10-06last verified

PRIMARY-SOURCE VERIFIED

Mistral Embed at a glance.

Mistral AI documents a 8,000-token context window. Input modalities: text. Output: embedding. Pricing status: Official paid API.

MODEL IDmistral-embed-2312
CONTEXT WINDOW8,000tokens
OUTPUTEmbedding vectorsnot generated chat tokens
MODEL STATUSGA Premierhosted embedding API
STANDARD INPUT$0.10per 1 million tokens
STANDARD OUTPUT—per 1 million tokens

CAPABILITY CONTRACT

Published model behavior.

VECTOR MODEL

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.

INPUT

text

Input modalities come from the cited official model documentation.

OUTPUT

embedding

Output modality and output-limit claims remain separate so an undocumented token cap is not guessed.

PRICING STATUS

Official paid API.

$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

What is Mistral Embed and when should you use it?

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.

Model selection warning — verified November 8, 2026

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

Mistral Embed specifications: 8K context, 1024 dimensions, API ID and pricing.

MODEL CARD VERSION

mistral-embed-2312

GA Premier release dated December 11, 2023. The documentation's working API examples use mistral-embed.

CONTEXT WINDOW

8,000 tokens

Input-token ceiling stated by the provider. Split long documents into coherent, overlapping chunks rather than submitting an oversized whole book.

VECTOR SIZE

1,024 dimensions

Mistral Search Toolkit's MISTRAL_EMBED_DIM_1024 preset corresponds to model name mistral-embed, with cosine distance.

INPUT / OUTPUT

Text → vector

One numeric embedding per accepted input text. There is no generated chat response or an output token rate to estimate.

LIST PRICE

$0.10 / 1M input tokens

Standard Mistral API price, before any separate vector store, network, retries or downstream LLM inference charges.

ENDPOINT

POST /v1/embeddings

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

Mistral Embed pricing: $0.10 per million tokens, indexing costs and queries.

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.

SXF arithmetic: direct Mistral Embed model cost only (USD, Standard API)
WorkloadInput tokens billedEstimated model costWhat it excludes
100 documents × 500 tokens50,000$0.005Vector storage and retrieval
10,000 chunks × 500 tokens5,000,000$0.50Retries, duplicated text and index overhead
100,000 chunks × 500 tokens50,000,000$5.00Database, inference and human review
1M chunks × 500 tokens500,000,000$50.00Approximately 4.096 GB of float32 vector payload
100,000 queries × 20 tokens2,000,000$0.20Search 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.

How much space does a 1024-dimensional vector use?

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.

SXF vector-only theoretical storage, not a hosted vector database invoice
1024-d vectorsFloat32 raw payloadBinary GiB
10,00040.96 MB0.038 GiB
100,000409.6 MB0.381 GiB
1,000,0004.096 GB3.815 GiB

SXF INTERACTIVE ORIGINAL COST MODEL

Mistral Embed cost calculator: documents, tokens, re-indexing and vector storage.

Plan a text RAG indexing workload

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.

Initial embedding API cost$5.00
Monthly re-index + query API cost$0.45
Raw float32 vector payload409.60 MB

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

How to use the Mistral Embed API in Python and cURL.

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.

Python: embed documents and a query, then rank by cosine similarity

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: POST /v1/embeddings

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

Build a document RAG pipeline with Mistral Embed and a vector database.

  1. Extract documents with provenance. Parse PDFs and scans first, retaining page and source IDs. For scans, Mistral OCR 4.1 is a separate Document AI extraction service with per-page fees.
  2. Split content intentionally. Chunk by section, heading or sentence with limited overlap. Keep chunks within the 8K input limit, count tokens with supported tooling and avoid unnecessary overlap-driven token multiplication.
  3. Embed consistently. Embed document chunks and user queries with the same versioned/configured embedding space. Confirm expected 1,024-d output for mistral-embed in your environment.
  4. Store, filter, retrieve. Store vectors with tenant permissions and document IDs. Perform authorization filtering before revealing neighbors; combine cosine vector search with keyword/BM25 and a reranker when supported by measurements.
  5. Generate only after retrieval. Pass permission-checked, cited source passages to the separate answer model. Embedding similarity itself is not evidence that an answer is accurate or current.
  6. Evaluate and monitor. Measure recall@k, MRR, nDCG when graded judgments exist, citation validity, cold/warm latency and cost per accepted answer. Version the index and re-embed on model changes.

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

Mistral Embed vs Codestral Embed vs Gemini Embedding 001.

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.

Published capabilities and prices; quality must be benchmarked on your corpus
ModelBest initial useDocumented contextModel's input price
Mistral EmbedGeneral text, multilingual search and RAG8K tokens$0.10 / 1M input tokens
Codestral EmbedSource code and repository retrieval8K tokens$0.15 / 1M input tokens
Gemini Embedding 001General-purpose external-model comparisonCheck Google model cardCheck 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

SXF 24-query retrieval study: Recall@k, MRR, languages and hard negatives.

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.

Proposed SXF evaluation plan; task quality results intentionally not invented
Six-query groupQuestion to testPrimary scoring focus
English support policiesDoes a paraphrased question retrieve the correct policy?Recall@5 and MRR of ground-truth document
Multilingual questionsDoes Arabic/French search locate the authorized equivalent?Recall@5 by language and paraphrase category
Critical numbers and IDsAre exact amounts, invoice IDs and dates preserved?False positives vs exact-match/BM25 baseline
Near-duplicate distractorsWill 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

Mistral Embed FAQ: API pricing, 1024 dimensions, context, Python and RAG.

What is the Mistral Embed API model ID?

The model card names the December 2023 release mistral-embed-2312. Mistral's Python and REST embedding examples use mistral-embed.

How much does Mistral Embed cost per million tokens?

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.

How many dimensions does Mistral Embed produce?

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.

What is Mistral Embed's maximum context?

The official versioned model card lists 8,000 tokens per input. Use document chunking for texts longer than the limit.

Is Mistral Embed a text generation or reasoning model?

No. It maps text inputs into embedding vectors; it does not return chat answers, generated articles or reasoning token streams.

Is Mistral Embed open source and runnable locally?

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.

Mistral Embed or Codestral Embed: which is better for RAG?

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.

Can I use Mistral Embed with pgvector, Qdrant or Pinecone?

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

Mistral documentation, verified facts and SXF analysis disclosures.

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

What the source record does not assume.

01

Mistral lists Mistral Embed as a current GA Premier embedding model with an 8k context window.

02

The official model card publishes $0.10 per 1M input tokens.

03

The model is excluded from the generative token calculator because embeddings have no output-token price dimension.

EXPLORE

Keep the model in context.

OFFICIAL SOURCES

Verification links.

WHAT CHANGED

Mistral Embed: what changed.

No post-baseline factual changes recorded for Mistral Embed since 2026-10-06.

HISTORICAL BASELINE2026-10-06Original ledger snapshot, not the latest source check. See Last verified above.

VERIFIED CHANGE HISTORY

Mistral Embed verified history.

Open ledger JSON ↗
BASELINE

Mistral Embed

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…