All models

Mistral Small 4

by Mistral AI

Chat Vision Tools

Mistral Small 4 is Mistral AI's mid-size flagship, a mixture-of-experts model that activates only a small fraction of its parameters per token for efficient inference. It reads images as well as text, supports tool use, and handles a 256K-token context, making it a capable all-rounder for chat, coding, and document work.

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

Run Mistral Small 4

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="mistral-small-4:119b",
    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="mistral-small-4:119b",
    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 Mistral Small 4 on your own UK infrastructure

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