SandBase is live — $1 in free credits on signupStart free ›

Mistral modelsChat Completions model

mistral/devstral-medium

Devstral Medium is a high-performance code generation and agentic reasoning model developed jointly by Mistral AI and All Hands AI. Positioned as a step up from Devstral Small, it achieves...

Input⌘ / Ctrl + Enter

Try a prompt

131.1K max output
Input $0.40/M · Output $2.00/M · Cache read $0.04/M
OutputReady

Your response will appear here

Choose an example or write a prompt, then click Run.

API details and access

Model Details

ProviderMistral
TypeLlm
Model IDmistral/devstral-medium

Capabilities

InputText
OutputText
Context-
Max Output131,072
VisionNot supported
Function CallingSupported

Access details

Chat Completions
Base URLhttps://api.sandbase.ai
API Endpoint/v1/chat/completions
{
  "model": "mistral/devstral-medium",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 512
}

Pricing

Input$0.40 / 1M tokens
Output$2.00 / 1M tokens
Cache read$0.04 / 1M tokens

Related Models

mistral/codestral-2508Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](https://mistral.ai/news/codestral-25-08)mistral/devstral-2512Devstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic coding. It is a 123B-parameter dense transformer model supporting a 256K context window. Devstral 2 supports exploring...mistral/devstral-smallDevstral Small 1.1 is a 24B parameter open-weight language model for software engineering agents, developed by Mistral AI in collaboration with All Hands AI. Finetuned from Mistral Small 3.1 and...mistral/ministral-14b-2512The largest model in the Ministral 3 family, Ministral 3 14B offers frontier capabilities and performance comparable to its larger Mistral Small 3.2 24B counterpart. A powerful and efficient language...mistral/ministral-3b-2512The smallest model in the Ministral 3 family, Ministral 3 3B is a powerful, efficient tiny language model with vision capabilities.mistral/ministral-8b-2512A balanced model in the Ministral 3 family, Ministral 3 8B is a powerful, efficient tiny language model with vision capabilities.mistral/mistral-7b-instruct-v0.1A 7.3B parameter model that outperforms Llama 2 13B on all benchmarks, with optimizations for speed and context length.mistral/mistral-largeThis is Mistral AI's flagship model, Mistral Large 2 (version `mistral-large-2407`). It's a proprietary weights-available model and excels at reasoning, code, JSON, chat, and more. Read the launch announcement [here](https://mistral.ai/news/mistral-large-2407/)....