Contact Support
    Mistral/Mistral Codestral
    License

    Model Card

    Codestral is an open-weight generative AI model explicitly designed for code generation tasks. It helps developers write and interact with code through a shared instruction and completion API endpoint. As it masters code and English, it can be used to design advanced AI applications for software developers.

    Codestral is trained on a diverse dataset of 80+ programming languages, including the most popular ones, such as Python, Java, C, C++, JavaScript, and Bash. It also performs well on more specific ones like Swift and Fortran. This broad language base ensures Codestral can assist developers in various coding environments and projects.

    Codestral saves developers time and effort: it can complete coding functions, write tests, and complete any partial code using a fill-in-the-middle mechanism. Interacting with Codestral will help level up the developer’s coding game and reduce the risk of errors and bugs.

    Key Features

    • Supports 80+ programming languages: Fluent in popular languages like Python, Java, C++, and more specific ones like Swift and Fortran.
    • Advanced code generation: Specializes in code completion, test writing, and fill-in-the-middle tasks to enhance developer productivity.
    • Superior performance: Outperforms competitors in long-range code generation tasks with a larger context window of 32k tokens.
    • Multilingual code benchmarking: Evaluated on multiple benchmarks across various programming languages, demonstrating high proficiency.
    • Optimized for Python & SQL: Excels in Python and SQL code generation, evaluated using HumanEval, MBPP, and Spider benchmarks.
    • Integrated with popular tools: Available in VSCode, JetBrains, LlamaIndex, and LangChain for seamless developer experience.
    • Open-weight & commercially licensed: Available for research under an open license and for commercial use under a custom license.
    • Dedicated API endpoint: Accessible via codestral.mistral.ai with a focus on IDE integration and ease of use during beta testing.

    Meta data

    32,768 tokens
    $1 per million
    $3 per million
    Create an agent Pipe