Back to models
Mistral-Medium-3.5-128B
Mistral AI's 128B dense open-weight multimodal model featuring a 256K context window and native vision encoder, uniting configurable reasoning effort, coding, and multilingual tool calling across 26+ languages.
What you can do
- Multilingual long-document analysis and QA
- Visual diagram and image reasoning
- Complex code generation and tool calling
Input & output
- Input
- Multilingual text prompts and variable-resolution images (up to 256K context)
- Output
- Text responses, reasoning traces, code, and structured JSON tool calls
Try a prompt like this
Analyze the attached architecture diagram and write a Python migration plan with typed Pydantic configs to split the monolith into three microservices.
Things to know
Requires ~135GB VRAM in FP8 (2×80GB GPUs) or 4×80GB in BF16; released under a Modified MIT License with commercial restrictions for high-revenue enterprises.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
mistralai/Mistral-Medium-3.5-128B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="mistralai/Mistral-Medium-3.5-128B",
messages=[{"role": "user", "content": "Analyze the attached architecture diagram and write a Python migration plan with typed Pydantic configs to split the monolith into three microservices."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide