Deepseek-V4.1-Flash-1017

Model IntroductionText

DeepSeek-V4.1-Flash, a multimodal Mixture-of-Experts (MoE) model with 552B backbone parameters and support for contexts of up to one million tokens.

Introduction

We introduce DeepSeek-V4.1-Flash, a multimodal Mixture-of-Experts (MoE) model with 552B backbone parameters and support for contexts of up to one million tokens. The model natively processes images and text, and generates text autoregressively. Architecture. DeepSeek-V4.1-Flash adopts a Causal Encoder-Decoder (CED) architecture: a 40-layer Transformer organized as a 20-layer causal encoder followed by a 20-layer decoder. With CED, the decoder's global KV cache is projected from the final encoder hidden states rather than derived from each decoder layer's own hidden states. This allows the model to activate only 8B parameters per token during prefill and 16B during decode, substantially improving cost efficiency for input-heavy agentic workloads.

Key Features

  • The model natively processes images and text, and generates text autoregressively.
  • DeepSeek-V4.1-Flash adopts a Causal Encoder-Decoder (CED) architecture: a 40-layer Transformer organized as a 20-layer causal encoder followed by a 20-layer decoder.
  • With CED, the decoder's global KV cache is projected from the final encoder hidden states rather than derived from each decoder layer's own hidden states.
  • This allows the model to activate only 8B parameters per token during prefill and 16B during decode, substantially improving cost efficiency for input-heavy agentic workloads.
  • SWA Bounded Replay reconstructs missing SWA KV states by replaying only the most recent n_win tokens, avoiding the need to persist SWA KV to SSD and reducing the persistent KV cache footprint to roughly 1/8 of that of DeepSeek-V4-Flash.

Benchmarks

Benchmark (Area)Score*
GPQA Diamond (Pass@1) (Reasoning)90.9 (Eval)
HLE (Pass@1) (Reasoning)36.8 (39.1†) (Eval)
Codeforces (Rating) (Reasoning)3471 (Eval)
MathArena Apex (Pass@1) (Reasoning)65.6 (Eval)
Terminal-Bench 2.1 (Pass@1) (Agentic)90.6 (Eval)
Terminal-Bench 3.0 (Pass@1) (Agentic)30.0 (Eval)
Terminal-Bench 4.0 (Pass@1) (Agentic)31.2 (Eval)
DeepSWE v1.1 (Resolved) (Agentic)74.2 (Eval)
ProgramBench (Almost@1) (Agentic)20.3 (Eval)
NL2Repo-Bench (Score) (Agentic)64.0 (Eval)
CyberGym (Pass@1) (Agentic)88.1 (Eval)
SEC-Bench Pro (Pass@1) (Agentic)62.8 (Eval)
ExploitGym (Pass@1) (Agentic)15.3 (Eval)
HLE w/ tools (Pass@1) (Agentic)63.9 (Eval)
AutomationBench (Pass@1) (Agentic)54.8 (Eval)
Agent's Last Exam (Pass@1) (Agentic)31.8 (Eval)
Chartography w/ tools (Pass@1) (Agentic)78.9 (Eval)
BabyVision w/ tools (Pass@1) (Agentic)89.6 (Eval)
ZeroBench-main w/ tools (Pass@5) (Agentic)49.0 (Eval)

API request example

Endpoint /v1/chat/completions. Replace <API_KEY> with a key from the console.

Standard OpenAI Chat Completions. Swap `model` for the target slug.

curl https://api.ravenrouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
  "model": "Deepseek-V4.1-Flash-1017",
  "messages": [
    {
      "role": "user",
      "content": "Hello! Introduce yourself in one sentence."
    }
  ],
  "max_tokens": 64
}'

More models: API Reference → Examples by model

Deepseek-V4.1-Flash-1017 API — $0.32/1M input, $1.29/1M output | RavenRouter AI