Mistral AI logo

Mistral AI: Codestral (latest)

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

Source-linked codestral Open weights Released 2024-05-29
API record Report
InputT
OutputT
Input price$0.3/M
Output price$0.9/M
Context256K
Max output4.096K
Providers5
Inference availability

Providers

Provider-specific identifiers, limits, and listed prices per million tokens. Every row links back to the provider's own documentation.

Report a price
Providers offering Codestral (latest)
ProviderProvider model IDContextMax outputInputOutputCache readCapabilitiesDocs
Cloudflare AI Gateway mistral/codestral-latest 256K 4.096K $0.3 $0.9 Tools Docs ↗
Merge Gateway mistral/codestral-latest 256K 4.096K $0.3 $0.9 Tools Docs ↗
Mistral codestral-latest 256K 4.096K $0.3 $0.9 Tools Docs ↗
Vercel AI Gateway mistral/codestral 256K 4.096K $0.3 $0.9 Tools Docs ↗
Eden AI mistral/codestral-latest 256K 4.096K $0.3 $0.9 $0.03 ToolsJSON Docs ↗

Capability badges appear only where the provider catalog explicitly lists support. A blank cell means the source is silent, not that the feature is absent.

Listed rates

Price across providers

Input price per million tokens as published by each provider. Bars are drawn from listed rates only — no traffic weighting, since the catalog observes no requests.

Lowest input $0.3/M

Across 5 priced providers

Median input $0.3/M

Midpoint of listed rates

Highest input $0.3/M

Same as the lowest listed rate

Output range $0.9 – $0.9

Per million output tokens

Cloudflare AI Gateway $0.3/M
Merge Gateway $0.3/M
Mistral $0.3/M
Vercel AI Gateway $0.3/M
Eden AI $0.3/M
Cost calculator

Estimate a workload

$0.00
Excludes taxes, non-token charges, and tiered discounts.

5 providers list the identical $0.3 input rate, so price alone will not separate them — compare context limits, max output, and capabilities above.

Specification

Capabilities

Recorded from the source catalog and provider listings.

× Reasoning No
Tool calling Yes
? Structured output Unknown
× Attachments No
× Vision input No
Open weights Yes
Creator
Mistral AI
Model family
codestral
Knowledge cutoff
2024-10
License
Not documented
Release date
2024-05-29
Model ID
mistral/codestral-latest

Weights: Hugging Face ↗

Published evaluations

Benchmarks

Every result stays attached to its source, version, metric and harness. Scores from different versions are never merged, and the profile below plots each benchmark against its own population rather than on a shared scale.

Benchmark registry
Aider Polyglot percent correct · 2025-01-13 Source ↗
Aider Polyglot #29 of 31

Each strip shows every published score for that benchmark, with this model marked. The lighter shape behind the ticks is the density of results, and the dashed line is the median.

Cost against capability

Price and performance

Listed input price plotted against Aider Polyglot, the benchmark with the widest published coverage that this model appears in.

0 47 93 $0.1 $1 $10 Qwen Max — $1.6/M, score 21.8 Qwen3 235B-A22B — $0.7/M, score 59.6 Qwen3 32B — $0.7/M, score 40.0 Claude Haiku 3.5 — $0.8/M, score 28.0 Claude Sonnet 3.7 — $3/M, score 64.9 Claude Opus 4 — $15/M, score 72.0 Claude Sonnet 4 (latest) — $2.898/M, score 61.3 Claude Sonnet 4 — $3/M, score 61.3 Command A — $2.5/M, score 12.0 DeepSeek Chat — $0.147/M, score 70.2 DeepSeek-R1 — $0.7/M, score 56.9 DeepSeek Reasoner — $0.147/M, score 74.2 Gemini 2.5 Flash — $0.3/M, score 55.1 Gemini 2.5 Pro — $1.25/M, score 83.1 Llama 4 Maverick 17B Instruct — $0.14/M, score 15.6 Codestral (latest) — $0.3/M, score 11.1 GPT-4.1 — $2/M, score 52.4 GPT-4.1 mini — $0.4/M, score 32.4 GPT-4.1 nano — $0.1/M, score 8.9 GPT-4o — $2.5/M, score 23.1 GPT-4o (2024-08-06) — $2.5/M, score 23.1 GPT-4o (2024-11-20) — $2.5/M, score 18.2 GPT-4o mini — $0.15/M, score 3.6 GPT-5 — $1.25/M, score 88.0 o1 — $15/M, score 61.7 o3 — $2/M, score 81.3 o3-mini — $1.1/M, score 60.4 o3-pro — $20/M, score 84.9 o4-mini — $1.1/M, score 72.0 Codestral (latest) Input price per million tokens (log scale) Percent correct

The stepped line is the efficient frontier: at each price, the best score available for that money or less. A model sitting on it is not being beaten by anything cheaper. Price is log-scaled because listed rates span four orders of magnitude. Only models with both a listed price and a score on this benchmark can appear.

Catalog activity

Change log

Field-level changes detected between successful source imports.

Full change log
No changes recorded

This record has not changed within the retained import history.

Provenance

Sources & verification

Every figure on this page traces back to one of these records.

Methodology
Public API

Use this record

Fetch the complete source-linked model record. No key, no account, no rate-limited tier.

API documentation
Endpoint
GET https://model.kyssta.lol/api/v1/models/mistral/codestral-latest
curl
curl "https://model.kyssta.lol/api/v1/models/mistral/codestral-latest"
Common questions

Frequently asked questions

Answered directly from the stored record — nothing here is generated beyond the catalog's own fields.

What is Codestral (latest)?

Mistral code model for completions, refactors, and developer IDE workflows. It is published by Mistral AI and catalogued here from Models.dev.

How much does Codestral (latest) cost?

Listed input pricing starts at $0.3 per million tokens from Cloudflare AI Gateway.

What is the context length of Codestral (latest)?

Codestral (latest) accepts up to 256K tokens of context and returns up to 4.096K output tokens.

Does Codestral (latest) support tool calling and structured output?

Provider catalogs list support for tool calling.

Which providers serve Codestral (latest)?

5 providers list this model: Cloudflare AI Gateway, Merge Gateway, Mistral, Vercel AI Gateway, Eden AI.

Are the weights for Codestral (latest) open?

Yes. The weights are published and downloadable from Hugging Face.

When was Codestral (latest) released?

The catalog records a release date of 2024-05-29, last verified Sep 11, 2026.

More models from Mistral AI

View all →