
Instruct, Reasoning(Magistral), Devstral 계열을 통합한 하이브리드 모델: Small 3에 비해 완료 시간이 40% 짧고 처리량이 3배 증가합니다.
Instruct, Reasoning(Magistral), Devstral 계열을 통합한 하이브리드 모델: Small 3에 비해 완료 시간이 40% 짧고 처리량이 3배 증가합니다.
다른 이름 Mistral AI Mistral Small 4
mistral-small-4/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/mistral-small-4:generateContentmistralai/mistral-small-4EmpirioLabs 카탈로그의 실시간 종량제 요금입니다. 사용한 만큼만 결제하며 월 최소 요금이 없습니다.
Mistral Small 4은(는) OpenAI 호환 Chat Completions API를 제공합니다. 아무 OpenAI SDK나 EmpirioLabs API 키와 함께 https://api.empiriolabs.ai/v1로 지정하고 모델 ID mistral-small-4를 사용하세요. EmpirioLabs 대시보드에서 API 키를 발급받으세요.
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-small-4",
"messages": [
{"role": "user", "content": "Write a haiku about the ocean."}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.empiriolabs.ai/v1",
api_key="YOUR_EMPIRIOLABS_API_KEY",
)
response = client.chat.completions.create(
model="mistral-small-4",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)EmpirioLabs에서 Mistral Small 4 API가 지원하는 요청 파라미터입니다. 필드를 생략하면 기본값이 적용됩니다.
| 파라미터 | 유형 | 기본값 | 범위 / 값 | 설명 |
|---|---|---|---|---|
| reasoning_enabled | boolean | true | - | 확장 추론 활성화. 요청에 함수 도구가 포함될 때는 적용되지 않습니다. |
| tool_web_search | boolean | false | - | 도구를 활성화web_search |
| web_search_tier | enum | standard | standard, premium | 표준 또는 프리미엄 웹 검색 등급. Premium은 더 높은 품질의 소스를 사용합니다. |
| tool_code_interpreter | boolean | false | - | 모델이 샌드박스에서 파이썬 코드를 실행하여 데이터를 계산하거나 분석할 수 있도록 허용하세요. |
| tool_image_generation | boolean | false | - | 플랫폼 image-gen 도구를 통해 모델이 인라인으로 이미지를 생성할 수 있도록 허용하세요. |
| temperature | number | 0.7 | 0 ~ 1.5 | 샘플링 온도. 0 = 결정론적, 1.5 = 최대 무작위성. |
| max_tokens | number | 4096 | 1 ~ 65536 | 응답에 최대 토큰을 사용하세요. |
| disable_formatting | boolean | false | - | EmpirioLabs 형식 없이 답변을 반환하세요: 인용은 단순한 [N] 마커로 유지되며 참고문헌 블록은 추가되지 않습니다. |
| response_format | enum | - | - | 출력을 유효한 JSON 객체(JSON 모드)로 반환합니다. 프롬프트에 원하는 필드를 설명하세요. |
Tools (web search, code interpreter, image generation) are billed only when actually invoked. Requests that include your own function tools use standard function calling, and the built-in tools are unavailable on those requests: a request cannot combine both at once. With a built-in tool turned on, input is limited to about 235,000 tokens per request.
이 모델이 단일 요청 내에서 내장 도구(웹 검색, 코드 인터프리터 등)를 호출할 때, 응답은 토큰 수와 함께 정규화된 usage.tool_usage 맵을 포함합니다. 아래 예시는 형태, 정확한 필드 이름, 단위, 그리고 제공자마다 약간 다를 수 있는 도구를 보여줍니다:
"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"cost_usd": 0.0042,
"tool_usage": {"web_search": 3, "code_interpreter": 1}
}도구 수는 이미 cost_usd에 반영되어 있으며, 투명성을 위해 표면에 표시되어 툴별 청구 감사를 할 수 있습니다. 도구가 호출되지 않았을 때는 해당 필드가 생략됩니다.
EmpirioLabs에서 Mistral Small 4은(는) 종량제로 청구됩니다: 입력 $0.15 1M 프롬프트 토큰당; 제품정보 $0.60 생성된 토큰 1M 단위; 표준 웹 검색 $0.084 통화당; 프리미엄 웹 검색 $0.140 통화당; 코드 인터프리터 $0.084 통화당; 이미지 생성 $0.280 이미지별로. 이 페이지의 실시간 요금표는 항상 API 청구 금액과 일치합니다.
Mistral Small 4은(는) 256K 토큰 컨텍스트 윈도우를 지원합니다 (응답당 최대 65,536 출력 토큰).
네. Mistral Small 4은(는) OpenAI 호환 Chat Completions API를 제공하므로, 기존 OpenAI SDK에서 base_url을 https://api.empiriolabs.ai/v1로 지정하고 모델 ID를 mistral-small-4로 설정하면 바로 동작합니다.
네. EmpirioLabs 플레이그라운드에서 API와 동일한 파라미터로 Mistral Small 4을(를) 브라우저에서 실행하므로 코드를 작성하기 전에 프롬프트를 테스트할 수 있습니다.
EmpirioLabs 계정을 만든 다음 대시보드의 API Keys에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다.