Code AssistantLowEstimatedReleased 2024-05-29

Codestral Environmental Impact

Mistral's specialised code generation model

ArchitectureDense Transformer (code-specialised)Parameters22BContext32,000 tokensProviderMistral AI

One query, in context

Energy, carbon and water for a single use. Code completion (~500 tokens input/output)

Energy0.80Wh per query

About 2.7× a Google search and 96% of a minute of laptop use.

likely 0.40 Wh – 1.6 Wh
Carbon0.04g per query

33% of a Google search.

likely 0.02 g – 0.08 g
Water0.80mL per query

About 16× a drop of water and 16% of a teaspoon of water.

likely 0.40 mL – 2 mL
  • Where it runsMistral AI (France)
  • Grid carbon intensity50 g CO₂/kWh · 90% renewable
  • Compared with a Google search3x more than a search (0.3 Wh)
  • Water~1,250 queries to fill 1 litre

Where Codestral sits

#135 of 199 by energy per query. Heavier than 67% of all models. Lit dots are the same kind of model; click any dot to open it.

Google searchKettle boilLLaMA 3.2 1B — 0.03 WhGemini 1.5 Pro — 0.45 WhGPT-4.1 Nano — 0.03 WhGPT-4o — 0.43 WhClaude 3.7 Sonnet — 0.21 WhGPT-4.5 — 1.0 Who3 (Reasoning) — 2.3 WhDeepSeek-R1 — 1.2 WhGrok 2 — 0.50 WhDALL-E 3 — 3.0 WhMidjourney — 7.5 WhStable Diffusion XL — 2.9 WhSora — 500 WhGitHub Copilot — 1.5 WhSuno — 75 WhGPT-4o Mini — 0.04 WhDeepSeek-V3 — 0.24 WhGemini 2.0 Flash — 0.08 WhClaude Opus 4 — 0.39 WhClaude Sonnet 4 — 0.21 WhClaude 3.5 Haiku — 0.06 WhMistral Large 2 — 1.8 WhLLaMA 3.1 70B — 0.38 WhPerplexity AI — 0.50 WhImagen 3 — 2.5 WhFlux.1 Dev — 3.8 WhVeo 2 — 350 WhGemini 2.5 Pro — 0.40 WhGemini 2.5 Flash — 0.24 WhGPT-4.1 — 0.37 WhGPT-4.1 Mini — 0.03 WhLLaMA 4 Scout — 0.11 WhLLaMA 4 Maverick — 0.11 WhQwen 3 235B — 0.16 WhGrok 3 — 0.40 WhGemma 3 27B — 0.16 WhPhi-4 — 0.09 WhCommand R+ — 0.56 WhGPT-4o Image Generation — 4.5 WhAdobe Firefly — 3.2 WhIdeogram 2.0 — 3.5 WhRunway Gen-3 Alpha — 200 WhKling — 250 WhPika — 180 WhLuma Dream Machine — 160 WhUdio — 70 Who1 — 2.3 Who1-mini — 0.20 Who3-mini — 0.20 Who4-mini — 0.20 WhGPT-4 Turbo — 0.50 WhGemini 1.5 Flash — 0.10 WhGemini Nano — 0.01 WhClaude 3 Opus — 0.56 WhClaude 3 Haiku — 0.06 WhLLaMA 3.1 8B — 0.06 WhLLaMA 3.1 405B — 2.1 WhLLaMA 3.3 70B — 0.38 WhLLaMA 3.2 11B Vision — 0.08 WhLLaMA 3.2 90B Vision — 0.49 WhMistral 7B — 0.06 WhMixtral 8x7B — 0.09 WhMixtral 8x22B — 0.22 WhMistral Small 3 — 0.14 WhAmazon Nova Pro — 0.30 WhAmazon Nova Lite — 0.06 WhAmazon Nova Micro — 0.03 WhERNIE Bot 4.0 — 0.30 WhDoubao Pro — 0.30 WhGLM-4 — 0.19 WhKimi — 0.25 WhJamba 1.5 Large — 1.0 WhStable Diffusion 3.5 — 3.2 WhLeonardo AI — 3.5 WhHaiLuo AI — 220 WhStable Video Diffusion — 150 WhCursor — 1.2 WhAmazon Q Developer — 1.0 WhClaude Code — 2.0 WhWindsurf (Codeium) — 0.80 WhReplit Agent — 1.5 WhWhisper — 0.50 WhOpenAI TTS — 0.30 WhElevenLabs — 1.5 WhNotebookLM Audio Overview — 15 WhClaude Sonnet 4.5 — 0.34 WhClaude Opus 4.5 — 0.42 WhClaude Opus 4.6 — 0.40 WhClaude Sonnet 4.6 — 0.20 WhGPT-5 — 0.44 WhGPT-5 Mini — 0.05 WhGPT-5.2 — 0.61 WhGPT-5.2 Codex — 0.61 WhGPT-5.4 — 0.60 WhGPT-5.4 Mini — 0.03 Who3-pro — 6.0 WhGPT Image 1.5 — 3.8 WhSora 2 — 600 WhGemini 3 Pro — 0.40 WhGemini 3 Flash — 0.15 WhGemini 3.1 Pro — 0.42 WhGemma 3 4B — 0.04 WhGemma 3 12B — 0.08 WhImagen 4 — 2.8 WhVeo 3 — 400 WhVeo 3.1 — 2.4 kWhGrok 4 — 0.60 WhGrok 4.1 — 0.50 WhDeepSeek-R1-0528 — 1.2 WhDeepSeek-V3.1 — 0.24 WhQwen3.5 (397B-A17B) — 0.13 WhQwen3.5 35B-A3B — 0.04 WhMistral Large 3 — 1.5 WhDevstral 2 — 0.60 WhVoxtral TTS — 0.40 WhKimi K2.5 — 0.30 WhGLM-5 — 0.22 WhDoubao 2.0 — 0.30 WhCommand A — 0.60 WhPhi-4 Mini — 0.04 WhPhi-4 Reasoning — 0.27 WhAmazon Nova 2 Pro — 0.35 WhMidjourney V7 — 8.0 WhFlux 2 Pro — 5.0 WhRunway Gen-4.5 — 250 WhKling 3.0 — 280 WhDevin — 3.0 WhElevenLabs v3 — 1.8 WhSuno v5.5 — 80 WhClaude Haiku 4.5 — 0.02 WhGPT-5.3 Codex — 0.45 WhGPT-5.4 Nano — 0.03 WhGPT-OSS 120B — 0.03 WhGPT-OSS 20B — 0.02 WhGemini 3.1 Flash Lite — 0.06 WhLyria 3 Pro — 50 WhDeepSeek-V3.2 — 0.25 WhGrok 4.20 — 0.50 WhQwen3-Coder 480B — 0.20 WhQwen 3.5 Omni — 0.20 WhNemotron 3 Super — 0.45 WhDoubao Seed 2.0 Pro — 0.35 WhSeedance 2.0 — 280 WhGLM-5.1 — 0.22 WhERNIE 5.0 — 0.35 WhMistral Small 4 — 0.40 WhPhi-4 Multimodal — 0.05 WhMidjourney V8 Alpha — 5.0 WhRecraft V4 — 3.0 WhLuma Ray 3 — 200 WhPika 2.5 — 210 WhGPT-5.5 — 0.51 WhGPT-5.5 Instant — 0.06 WhGPT-5.3 Instant — 0.05 WhGPT Image 2 — 5.0 WhClaude Opus 4.7 — 0.44 WhClaude Opus 4.8 — 0.53 WhClaude Fable 5 — 0.79 WhClaude Sonnet 5 — 0.24 WhDeepSeek-V4-Pro — 0.24 WhDeepSeek-V4-Flash — 0.10 WhNano Banana 2 — 1.5 WhQwen3.6 27B — 0.16 WhQwen3.7-Max — 0.45 WhSora 2 Pro — 2.1 kWhClaude Opus 5 — 0.46 WhClaude Fable 5.1 — 0.65 WhClaude Opus 5.5 — 0.45 WhClaude Sonnet 5.5 — 0.24 WhClaude Haiku 5.5 — 0.02 WhClaude Fable 5.2 — 0.60 WhGPT-5.6 Sol — 0.39 WhGPT-5.6 Terra — 0.16 WhGPT-5.6 Luna — 0.05 WhGPT-6 Astra — 0.90 WhGPT-6 Sol — 0.42 WhGPT-6 Luna — 0.06 WhGPT-6 Instant — 0.07 WhGPT-6.1 Sol — 0.42 WhGPT-6.1 Terra — 0.17 WhGemini 3.5 Flash — 0.24 WhGemini 3.5 Flash-Lite — 0.06 WhGemini 3.6 Flash — 0.21 WhGemini 3.7 Flash — 0.14 WhGemini 3.8 Flash — 0.15 WhGemini 4 Argon — 0.45 WhNano Banana 2.1 — 1.5 WhGrok 4.5 — 0.35 WhGrok 4.7 — 0.40 WhMuse Spark — 0.40 WhMuse Spark Open — 0.22 WhKimi K3 — 0.65 WhGLM-5.3 — 0.22 WhQwen3.8-Max — 0.55 WhDeepSeek-V4.1-Flash — 0.10 WhMistral Large 4 — 1.4 WhKling 4.0 — 300 WhSeedance 2.5 — 290 Wh0.1 Wh1 Wh10 Wh100 Wh1 kWhCodestral

Want something lighter?

What a month of use adds up to

Pick how much you use it. Based on one quick use at a time, five days a week.

Energy
173.2 Wh
Carbon
8.7 g
Water
173 mL

A month of 10 requests a day, 5 days a week. The energy is about 1.6× a kettle boil and 2% of a UK home's day.

Work out your own →
Energy
692.8 Wh
Carbon
34.6 g
Water
693 mL

A month of 40 requests a day, 5 days a week. The energy is about 6.3× a kettle boil and 9% of a UK home's day.

Work out your own →
Energy
3.46 kWh
Carbon
173.2 g
Water
3.46 L

A month of 200 requests a day, 5 days a week. The energy is about 31× a kettle boil and 47% of a UK home's day.

Work out your own →

How does Codestral compare?

Next to similar models. Bars use a log scale, so each step is a big jump.

Devstral 20.60 Wh
Codestral0.80 Wh

Detailed breakdown

Energy

Codestral is Mistral's dedicated code model, trained on 80+ programming languages. At ~0.8 Wh per code completion, it sits between lightweight autocomplete models and full-capability chat models. Code generation tends to produce longer outputs than chat, increasing per-query energy.

Power source & carbon

Hosted on Mistral's infrastructure in France, benefiting from one of Europe's cleanest grids at approximately 50 g CO2/kWh due to France's nuclear energy base.

Water use

At ~0.8 mL per completion on Mistral's French-grid reference (~1.0 L/kWh), Codestral's water footprint is low for a medium-sized model.

About Codestral

Codestral is a code assistant model from Mistral AI, released in May 29, 2024. Mistral's specialised code generation model. Each query uses 0.80 Wh of energy and produces 0.04 g of CO₂. That's about 2.7x what a Google search consumes.

Codestral benefits from running in France, one of the cleaner grid regions in our dataset at 50 gCO₂/kWh with 90% renewable energy. The same model running in a coal-heavy region would produce significantly more carbon per query.

These figures are estimates derived from hardware specifications and API benchmarks — Mistral AI has not published official energy data for Codestral. Actual consumption may vary significantly depending on batching, quantisation, and infrastructure optimisations that we cannot observe from outside.

Codestral in context

7.3 kWhper year

Your yearly Codestral footprint

At 25 queries per day, your annual Codestral usage consumes 7.3 kWh — comparable to running a LED light bulb for a month. That produces 0.4 kg of CO₂.

Key insights

  • Runs on a 90% renewable grid — among the cleanest AI inference locations

What does your Codestral usage cost the planet?

Use the calculator to estimate your personal footprint based on how often you use Codestral.

Calculate my compute

Frequently asked questions

How much energy does Codestral use per query?

Each Codestral query consumes approximately 0.80 Wh of energy. This is 3x more than a traditional Google search (~0.3 Wh).

What is Codestral's carbon footprint?

Based on the carbon intensity of Mistral AI (France), each query produces approximately 0.04 g of CO2. The grid in this region has a carbon intensity of 50 g CO2/kWh with 90% renewable energy.

How much water does Codestral use?

Each query consumes approximately 0.80 mL of water, primarily used for cooling the data centers that process the request.

How does Codestral compare to a Google search?

A Codestral query uses 3x more than a Google search in terms of energy. A Google search uses approximately 0.3 Wh, while Codestral uses 0.80 Wh.

Technical details

Architecture
Dense Transformer (code-specialised)
Parameters
22B
Context window
32,000 tokens
Release date
2024-05-29
Open source
No
Training data cutoff
2024-05

Sources