
하이브리드 모델 불화 Instruct, Reasoning (Magistral) 및 Devstral 가족: 40 % 낮은 완료 시간 및 3x throughput 대 소형 3.
하이브리드 모델 불화 Instruct, Reasoning (Magistral) 및 Devstral 가족: 40 % 낮은 완료 시간 및 3x throughput 대 소형 3.
다른 이름 Mistral AI Mistral Small 4, 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 | - | 확장 추론 활성화 (추론으로의 매핑: high|none) |
| tool_web_search | boolean | true | - | 도구를 활성화web_search |
| web_search_tier | enum | standard | standard, premium | 표준 또는 프리미엄 웹 검색 등급. Premium은 더 높은 품질의 소스를 사용합니다. |
| tool_code_interpreter | boolean | true | - | 모델이 샌드박스에서 파이썬 코드를 실행하여 데이터를 계산하거나 분석할 수 있도록 허용하세요. |
| tool_image_generation | boolean | true | - | 플랫폼 image-gen 도구를 통해 모델이 인라인으로 이미지를 생성할 수 있도록 허용하세요. |
| temperature | number | 0.7 | 0 ~ 1.5 | 샘플링 온도. 0 = 결정론적, 2 = 최대 무작위성. |
| max_tokens | number | 4096 | 1 ~ 32768 | 응답에 최대 토큰을 사용하세요. |
| response_format | enum | - | - | 출력을 유효한 JSON 객체(JSON 모드)로 반환합니다. 프롬프트에 원하는 필드를 설명하세요. |
| disable_formatting | boolean | false | - | web_search 도구를 사용할 때 EmpirioLabs 마크다운 서식(인용 [[N]](url) 재작성 + 참조 블록)은 건너뛰세요. 평범한 [N] 인용이 포함된 원시 상류 답변이 반환됩니다. |
웹 검색, 코드 해석기, 이미지 생성 도구들은 실제로 호출될 때만 청구됩니다. 자신의 함수 도구를 포함하는 요청은 표준 함수 호출을 사용하며, 내장된 도구는 해당 요청에서 사용할 수 없습니다: 요청이 두 도구를 동시에 결합할 수 없습니다.
When this model invokes built-in tools (web search, code interpreter, etc.) inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. The example below shows the shape — exact field names, units, and which tools appear can vary slightly per provider:
"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"cost_usd": 0.0042,
"tool_usage": {"web_search": 3, "code_interpreter": 1}
}The tool counts are already factored into cost_usd — they are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.
EmpirioLabs에서 Mistral Small 4은(는) 종량제로 청구됩니다: 이름 * $0.15 1M 신속한 토큰 당; 제품정보 $0.60 1M 생성 토큰; 표준 웹 검색 $0.084 전화 번호. 이 페이지의 실시간 요금표는 항상 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에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다.