Last updated March 25, 2026

Codestral by Mistral logo

Codestral by Mistral

Open Source

Open-weight code generation model from Mistral optimized for code completion and generation

Best for: Developers wanting a powerful open-weight code model for self-hosting or API use

Target Audience

Self-hosting developers, API users

4.1/5

Overview

Codestral is Mistral AI code generation model optimized for code completion, generation, and instruction following across 80+ programming languages with strong performance benchmarks.

Key Features

80+ language support
Code completion
Code generation
Instruction following
Open weights
Self-hostable
API access
Long context

Integrations

Any IDE via APIContinue extensionOllamavLLM

Pros

  • Open weights available
  • Strong code benchmarks
  • 80+ languages
  • Self-hostable

Cons

  • API-only or self-host
  • Requires setup
  • Less ecosystem than Copilot
  • Newer model

Quick Facts

Pricing
API usage-based
Starting Price
$0.30/$0.90 per million tokens

Pricing Details

API pricing at $0.30/M input, $0.90/M output tokens. Self-hosted with open weights available.

Visit Website

Similar Tools