> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mistral Large 4

> Mistral Large 4 的 MixRoute OpenAI 相容呼叫範例。

Mistral Large 4 是 Mistral 的開放權重指令與推理混合模型，廠商型號頁公布的上下文視窗為 1M Token。下方 MixRoute 範例涵蓋文字輸入與輸出。

Console 為 `mistral-large-4` 登記了 `POST /v1/chat/completions`。即使回應回傳廠商別名，請求仍應使用此 MixRoute 模型 ID。

## 請求範例

執行範例前，請設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl https://api.mixroute.ai/v1/chat/completions \
  -H "Authorization: Bearer $MIXROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-large-4",
    "messages": [{"role": "user", "content": "只回覆 MODEL_OK。"}],
    "max_tokens": 512
  }'
```

## 參考資料

* [Console 模型端點目錄](https://mixroute.ai/docs/zh-Hant/api-reference/model-endpoints.md)
* [建立對話請求（OpenAI）](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/chat-openai.md)
* [Mistral Large 4 型號頁](https://docs.mistral.ai/models/mistral-large-4-0)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.