impulse

Codestral 2405

API id codestral-2405
Input / 1M
-
not listed
Output / 1M
-
not listed
Context window
32K
tokens
Max output
8K
tokens per reply
Hosts
2
2 listings
Released
-
date not published

Where to run it

2 hosts serve Codestral 2405. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
codestral-2405
-
codestral-2405
-

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text
Features
Assistant prefill

Similar models

This model has no listed price, so these are current models with similar capabilities.

Smaller Mistral AI models

  • Magistral Medium
    Mistral AI · on Mistral AI
    $1.50 / $7.50
    Has every key capability
  • Pixtral Large
    Mistral AI · on Mistral AI
    $2.00 / $6.00
    Has every key capability
  • Mistral Medium
    Mistral AI · on Mistral AI
    $1.50 / $7.50
    Has every key capability

Other frontier labs

  • GPT-5.5 Pro
    OpenAI · on OpenAI
    $30.00 / $180.00
    Has every key capability
  • Claude Fable 5.2
    Anthropic · on Anthropic
    $8.00 / $40.00
    Has every key capability
  • Gemini 4 Carbon
    Google · on Google AI Studio
    $2.00 / $10.00
    Has every key capability
  • Grok 4.7
    xAI · on xAI
    $2.00 / $6.00
    Has every key capability

Open-weight picks

  • Command A Plus
    Cohere · on AIHubMix
    $2.50 / $10.00
    Has every key capability
  • Kimi K3.1 Pro
    Moonshot AI · on Databricks
    $2.00 / $10.00
    Has every key capability
  • Qwen3.8.2 4T A95B
    Alibaba Qwen · on DeepInfra
    $2.00 / $6.00
    Has every key capability
  • Muse Spark Open
    Meta · on Baseten
    $1.25 / $4.25
    Has every key capability

Model line

Newer and older versions, at each lab's own price.

  1. Aug 2025Codestral 2508Latest$0.30 / $0.90
  2. UndatedCodestral 2501$0.20 / $0.60
  3. UndatedCodestral 2405This pageNot listed
  4. UndatedCodestral 2$0.30 / $0.90

Call it

Using Mistral Codestral's API.

Python
from litellm import completion

response = completion(
    model="codestral/codestral-2405",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

Which APIs offer Codestral 2405?

Codestral 2405 runs on 2 APIs: Mistral Codestral and Mistral Codestral FIM.

What is Codestral 2405's context window?

32K tokens, with up to 8K tokens in one reply.

Is Codestral 2405 being retired?

It has been retired: Mistral Codestral FIM retired it on 16 Jun 2025.

Is there a newer version of Codestral 2405?

Yes. Codestral 2508 is the newest model in this line, released on 1 Aug 2025.

What is Codestral 2405's API model id?

Use codestral-2405 with Mistral Codestral.

Sources

Raw catalog entry for codestral-2405 on Mistral Codestral
{
  "deprecation_date": "2025-06-16",
  "deprecation_source": "https://docs.mistral.ai/getting-started/models/",
  "input_cost_per_token": 0,
  "litellm_provider": "codestral",
  "max_input_tokens": 32000,
  "max_output_tokens": 8191,
  "mode": "chat",
  "output_cost_per_token": 0,
  "source": "https://docs.mistral.ai/capabilities/code_generation/",
  "supports_assistant_prefill": true,
  "supports_tool_choice": true
}