Codestral
Specialized code model from Mistral supporting 80+ programming languages. Optimized for code completion, generation, and explanation.
Quick Overview
Pricing
Simple, transparent token-based pricing. Pay only for what you use.
Capabilities
Core strengths and supported features of Codestral.
Performance
Context window capacity and inference speed characteristics.
Context Window
Compact context window optimized for focused tasks, quick interactions, and high-throughput applications.
Speed: Fast
Optimized for low-latency responses. Ideal for real-time applications, chatbots, and interactive experiences where response time is critical.
Quick Start
Get started with Codestral in just a few lines of code.
import OriginalPoint from "originalpoint";
const client = new OriginalPoint({
apiKey: process.env.ORIGINALPOINT_API_KEY,
});
const response = await client.chat.completions.create({
model: "codestral",
messages: [
{
role: "user",
content: "Hello, how can you help me today?",
},
],
max_tokens: 1024,
});
console.log(response.choices[0].message.content);More from Mistral
Explore other models available from Mistral.
Mistral Large
FrontierMistral's flagship model with strong multilingual and coding capabilities. Competitive with frontier models at a lower price point.
Mistral 7B
EconomyCompact model punching above its weight class. Efficient for moderate tasks with surprisingly good language understanding.