DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

DeepSeek V4.1 Flash 1017: Model Overview & API Guide

Published on 2026.10.01 by DeepInfra
DeepSeek V4.1 Flash 1017: Model Overview & API Guide

Updated November 2026 for the DeepSeek-V4.1-Flash-1017 release.

DeepSeek-V4.1-Flash-1017 is a multimodal Mixture-of-Experts model with a 552B-parameter backbone and a context window of 1,048,576 tokens. It accepts text and image input and generates text. DeepSeek released it on October 17, 2026 as an update to DeepSeek-V4.1-Flash, which shipped on September 10.

1017 keeps the original model’s architecture and adds new post-training. DeepSeek calls it “a minor update” that delivers “substantial improvements across reasoning, coding, agentic tasks, and visual benchmarks” while reducing “task execution time and output length” (model card). It is also the model behind deepseek-flash on DeepSeek’s own API.

DeepInfra serves the model at fp8 with the full 1,048,576-token context and up to 393,216 output tokens, under a zero-retention policy. The architecture targets input-heavy agentic workloads: the Causal Encoder-Decoder design activates 8B parameters per token during prefill and 16B during decode, which keeps cost down on long prompts. For what changed in this release, see our post on the DeepSeek-V4.1-Flash-1017 launch on DeepInfra.

Model string: deepseek-ai/DeepSeek-V4.1-Flash-1017

What changed in 1017

The figures below are vendor-reported. DeepSeek ran them at maximum reasoning effort, temperature 1.0 and top_p 0.95, with the Claude Code harness for Terminal-Bench 4.0 and Mini-SWE-V2 for DeepSWE v1.1 (model card).

  • Agentic coding: Terminal-Bench 4.0 rises from 31.2 to 42.3, the largest gain in DeepSeek’s table. DeepSWE v1.1 moves from 74.2 to 77.0, ProgramBench from 20.3 to 29.1, and NL2Repo-Bench from 65.4 to 68.2.
  • Agents and automation: AutomationBench rises from 54.8 to 60.5, Agents’ Last Exam from 31.8 to 35.4, and Apex Bench from 64.6 to 72.1.
  • Reasoning: HLE without tools rises from 36.8 to 42.6 (44.0 on the text-only subset).
  • Vision with tools: Chartography rises from 78.9 to 83.0, BabyVision from 89.6 to 92.5 and ZeroBench from 49.0 to 51.0, the narrowest gain.
  • Shorter runs: DeepSeek says 1017 completes tasks faster with shorter outputs, “a Pareto improvement in performance and cost” (release notes).

The architecture, context window and parameter counts are unchanged.

Architectural Breakthroughs

Like the September release, DeepSeek-V4.1-Flash-1017 uses a Causal Encoder-Decoder (CED) architecture: a 40-layer Transformer split into a 20-layer causal encoder and a 20-layer decoder. The decoder’s global KV cache is projected from the final encoder states, so the model activates only 8 billion parameters during prefill and 16 billion during decoding (V4.1-Flash model card).

Key Innovations

  • Compressed Sparse Attention 2 (CSA2): Combined with SWA Bounded Replay and FP4 main KV caching, CSA2 brings the global KV cache footprint to 890 bytes per token. That is a four-fold reduction from V4-Flash and a 437-fold reduction from DeepSeek-V1, which removes much of the memory bottleneck in long-context inference.
  • Controllable reasoning: DeepSeek trained the model with a continuously controllable reasoning effort that trades inference cost against accuracy. On DeepInfra you set it with the reasoning_effort parameter (see Parameters below).
  • Multimodal integration: DeepSeek-ViT, a vision encoder trained from scratch, feeds visual embeddings into the model jointly with text from the start of pre-training.
  • Other components: Engram conditional memory (196B parameters, sparsely accessed), DSpark speculative decoding, and 384 routed experts plus one shared expert per MoE layer, with 6 routed experts active per token. Pre-training covered 45T tokens.

Benchmarks

Instruct model (1017)

BenchmarkV4.1-Flash-1017V4.1-Flash (Sept)Kimi K3GLM-5.3GPT-5.6 SolOpus 5
HLE w/o tools42.6 (44.0†)36.8 (39.1†)43.542.0†44.556.3
Terminal-Bench 4.042.331.212.637.939.951.8
DeepSWE v1.177.074.267.566.973.074.0
ProgramBench29.120.317.519.023.037.0
NL2Repo-Bench68.265.458.058.056.875.3
AutomationBench v1.0.660.554.846.748.845.850.3
Agents’ Last Exam35.431.827.628.526.728.6
Apex Bench v1.172.164.647.856.654.365.8
Chartography (w/ tools)83.078.968.1—79.984.0
BabyVision (w/ tools)92.589.685.7—88.994.1
ZeroBench-main (w/ tools)51.049.041.0—53.052.0

Source: DeepSeek-V4.1-Flash-1017 model card, vendor-reported. † = HLE text-only subset. Bold marks the best score in each row.

1017 takes the top score on DeepSWE v1.1, AutomationBench, Agents’ Last Exam and Apex Bench. Opus 5 stays ahead on HLE, Terminal-Bench 4.0, ProgramBench, NL2Repo and two of the three vision tasks, and GPT-5.6 Sol leads ZeroBench. On HLE without tools, Kimi K3 (43.5) and GPT-5.6 Sol (44.5) also score above 1017’s full-set 42.6.

Scaffold choice matters. On the September release, DeepSeek reported that DeepSWE v1.1 ranged from 74.2 with mini-SWE to 72.6 with DeepSeek Harness Minimal, 69.8 with Claude Code and 65.6 with Codex. Expect similar spread with 1017.

Independent view. Artificial Analysis scores 1017 at 33 on its Intelligence Index v5.0.1, second of 29 open-weight models of similar size (class median 23). It calls the model “well priced” and “quicker than average per task, however very verbose”: 174M output tokens to run the index against a 104M median. On LiveBench 2.0 (November 6, 2026 table), 1017 scores 80.4 in coding and 38.8 on long-horizon agentic tasks.

Base model

These figures come from DeepSeek’s internal evaluation framework and describe the base model, not the instruct model served on DeepInfra. Scores within 0.3 of each other are treated as equivalent.

Benchmark (Metric)ShotsV4-Flash-BaseV4-Pro-BaseV4.1-Flash-Base
AGIEval (EM)3-583.984.483.4
MMLU-Pro (EM)568.373.574.1
SimpleQA-Verified (EM)2530.155.242.3
BBH (EM)386.987.586.1
HumanEval (Pass@1)069.576.879.4
GSM8K (EM)890.892.693.0
MATH (EM)457.464.561.1
DocVQA (LLM-Judge)4not reportednot reported95.6

Source: DeepSeek-V4.1-Flash model card.

V4.1-Flash-Base leads on MMLU-Pro, HumanEval and GSM8K. It trails both predecessors on AGIEval, BBH and MATH, and V4-Pro keeps a wide lead on SimpleQA-Verified. Backbone parameters are 284B for V4-Flash, 1.6T for V4-Pro and 552B for V4.1-Flash, so the comparison is not like for like on size.

Pricing

Pricing as of 2026-11-17, per 1M tokens (model page):

TierInputOutputCached input
Standard, promotional (51% off)$0.098$0.294$0.003
Standard, list$0.20$0.60$0.006
Flex (0.8×)$0.0784$0.2352$0.0024
Priority (1.5×)$0.147$0.441$0.0044

The 51% promotion comes off list, and Flex and Priority apply to the promotional rate. No end date has been published for the promotion.

At these promotional rates, DeepInfra had the lowest input, output and blended price of every provider Artificial Analysis benchmarked for 1017 on November 17, 2026, and the lowest cost per Intelligence Index task ($0.19), with a 0.0% error rate. They are also below DeepSeek’s own API at every hour: DeepSeek charges $0.30 / $1.20 at peak and $0.15 / $0.60 off-peak. If response speed is your product, test DigitalOcean or Parasail, which measured roughly twice DeepInfra’s output speed at $0.30 / $1.20; for batch, agents and cost-sensitive work, the per-token gap compounds.

Set service_tier to "priority" for traffic that should not queue, at a 50% surcharge. Set it to "flex" for a 20% discount in exchange for best-effort scheduling: a Flex request can wait up to ten minutes for capacity before it runs or returns an HTTP 429, and a rejected Flex request is not charged, so use it for work you can retry (Flex service tier). Leave service_tier unset for standard real-time scheduling and pricing.

The reasoning_effort setting is a second cost lever: reasoning tokens bill as output, so lower effort means a smaller bill on simple steps. For repeated long prefixes, prompt_cache_key and prompt_cache_options keep cached input at $0.003 per 1M (prompt cache retention).

Getting started

The API is OpenAI-compatible. Point your existing OpenAI client at DeepInfra’s base URL and change the model name.

  • Base URL: https://api.deepinfra.com/v1/openai
  • Endpoint: /chat/completions
  • Auth header: Authorization: Bearer $DEEPINFRA_API_KEY
curl "https://api.deepinfra.com/v1/openai/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DEEPINFRA_API_KEY" \
  -d '{
      "model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
      "messages": [
        {
          "role": "user",
          "content": "Explain the benefits of a Mixture-of-Experts (MoE) architecture."
        }
      ],
      "reasoning_effort": "low",
      "max_tokens": 4096
    }'
copy

In Python:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DEEPINFRA_API_KEY"],
    base_url="https://api.deepinfra.com/v1/openai",
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4.1-Flash-1017",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What does this architecture diagram show? List the components."},
                {"type": "image_url", "image_url": {"url": "https://example.com/diagram.png"}},
            ],
        }
    ],
    temperature=1.0,
    top_p=0.95,
    max_tokens=32768,
    extra_body={
        "reasoning_effort": "high",  # none | minimal | low | medium | high | xhigh | max
        "service_tier": "flex",      # remove this line for the standard tier
    },
)

print(response.choices[0].message.content)
print(response.usage)
copy

Parameters

ParameterNotes
modelRequired. deepseek-ai/DeepSeek-V4.1-Flash-1017
messagesRequired. Roles: system, user, assistant, tool. User content can include images.
reasoning_effortString: none, minimal, low, medium, high, xhigh or max. "none" turns thinking off. DeepSeek’s benchmark results use maximum effort. Reasoning tokens bill as output.
reasoningObject form of the same control: {"effort": "...", "enabled": true/false}.
max_tokensMaximum tokens to generate, up to 393,216. If unset: the smaller of 65,536 and the remaining context. See output limits below.
temperature0 to 2. Default 1. DeepSeek recommends 1.0.
top_pDefault 1. DeepSeek recommends 0.95 or 1.0.
streamSet to true for server-sent events.
stopUp to 16 sequences that halt generation.
nNumber of completions. Default 1, up to 4.
presence_penalty, frequency_penalty−2.0 to 2.0. Default 0.
response_format{"type": "json_object"}, a JSON schema, or a regex for structured output.
tools, tool_choiceFunction calling.
service_tier"priority" or "flex". Leave unset for standard.
fail_fastReturn HTTP 429 immediately instead of queueing when the model is at capacity. Default false.
prompt_cache_key, prompt_cache_optionsShare and retain a prompt cache across requests, e.g. {"ttl": "1h"}.

DeepSeek’s model card describes reasoning effort as an integer from 1 to 100 on its own stack. DeepInfra’s API takes the string values above.

Output limits

There is no 16,384-token output cap on this model. You can request up to 393,216 output tokens (384K). If you leave max_tokens unset, DeepInfra uses the smaller of 65,536 tokens and whatever remains of the 1,048,576-token context window after your input. Input and output together must fit in that window.

DeepSeek recommends a max_tokens budget of at least 256K for its hardest tasks. At maximum effort the model can reason for tens of thousands of tokens before the final answer starts, so set max_tokens explicitly for agent and coding runs, and stream long generations to avoid client timeouts.

Response format

{
    "id": "chatcmpl-guMTxWgpFf",
    "object": "chat.completion",
    "created": 1694623155,
    "model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "..."
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 15,
        "completion_tokens": 16,
        "total_tokens": 31
    }
}
copy

Conclusion

DeepSeek-V4.1-Flash-1017 keeps the September release’s efficient architecture (8B active parameters on prefill, an 890-byte-per-token KV cache, a 1M context) and makes it noticeably better at agentic coding and automation, according to DeepSeek’s own numbers. Independent results agree that it is one of the strongest open-weight models of its size. Its weak spots are verbosity at high effort and a remaining gap to the best closed models on Terminal-Bench 4.0, ProgramBench and HLE.

On DeepInfra, the current promotion puts it at $0.098 input and $0.294 output per 1M tokens, or $0.2352 output on Flex: the lowest price among the providers Artificial Analysis benchmarked for this model as of November 17, 2026.

Next Steps:

  • Use prompt caching: use prompt_cache_key to cut costs on repeated, long-context prompts.
  • Explore multimodal: pass image URLs in the messages array for chart, screenshot and document analysis.
  • Tune reasoning: start with reasoning_effort set to "low" or "none" for simple steps, and reserve "high" or "max" for hard agent tasks.
  • Run batch work on Flex: evaluations and background agents can take the 20% Flex discount.
  • Read the rest of the package: the DeepSeek V4.1 Flash API benchmarks, the pricing guide and the best API providers for DeepSeek V4.1 Flash.
Related articles
Kimi K3.1 Pro: Model Overview, Benchmarks & API GuideKimi K3.1 Pro: Model Overview, Benchmarks & API Guide<p>Kimi K3.1 Pro is Moonshot AI&#8217;s flagship open-weight model, released on October 23, 2026 and built for long-horizon agent work: coding, 3D creation, financial research and document-heavy tasks. It is a 2.8-trillion-parameter Mixture-of-Experts model with 104B parameters active per token, takes text and images as input, returns text, and has a 1,048,576-token context window. K3.1 [&hellip;]</p>
NVIDIA Nemotron 3 Super on DeepInfra: 120B MoE ModelNVIDIA Nemotron 3 Super on DeepInfra: 120B MoE Model<p>NVIDIA&#8217;s Nemotron 3 Super runs 120 billion parameters while activating only 12 billion per token — a ratio that makes a real difference when orchestrating multiple agents in parallel. It&#8217;s built on a novel architecture called LatentMoE, a hybrid of Mamba-2, Mixture-of-Experts, and Attention layers designed from the ground up for agentic, reasoning, and long-context [&hellip;]</p>
Best Dedicated Inference Endpoint Providers for Scaling AI Companies in 2026Best Dedicated Inference Endpoint Providers for Scaling AI Companies in 2026Compare six dedicated inference endpoint providers for scaling AI companies in 2026, including DeepInfra, with GPU pricing, controls, and trade-offs.