Codestral-22B-v0.1
Mistralmistral/codestral-22b-v0.1Open WeightsOpen Mistral code model for fill-in-the-middle and 80+ programming languages
TECHNICAL SPECIFICATIONS
MODEL CONTEXT PROTOCOL (MCP) READINESS
⚠ Codestral-22B-v0.1 does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.
MCP Context Window Recommendations
With a context capacity of 32,768 tokens, this model can handle compact tool sets. Consider keeping MCP server tool manifests minimal to preserve headroom.
API CALL INVOCATION EXAMPLE
// Example: Calling Codestral-22B-v0.1 via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.MISTRAL_API_KEY,
});
const response = await client.chat.completions.create({
model: "mistral/codestral-22b-v0.1",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
This model supports prompt caching at $0.30 / 1M tokens, saving up to 0% on repetitive MCP tool definitions and system instructions.
MODEL RESOURCES
More Models by Mistral
Alternative and family models from the same lab
Mistral's 1T-parameter multimodal MoE for reasoning, coding, and agentic work
Mistral model for multilingual chat, reasoning, and tool-assisted workflows
Compact multimodal Mistral model for local assistants, edge agents, and efficient tool use