Codestral Embed 2505 is Mistral AI's embedding model for code, released 2025-10, built for retrieval over repositories and code databases. It targets coding assistants and code search where embeddings must capture programming semantics.
MirAPI doesn’t offer this model. The prices shown are the official list prices.
Modalities
inTextoutVector
Price
$0.15/ 1M in
Context
8K
Released
Oct 30, 2025
Quick start
POST /v1/embeddingsimport os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.embeddings.create( model="", input="The quick brown fox", ) vector = resp.data[0].embedding # len(vector) — pass dimensions= to shorten it
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const resp = await client.embeddings.create({ model: "", input: "The quick brown fox", }); const vector = resp.data[0].embedding;
curl https://api.mirapi.ai/v1/embeddings \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "", "input": "The quick brown fox" }'
Links
Wire Codestral Embed 2505 into your product
Start free1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.