Safeguard
Mistral AI logo

Mistral AI: Codestral Embed

mistral/codestral-embed-2505Available via Safeguard
Public cloudPrivate cloud

Use with Safeguard

Codestral Embed is available via Safeguard. Leave your work email and we will enable it for your workspace.

We will also add you to our newsletter; unsubscribe any time.

Released
May 28, 2025
Context
8,000 tokens
Input
$0.15 / 1M tokens
Output
Price on request

Overview

Embedding model built for representing code for search and retrieval.

Provider
Mistral AI logoMistral AI
Modality
Embeddings
Input
text
Output
embeddings
Weights
Closed
Tags
embeddings, coding, retrieval

Data policy

Prompts go to
Mistral AI (global endpoint by default)
Retention
Commercial terms: no training on customer data unless opted in, with exceptions, Studio Free mode may train on inputs and outputs (opt-out available), pay-as-you-go can opt out, ZDR available on pay-as-you-go for stateless endpoints
Zero data retention
Available
Region
Global by default, optional EU or US regional inference endpoints at 1.1x pricing

Summarised from the provider's published terms. The provider's own policy is what applies.

Where you can run it

How Codestral Embed can be deployed, bought and reached through Safeguard.

Deployment
Public cloudPrivate cloud
Procurement
Not published yet
Inference regions
Not published yet

Closed weights stay with the provider, so this model runs in the provider's cloud, never on-prem or air-gapped.

Pricing

ProviderInput / 1M tokensOutput / 1M tokensContext
Mistral AI$0.15Price on request8K
Notes
Embeddings: input tokens only. Cached input $0.015.
Source
Mistral AI pricing , last verified October 8, 2026

No markup on model usage: you pay the provider's list price.

API

OpenAI-compatible. Your API key and access to this model are set up for your workspace when you choose Use with Safeguard.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.safeguard.sh/gpt/v1",
    api_key="SAFEGUARD_API_KEY",
)

response = client.chat.completions.create(
    model="mistral/codestral-embed-2505",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Base URL https://api.safeguard.sh/gpt/v1, model mistral/codestral-embed-2505.

Product names and logos are trademarks of their respective owners and identify each model's publisher. Their use does not imply endorsement, sponsorship or affiliation.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.