
DeepSeek-V4.1-Flash
deepseek-v4.1-flashOverview
DeepSeek-V4.1-Flash is the smallest model in DeepSeek's new architecture family, with native multimodal visual understanding. It is a 552B-parameter MoE model built on the new Causal-Encoder-Decoder architecture, with asymmetric input and output: only 8B parameters are activated for input and 16B for output, at a cost well below other known models of the same size. The new architecture sharply compresses the KV cache, cutting HBM requirements to 1/4 and SSD requirements to 1/8 of the previous generation, which lowers the cost of agent workloads where cache-hit charges make up a large share. The model supports a 1M context window and up to 384K output tokens; thinking mode is on by default, with three effort levels (low, high and max) to match task complexity.
Features
Pricing
Rate Limits & Context
API Reference
POST https://api.tokenfab.cn/v1/chat/completions
Request Example
curl https://api.tokenfab.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKENFAB_API_KEY" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "介绍一下你自己。"}
]
}'Response Example
{
"id": "chatcmpl-7f3a2c91",
"object": "chat.completion",
"created": 1789012800,
"model": "deepseek-v4.1-flash",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"reasoning_content": "用户希望我做自我介绍,需要说明模型名称与主要能力。",
"content": "我是 DeepSeek-V4.1-Flash,由深度求索研发的 MoE 多模态模型,支持文本与图像输入、1M 上下文窗口,思考模式默认开启。"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 14,
"completion_tokens": 58,
"total_tokens": 72
}
}Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | ✓ | Model ID, e.g. deepseek-v4.1-flash |
| messages | array | ✓ | List of chat messages, each with role and content; a user message's content can be an array of content parts carrying images (JPEG, PNG, GIF, WebP) |
| thinking | object | — | Thinking mode switch: type is enabled or disabled, default enabled |
| reasoning_effort | string | — | Thinking effort: low / high / max, default high; none turns thinking mode off |
| max_tokens | int | — | Maximum output tokens, 1 to 384K (393216); if unset, defaults to 8K in non-thinking mode and 64K in thinking mode (128K at max) |
| temperature | float | — | Sampling temperature, 0–2, default 1; has no effect in thinking mode |
| top_p | float | — | Nucleus sampling, default 1; in thinking mode values below 0.95 are raised to 0.95, and in non-thinking mode it is fixed at 1.0 |
| response_format | object | — | Set type to json_object to enable JSON mode; the prompt must also ask for JSON output |
| stream | bool | — | Whether to stream message deltas over SSE |
| tools | array | — | Tool definitions; only function is supported for now |
| tool_choice | string | — | Tool choice policy: none / auto / required / a named function; required and named functions are not supported in thinking mode |