> ## 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.

# DeepSeek V4.1 Flash

> 具備原生視覺理解的 DeepSeek 推理模型，適合程式設計、代理和多模態分析。

具備原生視覺理解的 DeepSeek 推理模型，適合程式設計、代理和多模態分析。

## 模型資訊

| 欄位 | 說明 |
| - | - |
| `model` | deepseek-v4.1-flash |
| `alias` | deepseek-flash |
| `context` | 1M tokens |
| `max output` | 384K tokens |
| `endpoint` | POST /v1/chat/completions |

上下文和輸出長度為模型規格；實際請求限制、可用性與計費取決於 MixRoute 路由。

## 能力與使用

* 需要明確選擇 10 月 17 日版本時，使用 [DeepSeek V4.1 Flash 1017](/docs/zh-Hant/model-api/deepseek/deepseek-v4.1-flash-1017) (`deepseek-v4.1-flash-1017`)。 其他已列出的模型 ID 仍可使用，各路由的版本對應可能獨立變更。
* deepseek-v4.1-flash 和 deepseek-flash 均為可用模型 ID；滾動別名對應的版本可能變化。
* 支援思考與非思考模式。`thinking.type` 可設為 `enabled` 或 `disabled`；`reasoning_effort` 設為 `none` 可關閉思考，`low`、`high`、`max` 可啟用思考，預設強度為 `high`。
* 新整合應明確選擇此模型，不要假設所有路由的舊 V4 別名都指向同一快照。

## 請求示例

呼叫前設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/chat/completions" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Explain the tradeoffs of database indexes."
    }
  ],
  "max_tokens": 1024
}'
```

## 請求欄位

| 欄位 | 說明 |
| - | - |
| `model` | 必填，使用上方完整模型 ID。 |
| `messages` | 必填，對話訊息包含 `role` 和 `content`。 |
| `thinking` | 可選，`{"type":"enabled"}` 或 `{"type":"disabled"}`，預設為 `enabled`。 |
| `reasoning_effort` | 可選，`none`、`low`、`high` 或 `max`，預設為 `high`。不要同時設定互相衝突的思考參數。 |
| `max_tokens` | 可選，輸出 token 預算，上限為 393216 tokens（384K），同時受上下文視窗與路由限制。 |
| `stream` | 可選，設為 `true` 以啟用串流回應。 |

完整請求格式見[介面說明](/docs/zh-Hant/api-reference/endpoint/chat-openai)。


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