How much does Codestral-22B cost per million tokens?
As of August 30, 2026, Codestral-22B Mistral API pricing is $0.30 per million input tokens and $0.90 per million output tokens via Mistral AI. Input tokens are the prompt you send; output tokens are the completion. Long answers therefore cost more than short ones even when the prompt stays the same. Source: https://mistral.ai/technology/pricing
What is the blended API cost for Codestral-22B?
On this page the blended Codestral-22B API cost is $1.20 for 1 million input tokens plus 1 million output tokens. That 1:1 mix is the comparison scale used across the LLM pricing table. A 3:1 mix (three million input tokens per one million output tokens), which some calculators use, would be about $1.80.
How much does a typical Codestral-22B request cost?
A typical Codestral-22B API request with 100K input tokens and 20K output tokens costs about $0.05 at current rates as of August 30, 2026. Multiply that by daily or monthly volume to estimate spend. Caching, batch APIs, and volume discounts from Mistral AI can bring the real invoice lower than the public list rate at https://mistral.ai/technology/pricing.
What is the context window for Codestral-22B?
Codestral-22B supports a 33K token context window. The context window is the total prompt plus conversation history the model can see in one call. Larger windows cost more when you fill them, because every input token is billed per million tokens.
Is Codestral-22B open source?
Yes. Codestral-22B is an open-weight model by Mistral. You can download the weights and self-host, or pay Mistral AI's hosted API and skip GPU ops. Hosted API pricing on this page is the public per-million-token rate, not the electricity cost of running the weights yourself.
What benchmarks does Codestral-22B perform well on?
Codestral-22B currently reports HumanEval 81.1%, Humanevalfim Average 91.6%, Mbpp 78.2%. See the performance table for the full eval set. Use those scores with the token prices above when you are choosing between a cheaper LLM and a frontier model. GPQA, SWE-bench, and HLE are the evals people usually compare first.
Is Codestral-22B good for coding?
Codestral-22B scores 81.1% on HumanEval. Pair that score with Mistral API pricing on this page: a slightly worse SWE-bench model can still win if it is much cheaper per million tokens. Open the SWE-bench or coding leaderboard from the sidebar for the full ranking, then jump into an LLM comparison against a coding specialist.
How do I compare Codestral-22B with another LLM?
Use the Compare picker on this page to start an LLM comparison. Search by model or provider, pick a second model, and AnotherWrapper opens a dedicated Codestral-22B vs page with per-million-token prices, blended 1M-in / 1M-out cost, context window, throughput, and benchmarks. You can also open any model from the sidebar, or go back to the LLM pricing table to sort the full index.
What are the cheapest alternatives to Codestral-22B?
The cheapest LLM alternative depends on whether you optimize for blended token cost, coding evals, or context window. Start with the popular matchups on this page, then sort the LLM pricing table by blended cost to see which hosted APIs undercut Codestral-22B. Open-weight models can be cheaper still if you self-host, but that is not the same as Mistral API pricing on this page.
How do I use Codestral-22B in my application?
Codestral-22B is called through Mistral AI's API with an API key. Bill against input and output tokens separately; cache or shorten prompts if spend is high. If you are shipping a full product, AnotherWrapper includes pre-built API routes and templates for Mistral AI and 5+ other providers with auth, payments, and deployment already configured.
How accurate is this Codestral-22B pricing data?
This Codestral-22B page tracks the latest published Mistral API pricing from Mistral AI, quoted per million tokens. List rates can differ from invoices because of prompt caching, batch discounts, committed-use tiers, and private contracts. Official rate sheet: https://mistral.ai/technology/pricing. Benchmark scores come from official publications and independent evals, not from a private lab run by AnotherWrapper.