Mistral AI releases Devstral 2, a 123B parameter open-source coding model with top-tier SWE-Bench performance and a revenue-based license.

Mistral AI has officially announced the release of Devstral 2 on December 9, 2025, marking a significant milestone in the evolution of open-source coding assistants. This model represents a paradigm shift in how developers interact with AI, offering a massive 123 billion parameter architecture that rivals proprietary giants while maintaining full community accessibility. The release addresses the critical need for high-performance coding models that do not compromise on data privacy or licensing terms, setting a new standard for the industry.
Devstral 2 utilizes a sophisticated Mixture of Experts (MoE) architecture designed to optimize inference speed without sacrificing reasoning capabilities. The model supports a massive 128,000 token context window, allowing it to ingest entire codebases and documentation in a single prompt. Unlike previous iterations, Devstral 2 includes enhanced multimodal capabilities, enabling it to interpret code screenshots and diagrams directly. This architecture ensures that the model can handle complex, multi-file refactoring tasks with precision.
In terms of raw capability, Devstral 2 sets new records on industry-standard benchmarks. It achieves a top-tier score of 85.4% on the SWE-Bench Hard track, significantly outperforming its predecessor and competing directly with closed-source enterprise models. On HumanEval, the model scored 92.1%, demonstrating superior ability to generate syntactically correct and functional code snippets. Furthermore, the MMLU score reached 88%, indicating robust general reasoning skills that extend beyond simple syntax completion.
Mistral AI has introduced a unique pricing model for Devstral 2 that balances accessibility with sustainability. The API costs are set at $0.50 per million tokens for input and $1.50 per million tokens for output. A generous free tier is available for developers and small projects, ensuring that cost does not become a barrier to entry. Additionally, the model is released under a Modified MIT license, meaning it is free for commercial use unless the project generates high revenue, protecting smaller startups while allowing enterprise scaling.
When compared to leading competitors, Devstral 2 offers a compelling value proposition for developers seeking open-source alternatives. While GPT-4o offers higher reliability for general tasks, its cost is prohibitive for large-scale automation. Llama 3.1 remains a strong contender for general purpose tasks but lacks the specialized coding focus of Devstral 2. The table below highlights the key differences in context, pricing, and strengths.
The versatility of Devstral 2 makes it suitable for a wide range of applications within the software development lifecycle. It is best suited for autonomous coding agents that can plan and execute complex tasks without human intervention. Developers can also integrate it into RAG pipelines to retrieve and execute code from internal repositories securely. Furthermore, it serves as an excellent foundation for IDE plugins that offer real-time refactoring and debugging assistance.
Accessing Devstral 2 is straightforward for both open-source and API users. Developers can download the weights directly from HuggingFace under the Modified MIT license for local deployment. For cloud integration, Mistral AI provides official SDKs for Python and Node.js that simplify API calls. To get started, simply register for an API key at the Mistral platform and follow the documentation to configure your environment.
API Pricing β Input: $0.50 / Output: $1.50 / Context: 128k