Skip to content
llmmodels
Chat LLMOpen weightsTool callingStructured output

Codestral (latest)

by Mistral AI · May 29, 2024

Codestral (latest) is an open-weight chat llm from Mistral AI, released May 29, 2024. It has 22B parameters, a 250K-token context window and accepts text, pdf input. API pricing starts at $0.3 per million input tokens and $0.9 per million output tokens. It is available from 4 API providers.

Provider
Mistral AI
Released
May 29, 2024
Type
Chat LLM
Parameters
22B
Context window
256,000 tokens
Max output
4,096 tokens
Input
text, pdf
Output
text
Weights
Open weights
License
Open (non-commercial)
Knowledge cutoff
Oct 2024
Status
Available via API

About Codestral (latest)

Mistral code model for completions, refactors, and developer IDE workflows

Codestral (latest) benchmarks

All benchmarks →

Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.

Where to run Codestral (latest) — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
Mistral$0.3$0.9$0.03250K
Vercel AI Gateway$0.3$0.9$0.03125K
Eden AI$0.3$0.9$0.03250K
Merge Gateway$0.3$0.9—250K

Open weights: you can also run Codestral (latest) locally with Ollama, LM Studio, llama.cpp or vLLM.

Codestral (latest) vs alternatives

Alternatives to Codestral (latest)
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
DeepSeek-Coder-V2-Lite-BaseopenDeepSeekJun 202416B———99.4
MobileLLM-125MopenMetaOct 2024—————
solar-pro-preview-instructopenUpstageSep 202422B————
pythia-410m-seed3openEleutherAIJan 2024—————
pythia-31m-seed1openEleutherAIJan 2024—————
Tencent-Hunyuan-LargeopenTencentOct 2024—————
OmniParseropenMicrosoftOct 2024—————
Gemma 2 27BopenGoogle DeepMindJul 202427B8K$0.65$0.65118.6

More models from Mistral AI

All Mistral AI models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Mistral Large 4Oct 20261.1T1M$0.7$2.10
Mistral Medium 3.5openApr 2026128B256K$1.50$7.50
Mistral Medium 3May 2025—128K$0.4$2
Mistral Large 3openNov 2024675B256K$0.5$1.50
Mistral NemoopenJul 202412B128K$0.029$0.03
Mixtral 8x22B InstructopenApr 2024141B64K$2$6
Mistral-7B-v0.1openSep 20237.2B———
Mistral Small 4openMar 2026119B256K$0.15$0.6

Frequently asked questions

Who made Codestral (latest)?

Codestral (latest) was developed by Mistral AI (France). It was released on May 29, 2024.

What is the context window of Codestral (latest)?

Codestral (latest) supports a context window of 256,000 tokens (250K) and can generate up to 4,096 output tokens per response.

How much does Codestral (latest) cost?

Codestral (latest) costs $0.3 per 1M input tokens and $0.9 per 1M output tokens, with cached input at $0.03 per 1M. Prices vary across the 4 providers that serve it.

Is Codestral (latest) open source?

Yes. Codestral (latest)'s weights are publicly available, so you can download and run it yourself.

How many parameters does Codestral (latest) have?

Codestral (latest) has 22B parameters.

How does Codestral (latest) perform on benchmarks?

Codestral (latest) scores 11.1% on Aider Polyglot.

Where can I use Codestral (latest)?

Codestral (latest) is available via 4 API providers, and you can also self-host it with tools like vLLM, Ollama or LM Studio.

Sources: epoch, models.dev · paper. Last updated 2026-11-22.