> ## 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-Hans/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-Hans/api-reference/endpoint/chat-openai)。


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