Skip to content

Mistral: codestral-embed-2505

Active on this gateway Embedding

Mistral Codestral Embed is specially designed for code, perfect for embedding code databases, repositories, and powering coding assistants with state-of-the-art retrieval.

AcceptsText
ProducesEmbedding

Pricing

Current price per 1,000,000 tokens. Every request is billed automatically from its exact usage.

Input 53,820 Toman$0,18 / 1M tokens ≈ 53,82 Toman / 1K tokens≈ $0,00018 / 1K tokens
Output 0 Toman$0,00 / 1M tokens ≈ 0,00 Toman / 1K tokens≈ $0,00000 / 1K tokens

Statistics

Live performance and usage of this model, aggregated across all users.

API

Call this model from any OpenAI-compatible client using your API token.

POST https://apiex.cloud/api/v1/embeddings
<?php
$ch = curl_init( "https://apiex.cloud/api/v1/embeddings" );

curl_setopt_array( $ch, array(
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => array(
        "Authorization: Bearer YOUR_API_KEY",
        "Content-Type: application/json",
    ),
    CURLOPT_POSTFIELDS     => json_encode( array(
        "model" => "mistralai/codestral-embed-2505",
        "input" => "Your text here",
    ) ),
) );

$response = json_decode( curl_exec( $ch ), true );
print_r( $response );

Authentication Every request must include an Authorization: Bearer <TOKEN> header. Generate a token from your account's API Keys page — you can set its rate limit and IP restrictions.

Supported parameters

Parameter Type Description
model string, required This model's ID, exactly as shown above.
input string or array, required The text (or list of texts) to embed.

Frequently asked questions

What is codestral-embed-2505?

Mistral Codestral Embed is specially designed for code, perfect for embedding code databases, repositories, and powering coding assistants with state-of-the-art retrieval.

How much does codestral-embed-2505 cost?

Input tokens are priced at $0,18 per 1,000,000 tokens and output tokens at $0,00 per 1,000,000 tokens. Pricing is billed automatically per request; no separate plan is required.

What is the context length of codestral-embed-2505?

codestral-embed-2505 supports a context window of up to 8,192 tokens.

Does codestral-embed-2505 support image input?

codestral-embed-2505 currently accepts text input only.

Which provider is codestral-embed-2505 from?

codestral-embed-2505 is developed by Mistral and made available on this gateway through our routing infrastructure.

When was codestral-embed-2505 added to this gateway?

codestral-embed-2505 has been available on this gateway since October 28, 2026.

Is codestral-embed-2505 currently available?

Yes, codestral-embed-2505 is active and can be used right now through this gateway.

Ready to build with one API?

Create an account, make a key and send your first request in a few minutes.

Create your account