Skip to content
GLM 5.4 is now on Model APIs: GPT-6 Sol class intelligence at up to 200 tok/s.
Learn more

DeepSeek V4.1 Flash 1017

DeepSeek V4.1 Flash 1017 is DeepSeek’s updated multimodal Mixture-of-Experts model for coding, reasoning, and agentic tasks, with native image and text input and a one-million-token context window.

Model

DeepSeek V4.1 Flash 1017 is DeepSeek’s October 2026 update to DeepSeek V4.1 Flash, with stronger reasoning, coding, agentic, and visual results. DeepSeek says it also finishes tasks faster with shorter outputs, which lowers the cost of each task across several agent harnesses. In DeepSeek’s evaluations, it raises Terminal-Bench 4.0 from 31.2 to 42.3 in Claude Code, DeepSWE v1.1 from 74.2 to 77.0, and Agents’ Last Exam from 31.8 to 35.4. See the model card.

It keeps the architecture of DeepSeek V4.1 Flash: a 552-billion-parameter Mixture-of-Experts model with a Causal Encoder-Decoder design that activates 8 billion parameters per input token and 16 billion per output token. Its compressed KV cache needs a quarter of the HBM of DeepSeek V4 Flash, which cuts the cost of long, cache-heavy agent sessions. On Modal, it accepts text and images with a one-million-token context window. Read DeepSeek’s V4.1 Flash announcement.

Model APIs

With Model APIs, you pay per token. The endpoint is OpenAI-compatible and already live: point your existing SDK at it and start sending requests.

modal endpoint create --shared --model deepseek-ai/DeepSeek-V4.1-Flash-1017

Tinker-compatible API

Get started with training using Spindle, our open-source Tinker-compatible API with support for multi-tenant LoRA training and single-tenant full-parameter training and fine-tuning.

spindle deploy deepseek-v41-flash-1017-lora-32k

Dedicated Endpoint

Docs

A Dedicated Endpoint is your own deployment of DeepSeek V4.1 Flash 1017, on an inference stack that Modal tunes and autoscales. Bring fine-tuned weights if you have them. Compute is billed by the second, and only while it runs.

modal endpoint create --model deepseek-ai/DeepSeek-V4.1-Flash-1017

How much does DeepSeek V4.1 Flash 1017 cost on Modal?

DeepSeek V4.1 Flash 1017 costs $0.25 per million input tokens, $0.005 per million cached input tokens, and $1.00 per million output tokens.

The examples below use illustrative token counts for coding agents and assume 95% of input tokens are cache hits.

WorkloadInput / output tokensDeepSeek V4.1 Flash 1017DeepSeek V4.1 Flash
Live coding agent session3M / 75K$0.13$0.22
Background agent from issue to pull request30M / 200K$0.72$1.55
Automated review of 100 pull requests50M / 1M$1.86$3.38

Actual costs depend on token usage and cache hits. Estimates use Modal’s current pricing.

Use DeepSeek V4.1 Flash 1017 in your coding agent

Modal is supported natively in coding harnesses like Claude Code, Codex, OpenCode, Omp, and Hermes Agent. You can use DeepSeek V4.1 Flash 1017 or any other model supported in Model APIs. See the setup steps for each agent.

Frequently asked questions

  • On Model APIs, DeepSeek V4.1 Flash 1017 costs $0.25 per million input tokens, $0.005 per million cached input tokens, and $1.00 per million output tokens. Cached input costs 98% less than uncached input, so agent sessions that resend the same repository context and conversation history cost far less than the list input rate suggests. Billing is per token, with no charge for idle time.

  • DeepSeek V4.1 Flash 1017 supports a one-million-token context window. That limit is shared by the prompt, conversation history, images, tool results, reasoning, and the response. See the model card.

  • Yes. Use the OpenAI SDK or any OpenAI-compatible client with the API URL, model name, and authentication details from your Modal dashboard. Requests support multi-turn chat, tool calling, and image inputs. See the API request examples.

  • DeepSeek V4.1 Flash 1017 accepts text and images. You can interleave images with text in a conversation, which helps with screenshots, charts, diagrams, and UI work in agent loops. It returns text output. See supported models for the inputs each model accepts on Modal.

  • DeepSeek V4.1 Flash 1017 is a minor update to DeepSeek V4.1 Flash with the same architecture, parameter count, and context window. DeepSeek reports gains on every benchmark it published, including Terminal-Bench 4.0 (42.3 vs. 31.2), ProgramBench (29.1 vs. 20.3), and Apex Bench (72.1 vs. 64.6), along with shorter outputs and faster task completion. On Model APIs, its input, cached input, and output rates are also lower.

  • No. Through Model APIs, there are no GPUs to provision, scale, or manage: Modal runs and autoscales the model, and you pay only for the tokens you send and receive. If you need dedicated capacity, you can also deploy it on a Dedicated Endpoint and pay for the compute it uses. Follow the API setup guide.

Where can you download the weights?

The open weights are published on Hugging Face at deepseek-ai/DeepSeek-V4.1-Flash-1017. You can also skip self-hosting entirely and run the model on Modal, billed by the GPU second with scale-to-zero.

Ship your first app in minutes

$30 / month free compute