FlagshipMistral

Devstral Medium

Devstral Medium is Mistral's flagship code-focused model with a 131K token context window, designed for software development tasks and programming assistance.

Context 131K
Tier Flagship
Input from
$0.400 / 1M tokens
across 1 provider

API Pricing

ProviderInput / 1MOutput / 1MSpeedTTFTUpdated
$0.400$2.00131 t/s437ms4/14/2026

Prices updated daily. Last check: 4/14/2026

Model Details

General

Creator
Mistral
Family
Devstral
Tier
Flagship
Context Window
131K
Modalities
Text

Capabilities

Tool Calling
No
Open Source
No
Aliases
devstral-2512

Strengths & Limitations

  • Specialized design optimized specifically for software development and programming tasks
  • Large 131,072 token context window supports working with extensive codebases
  • Fast inference speed at 136.84 output tokens per second for responsive coding sessions
  • Quick 450ms time to first token enables interactive development workflows
  • Flagship tier model represents Mistral's most capable code-focused offering
  • Text-only architecture allows focused optimization for programming tasks
  • Can process and maintain context across multiple code files simultaneously
  • No tool calling capabilities limit integration with development environments
  • Proprietary model with no open source weights available
  • Text-only modality excludes image input for UI mockups or diagrams
  • Limited to programming tasks compared to general-purpose flagship models
  • No multimodal support for analyzing visual development resources

Key Features

131,072 token context window
Code generation and completion
Programming language support across multiple languages
Code debugging and error analysis
Documentation generation
Code refactoring assistance
Streaming response capability
High-speed inference at 136.84 tokens/second

About Devstral Medium

Devstral Medium is Mistral's flagship model in the Devstral family, specifically engineered for software development and programming tasks. As a proprietary text-only model, it represents Mistral's most capable offering for code-related workloads, featuring a 131,072 token context window that can handle substantial codebases and extended programming sessions. The model delivers strong performance characteristics with 136.84 output tokens per second and a 450ms time to first token, making it responsive for interactive coding workflows. Its text-only design allows it to focus entirely on code generation, debugging, documentation, and other programming tasks without the complexity of multimodal processing. Devstral Medium targets professional developers, coding teams, and organizations requiring sophisticated code assistance. Its large context window enables it to work with entire files or multiple related code modules simultaneously, making it suitable for complex refactoring tasks, code reviews, and architectural discussions that require understanding substantial amounts of existing code.

Common Use Cases

Devstral Medium is designed for professional software development workflows where code quality and context understanding are critical. Its large context window makes it ideal for complex refactoring projects, code reviews spanning multiple files, and architectural analysis of substantial codebases. Development teams use it for generating boilerplate code, debugging complex issues, creating technical documentation, and maintaining consistency across large projects. The model's fast inference speed supports interactive coding scenarios like pair programming sessions, real-time code completion, and iterative development processes where quick feedback is essential.

Frequently Asked Questions

How much does Devstral Medium cost per million tokens?

Devstral Medium pricing varies by provider and usage patterns. Check the pricing table above for current rates across all available providers offering this model.

What is Devstral Medium best used for?

Devstral Medium excels at software development tasks including code generation, debugging, refactoring, and documentation creation. Its large 131K context window makes it particularly effective for working with substantial codebases and complex programming projects that require understanding multiple related files.

How does Devstral Medium compare to general-purpose coding models?

Devstral Medium is purpose-built specifically for software development, offering specialized optimization for programming tasks that general-purpose models may not match. However, it lacks tool calling capabilities and multimodal support that some competing models provide, making it focused purely on text-based coding assistance.