Blog

Devstral 2 Is Now Available in Puter.js

On this page

Puter.js now supports Devstral 2, Mistral AI's next-generation coding model.

What is Devstral 2?

Devstral 2 is a 123B-parameter dense transformer with a 256K context window, designed for agentic coding tasks. It achieves 72.2% on SWE-bench Verified, establishing it as one of the best open-weight coding models available.

Examples

Simple Python Function

puter.ai.chat(
    "Write a Python function that checks if a number is prime",
    { model: "mistralai/devstral-2512" }
)

Simple To-Do App

puter.ai.chat(
    "Create a simple to-do list app in a single HTML file with add, delete, and mark complete features",
    { model: "mistralai/devstral-2512" }
)

Get Started Now

Just add one script tag to your HTML:

<script src="https://js.puter.com/v2/"></script>

No API keys needed. Start building with Devstral 2 immediately.

Learn more:

Free, Serverless AI and Cloud

Start creating powerful web applications with Puter.js in seconds!

Get Started Now

Read the Docs Try the Playground