All models

Devstral Small 2

by Mistral AI

Chat Vision Tools

Devstral Small 2 is Mistral AI's coding-focused model, tuned for software-engineering agents that navigate and edit real codebases. It combines tool use with image understanding in a compact 24B size, targeting practical developer automation.

Publisher
Mistral AI
Context window
256K tokens
Sizes
24B
Licence
Apache 2.0
Model card on Hugging Face

Run Devstral Small 2

Install it on a Pendra worker, then call it through the OpenAI-compatible API with a pdr_sk_ key.

Chat

from pendra import Pendra

client = Pendra(api_key="pdr_sk_...")

response = client.chat.completions.create(
    model="devstral-small-2:24b",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)

Vision

from pendra import Pendra

client = Pendra(api_key="pdr_sk_...")

response = client.chat.completions.create(
    model="devstral-small-2:24b",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What's in this image?"},
                {"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}},
            ],
        }
    ],
)

print(response.choices[0].message.content)

Run Devstral Small 2 on your own UK infrastructure

Deploy a worker, install Devstral Small 2, and start serving it through one sovereign API endpoint.