Devstral Medium API

Access Devstral Medium from Mistral AI using Puter.js AI API.

Get Started

Model Card

Devstral Medium is a high-performance agentic coding model achieving 61.6% on SWE-Bench Verified. It excels at complex software engineering tasks across entire codebases, surpassing GPT-4.1 and Gemini 2.5 Pro in code-related tasks at a fraction of the cost.

Context Window

N/A

tokens

Max Output

131,072

tokens

Input Cost

$0.4

per million tokens

Output Cost

$2

per million tokens

API Usage Example

Add Devstral Medium to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "mistralai/devstral-medium-2507"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add Devstral Medium to your app without worrying about API keys or setup.

Read the Docs View Tutorials