Mistral AI
Mistral은 현행 Small·Medium 라인 뒤에 있는 프랑스 랩입니다. Mixtral 8x7B는 2025년 3월 30일 API에서 은퇴했습니다. 콘솔은 여전히 이메일만으로 키를 주며, Free mode와 Labs가 카드 없는 부분입니다.
Mistral은 현행 Small·Medium 라인 뒤에 있는 프랑스 랩입니다. Mixtral 8x7B는 2025년 3월 30일 API에서 은퇴했습니다. 콘솔은 여전히 이메일만으로 키를 주며, Free mode와 Labs가 카드 없는 부분입니다.
컨텍스트는 최대 256K. Labs id(labs- 접두사)는 무료이고 mistral-medium-3-5는 유료입니다. 한도는 공개된 “초당 1회” 같은 값이 아니라 콘솔에서 조직별로 설정됩니다. 시험은 Small이나 Labs 모델로 하고, 출하용으로 쓰지 마세요.
- 무료 모델
- 12
- 최대 컨텍스트
- 256K
- 무료 요금제
- Free mode 및 Labs
- 요구사항
- 이메일만, 카드 불필요
엔드포인트
기본 URL
https://api.mistral.ai/v1환경 변수
MISTRAL_API_KEY속도 제한
Per-org caps in the console; Labs models are free of charge- OpenAI 호환
- 공식 SDK: Mistral SDK
- 텍스트
- 이미지
- 코드
코드 예시
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.mistral.ai/v1',
apiKey: process.env.MISTRAL_API_KEY
})
const response = await client.chat.completions.create({
model: 'mistral-small-latest',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://api.mistral.ai/v1",
api_key=os.environ["MISTRAL_API_KEY"],
)
response = client.chat.completions.create(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://api.mistral.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-d '{
"model": "mistral-small-latest",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'npm install @mistralai/mistralaiimport { Mistral } from '@mistralai/mistralai'
const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY })
const response = await client.chat.complete({
model: 'mistral-small-latest',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install mistralaiimport os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.chat.complete(
model="mistral-small-latest",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)알아두면 좋은 점
- open-mixtral-8x7b는 2025년 3월 30일 은퇴했습니다. mistral-small-latest나 labs- 접두사 id를 쓰세요.
- mistral-medium-3-5는 유료 모델(256K). Free mode와 Labs가 카드 없는 부분입니다.
무료로 받는 모델12
- Mistral Small
mistral-small-latest - Mistral Small 2506
mistral-small-2506 - Mistral Nemo
open-mistral-nemo - Codestral
codestral-latest - Pixtral 12B
pixtral-12b-2409 - Labs Mistral Small
labs-mistral-small - Mistral Embed
mistral-embed - Mistral Moderation
mistral-moderation-latest - Mistral OCR
ocr-latest - Mistral Small 3.1
mistral-small-3.1-24b-instruct - Devstral Small
devstral-small-latest - Magistral Small
magistral-small-latest