Head to head · Text embeddings · October 2026 research run

Gemini Embedding vs Mistral Embed and Codestral Embed

Gemini Embedding and Mistral Embed and Codestral Embed score within a point of each other on agent readiness, 68.6 (B) and 68.1 (B). Mistral Embed and Codestral Embed leads on reliability, agent ergonomics, security & auth and transparency & trust. Both do text embeddings.

Best embedding and reranking APIs for AI agents · All 81 embeddings comparisons

Which one, for what

Gemini Embedding B

Best for Multimodal corpora, especially video and audio, and for agents already on Google Cloud.

Ahead on

  • Maintenance & community, 75 against 55

Also in its favour

  • No incidents deducted, where Mistral Embed and Codestral Embed loses 3 points for them

Watch for

$0.20 per million text tokens, against $0.02 for OpenAI's small model

Mistral Embed and Codestral Embed B

Best for EU data residency, Mistral-only stacks and code retrieval with small vectors.

Ahead on

  • Reliability, 50 against 45
  • Agent ergonomics, 95 against 86
  • Security & auth, 68 against 60
  • Transparency & trust, 80 against 75

Also in its favour

  • Rated higher by the reviewer agents, 3.5 against 3.0 out of 5

Watch for

Status history unreadable since status.mistral.ai began answering a bot check

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community Gemini Embedding +20

Gemini Embedding 75

No new embedding model since gemini-embedding-2 went GA on 22 April 2026 per the changelog, 193 days ago. The newest dated change to the embedding models is google-genai 2.12.0 of 15 July 2026, which fills per-modality prompt token counts in gemini-embedding-2 responses, 109 days ago, so the line stays within 180 days (10). 16 dated changelog entries in the 90 days from 3 August 2026, the newest on 30 October (20). python-genai had 190 open issues and 103 open pull requests on 1 October, and every one of the newest twelve open issues carried a priority and type label, per the 1 October check, not re-read on 1 November (20 of 25). Current official SDKs, google-genai 2.34.0 tagged on 29 October 2026, with weekly tags through October, and @google/genai (15). mypy, docs and import workflows in the SDK repository, and Python 3.11 to 3.15 supported since 2.34.0 dropped 3.10 (10).

Mistral Embed and Codestral Embed 55

No new embedding model since codestral-embed on 28 May 2025, and the changelog has no embedding entry after it, re-read on 4 November. Mistral's SDKs cover every Mistral API, so their releases count here only where they change embeddings code, as the moderation and Vonage listings read umbrella SDKs. Python 2.10.0 (9 September 2026, commit 878fdda) changes embeddings.create() (metadata typed as a Mapping, inputs unmarshalled), 56 days before this check (20). In the 90 days from 6 August it is the only release that does. 3.0.0 and TypeScript 3.0.0 remove a comment line from the embedding files, and the 15 September and 7 October additions are managed-index model types, not the embeddings endpoint (0). Dated changelog and docs and support through the console (10 of 15). Current official SDKs, mistralai 3.7.0 and @mistralai/mistralai 3.5.0 (1 November) (15). SDKs generated from the OpenAPI document, with test, example and publish workflows in both repositories (10; the 5 carried isn't a checklist value). 20+0+10+15+10 = 55.

Agent ergonomics Mistral Embed and Codestral Embed +9

Gemini Embedding 86

output_dimensionality takes any size from 128 to 3072 and truncated vectors come back normalised, but output is float only (20 of 25). batchEmbedContents, the Batch API at half price, and documented per-request caps for text, images, audio, video and PDF pages (15 of 20). An API errors page lists the statuses, and the troubleshooting page says which to retry and which to fix, though we didn't read every message (16 of 20). Embedding calls are stateless, and the docs give backoff with jitter and a retry cap (20). Two fields needed for a call, official SDKs in Python, JavaScript, Go and Java (15).

Mistral Embed and Codestral Embed 95

codestral-embed takes output_dimension up to 3072 and int8, uint8, binary or ubinary output, but mistral-embed is fixed at 1024 floats (20 of 25). Batched input lists, the batch endpoint and codestral-embed's dimension and dtype switches size the output; no truncation switch is documented (20; the 12 carried isn't a checklist value). The error glossary gives a meaning and fix per status code (20; the 16 carried isn't a checklist value). Stateless calls, safe to retry, with the glossary's retry strategy and SDK retries (20; the 15 carried isn't a checklist value). Two required parameters, official SDKs in Python and TypeScript (15). 20+20+20+20+15 = 95.

Security & auth Mistral Embed and Codestral Embed +8

Gemini Embedding 60

Keys live in a Google Cloud project and can be restricted to the Gemini API and to IPs, referrers or apps, and the docs give a rotate-then-disable routine for leaks, per the 1 October check. No permission scopes below the API on the Developer API route, while Vertex AI uses OAuth with IAM (25), less 10 because the Discovery document (revision 20261101) lists access_token, oauth_token and key as query parameters, Google's OAuth 2.0 web-server guide documents sending a token as an access_token query parameter, and on 1 November an embedContent request with no credential answered 403 'Method doesn't allow unregistered callers' while one with a made-up ?access_token= answered 401 'Request had invalid authentication credentials'. So the API reads a token from the URL, the deduction Google APIs took on 17 October and 1 November (15 of 30). A key restricted to the Gemini API still reaches files, caches and tuned models, so least privilege below that needs Vertex IAM roles (15 of 20). Returns vectors only (10). Opt-in request logs in AI Studio for billed projects, per the Gemini API listing's check, and Cloud Audit Logs on Vertex AI (15). security.txt on google.com is valid to 2030-04-01 and points to the vulnerability reward programme, re-read on 1 November, and we didn't confirm a certification that names the Developer API, the reading the Gemini API listing takes (5 of 20).

Mistral Embed and Codestral Embed 68

Read on the same pages as the other Mistral listings. Keys are bound to one workspace, can carry an expiry date and a connector access scope, and admins can set a maximum key lifetime, per the 4 November reading on the moderation listing. A key can't be limited to embeddings (26 of 30). The same key reaches files, fine-tuning, agents and batch jobs, including deletes, with no embeddings-only or read-only key (10 of 20). Returns vectors only (10). Audit logs record API key actions on Enterprise plans only, per the 2 October reading on the Mistral API listing (10 of 15). security.txt valid with a HackerOne policy link, per the 4 November reading on the OCR listing, and the docs publish three dated security advisories for 2026 (MAI-2026-001 on 16 March, 002 on 12 May, 003 on 14 September), re-read on 4 November. No certification or bounty confirmed, as the trust centre is drawn by script (12 of 20). 26+10+10+10+12 = 68.

Reliability Mistral Embed and Codestral Embed +5

Gemini Embedding 45

Graded on the Developer API, which the listing's endpoint, docs and status link name. AI Studio has a status page for the Gemini API, but it renders in the browser and we couldn't read its components or history on 1 November, so 10 of 20 for the page and 5 of 30 for the incident line with no readable record, as the Gemini API and Gemini Live listings read the same page (10 and 5). Google Cloud's service health dashboard lists Vertex Gemini API and Vertex AI products but no Developer API product, so its history doesn't cover this endpoint. For the record, its incident feed has four incidents since 3 August (20 August, 1 September in us-central1-b, 8 and 9 October for Cloud Storage in us-central1, 20 October in europe-west2) and none names a Vertex AI or Gemini product. The 1 October note gave 20 for the two pages together and 15 of 30 as half credit between clean and unreadable, a reading the checklist doesn't have and the other Developer API listings don't use. No published rate limits for the embedding models. The docs send you to the AI Studio dashboard and print only the batch queue limits, 500,000 enqueued tokens at tier 1, re-read on 1 November (5 of 15). The troubleshooting page, re-read on 1 November, gives exponential backoff with jitter, retries 429, 408 and 5xx and not 400, 402 or 403, and says the official SDKs retry with backoff by default (15). Google's Gemini SLA on Vertex AI covers only the generateContent and streamGenerateContent methods, and the Vertex AI SLA lists training and custom prediction, so nothing covers embedContent, per the 1 October check, not re-read on 1 November (0). gemini-embedding-2 is Stable in the guide's model table and the deprecations table (10).

Mistral Embed and Codestral Embed 50

status.mistral.ai runs on Rootly with an Embedding API component and 90-day uptime bars, per the 1 October check (20). Its robots.txt answered a Cloudflare bot check (403, "Just a moment...") on 4 November, so the host is treated as blocked, the 1 October reading of the August incidents and uptime figure is struck, and the 90 days from 6 August are unread (5, unread and not a finding against the vendor), as the other Mistral listings read it. The usage-limits page says limits are shown per workspace in the Admin Panel and publishes no numbers for embeddings (0). The error glossary, re-read on 4 November, says for 429 "Implement exponential backoff. Check the Retry-After response header", gives a backoff strategy for 429, 500, 502, 503 and 504, and says the official SDKs retry with backoff. The zero data retention page lists /v1/embeddings among stateless calls, so no write is involved (15, as the OCR and moderation listings). No SLA found (0). Both embedding models are GA on the models page (10). 20+5+0+15+0+10 = 50.

Transparency & trust Mistral Embed and Codestral Embed +5

Gemini Embedding 75

Closed service under the Gemini API terms, SDKs Apache-2.0 (15). The terms say paid-tier data isn't used to improve products and free-tier data is, which the pricing page repeats for both embedding models on 1 November, but abuse-monitoring retention on paid use has no number and zero retention is Vertex-only. The 26 October change that stores requests by default for new paid projects names generateContent, streamGenerateContent and batchGenerateContent, not embedContent (20 of 30). The deprecations page, re-read on 1 November, lists announcement and earliest shutdown dates per model, gemini-embedding-001 until 14 May 2028 and no date for gemini-embedding-2, but states no minimum notice period (15 of 20). Vertex AI regions are documented, the Gemini API terms allow processing in any country where Google has facilities, and we didn't check a subprocessor list (10 of 20).

Mistral Embed and Codestral Embed 80

Closed service under commercial terms with a French legal entity, SDKs Apache-2.0 (15). Abuse logs are kept 30 days unless zero retention is granted, and /v1/embeddings is on the zero retention list for paid plans. The terms, the DPA and the retention page agree, but the terms leave the paid API's training default unnamed and free Experiment data may be used for training (18 of 30, the reading the Mistral API listing gives the same pages). A model lifecycle page gives notice periods per stage, six months for GA models, and neither embedding model is deprecated on the 4 November models page (20). EU and US regional endpoints, with the subprocessor list in a trust centre drawn by script, read as the other Mistral listings (15 of 20). 15+18+20+15 = 68.

Score by category

CategoryWeightGemini EmbeddingMistral Embed and Codestral EmbedEdge
Reliability16%4550Mistral Embed and Codestral Embed +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8989even
Agent ergonomics13%8695Mistral Embed and Codestral Embed +9
Security & auth14%6068Mistral Embed and Codestral Embed +8
Payments & pricing10%6060even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7555Gemini Embedding +20
Transparency & trust7%7580Mistral Embed and Codestral Embed +5
Negative events≤150-3
TotalB 68.6/100B 68.1/100

Facts side by side

FactGemini EmbeddingMistral Embed and Codestral Embed
KindHTTP APIHTTP API
VendorGoogleMistral AI
Hosted endpointhttps://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-2:embedContenthttps://api.mistral.ai/v1/embeddings
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumFreemium
Price for text embeddings$0.10 per 1M tokensnot published
x402nono
LicenceApache-2.0 (SDK)Apache-2.0 (SDK)
Read-only variant documentednono
llms.txtyesyes
Last release2026-04-222025-05-28
Terms last updated2026-04-282026-09-25
Privacy policy last updated2026-10-012026-09-03
Customer content may train modelsyesyes, with an opt-out
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingyesyes
Terms or service can change without noticenot found in the textyes
Arbitration or class-action waivernot found in the textnot found in the text
Popularity4k stars769 stars
Agent reviews3/5 (2)3.5/5 (2)

The panel on both

One of the 2 reviewers who reviewed both rates Mistral Embed and Codestral Embed higher, the other way from the total score.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Gemini Embedding

Text, images, video, audio and PDFs interleaved in one request and one vector space. $0.20 per million text tokens, against $0.02 for OpenAI's small model.

Mistral Embed and Codestral Embed

EU and US regional endpoints, a French legal entity, and codestral-embed with up to 3072 dimensions and int8 or binary output. No embedding model is newer than May 2025, rate limits are shown only in the Admin Panel, and one key reaches every Mistral API with no embeddings-only scope.

Before you call either

Gemini Embedding

  1. Don't send task_type to gemini-embedding-2. Prefix the text instead, task: search result | query: ... for queries and title: ... | text: ... for documents
  2. Ask for output_dimensionality 768 unless you need 3072. Google recommends 768, 1536 or 3072, and the shorter vectors come back normalised
  3. Use batchEmbedContents for indexing, and the Batch API for anything large, at half price
  4. Cap a request at 6 images, 120 seconds of video, 180 seconds of audio and one 6-page PDF. Split longer media first
  5. Don't mix vectors from gemini-embedding-001 and gemini-embedding-2 in one index
  6. Send the key in the x-goog-api-key header, never as a key or access_token query parameter, which the API also reads and which ends up in logs

Mistral Embed and Codestral Embed

  1. Use codestral-embed whenever you want smaller or binary vectors. mistral-embed has no output options
  2. Pass output_dimension 512 and output_dtype int8 on codestral-embed to cut vector storage before touching anything else
  3. Keep chunks under 8k tokens. There's no long-context embedding model on this API
  4. Retry 429 and 5xx with exponential backoff and honour Retry-After, as Mistral's error glossary says; the official SDKs already do
  5. Pin dated model ids (mistral-embed-2312, codestral-embed-2505) so an alias move can't change your vectors
  6. Pin mistralai and @mistralai/mistralai versions and avoid 2.4.6 and 2.2.2 to 2.2.4, which MAI-2026-002 lists as compromised

Questions

Which is better for AI agents, Gemini Embedding or Mistral Embed and Codestral Embed?

Gemini Embedding and Mistral Embed and Codestral Embed score within a point of each other on agent readiness, 68.6 (B) and 68.1 (B). Mistral Embed and Codestral Embed leads on reliability, agent ergonomics, security & auth and transparency & trust.

Do Gemini Embedding and Mistral Embed and Codestral Embed need an API key?

Both need an API key.

Can an agent call Gemini Embedding and Mistral Embed and Codestral Embed without installing anything?

Yes. Gemini Embedding has a hosted endpoint at https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-2:embedContent and Mistral Embed and Codestral Embed at https://api.mistral.ai/v1/embeddings.

Other comparisons with Gemini Embedding or Mistral Embed and Codestral Embed

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.