Mistral AI
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 61.6% on SWE-Bench Verified, placing it ahead of Gemini 2.5 Pro and GPT-4.1 in code-related tasks, at a fraction of the cost. It is designed for generalization across prompt styles and tool use in code agents and frameworks. Devstral Medium is available via API only (not open-weight), and supports enterprise deployment on private infrastructure, with optional fine-tuning capabilities.
OpenRouter 원가 (1M 토큰)
입력$0.400
출력$2.00
합계$2.40
인보이스랩 (월 예상)
입력 0.5M + 출력 0.5M 기준
공급가액₩1,976
부가세 (10%)₩198
결제 금액₩2,174
💡 부가세 ₩198 매입공제 가능
모델 정보
기본 정보
| 모델 ID | mistralai/devstral-medium |
| 제공사 | Mistral AI |
| 컨텍스트 윈도우 | 131,072 토큰 |
| 모달리티 | text->text |
지원 기능
⚡ Function Calling📋 Structured Output📄 JSON Mode🌡️ Temperature📏 Max Tokens
API 사용법
Python (OpenAI SDK 호환)
from openai import OpenAI
client = OpenAI(
api_key="your-dream-api-key",
base_url="https://api.invoicedream.co.kr/v1"
)
response = client.chat.completions.create(
model="mistralai/devstral-medium",
messages=[
{"role": "user", "content": "안녕하세요"}
]
)
print(response.choices[0].message.content)Node.js / TypeScript
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'your-dream-api-key',
baseURL: 'https://api.invoicedream.co.kr/v1'
});
const response = await client.chat.completions.create({
model: 'mistralai/devstral-medium',
messages: [{ role: 'user', content: '안녕하세요' }]
});
console.log(response.choices[0].message.content);cURL
curl https://api.invoicedream.co.kr/v1/chat/completions \
-H "Authorization: Bearer your-dream-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/devstral-medium",
"messages": [{"role": "user", "content": "안녕하세요"}]
}'💡 Tip: OpenAI SDK를 그대로 사용할 수 있습니다.base_url만 변경하면 됩니다!