Mistral AI's cutting-edge code generation model specializing in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code completion, correction, and test generation. Features efficient architecture with 2x faster generation than its predecessor.
256K tokens
1
available
Cheapest
Mistral AI
$1.20/1M tokens
Mistral AI
Sorted by total cost (input + output per 1M tokens). Click a row to view provider details.
| Provider | Pricing (per 1M) | Rate Limits | Regions | Health | Latency |
|---|---|---|---|---|---|
In: $0.30Out: $0.90 | 600 RPM / 1.0M TPM | us-east-1eu-west-1 | Healthy | 0ms |
Use this model via Mistral AI with an OpenAI-compatible SDK.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.mistral.ai/v1",
apiKey: process.env.MISTRAL_API_KEY,
});
const response = await client.chat.completions.create({
model: "codestral-2501",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Using Mistral AI API • OpenAI-compatible SDK