DeepSeek models
Run DeepSeek’s models on Modal for agentic coding, long-context reasoning, and tool use. Use them through Model APIs with per-token billing, or deploy them on Dedicated Endpoints with compute-based billing.
Which DeepSeek models can you run on Modal?
DeepSeek
DeepSeek V4.1 Flash 1017 EU
The EU API for DeepSeek V4.1 Flash 1017, a multimodal Mixture-of-Experts model for coding, reasoning, and agentic tasks.
Text VisionDeepSeek
DeepSeek V4.1 Flash 1017
DeepSeek’s updated multimodal Mixture-of-Experts model for coding, reasoning, and agentic tasks, with native image and text input and a 1M-token context window.
Text VisionDeepSeek
DeepSeek V4.1 Flash
DeepSeek’s 552B multimodal MoE with a 1M-token context, native image input, and a KV cache a quarter the size of DeepSeek V4 Flash’s.
Text VisionDeepSeek
DeepSeek V4 Pro
DeepSeek’s flagship V4 coding and agent model, with 49B active parameters, a one-million-token context window, and a DSpark speculative decoding module.
TextDeepSeek
DeepSeek V4 Flash
DeepSeek’s compact V4 coding and agent model, with 13B active parameters, a one-million-token context window, and a DSpark speculative decoding module.
TextDeepSeek
DeepSeek V4 Pro Preview
The flagship DeepSeek V4 preview checkpoint for reasoning and coding, with 1.6T parameters, 49B active per token, and a one-million-token context window.
Text
| Model | Architecture | Context | Modalities | Input / Output |
|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 EU | 552B MoE | 1M | Text · Image | $0.375 / $1.50 |
| DeepSeek V4.1 Flash 1017 | 552B MoE | 1M | Text · Image | $0.25 / $1.00 |
| DeepSeek V4.1 Flash | 552B MoE | 1M | Text · Image | $0.30 / $1.20 |
| DeepSeek V4 Pro | 1.6T MoE · 49B active | 1M | Text | Dedicated only |
| DeepSeek V4 Flash | 284B MoE · 13B active | 1M | Text | Dedicated only |
| DeepSeek V4 Pro Preview | 1.6T MoE · 49B active | 1M | Text | Dedicated only |
| DeepSeek V4 Flash Preview | 284B MoE · 13B active | 1M | Text | Dedicated only |
All prices per million tokens. Dedicated Endpoint compute is billed by the second. See compute pricing.
Frequently asked questions about DeepSeek models on Modal
-
DeepSeek V4.1 Flash 1017 is the latest and most capable model in the family, an October 2026 update to DeepSeek V4.1 Flash with stronger reasoning, coding, agentic, and visual results. Both are 552-billion-parameter multimodal models that accept text and images with a one-million-token context window. DeepSeek V4 Pro is the earlier flagship V4 text model for coding agents, with 1.6 trillion parameters and 49 billion active per token, and DeepSeek V4 Pro Preview is its original preview checkpoint. DeepSeek V4 Flash is the smaller V4 text model, with 284 billion parameters and 13 billion active per token, and DeepSeek V4 Flash Preview is its original preview checkpoint.
-
You can run DeepSeek models on Modal through serverless Model APIs, which bill per token with no infrastructure to manage, or on Dedicated Endpoints, which give you your own autoscaling deployment for dedicated inference. Both serve an OpenAI-compatible API, so you can use the OpenAI SDK or any compatible client with the URL, model name, and credentials from your Modal dashboard. See the Model APIs guide and the Dedicated Endpoints guide.
-
Model APIs run DeepSeek on Modal-managed shared capacity: you pay per input, cached input, and output token, and there is nothing to scale or keep warm. Dedicated Endpoints run DeepSeek on GPUs reserved for your workload, billed by the GPU second, with control over minimum, maximum, and buffer containers, and they scale to zero when idle. See Modal pricing.
-
Yes. Modal is supported natively in coding harnesses like Claude Code, Codex, OpenCode, Omp, and Hermes Agent. You can use DeepSeek V4.1 Flash 1017, DeepSeek V4.1 Flash, or any other model supported in Model APIs. See the setup steps for each agent.
-
No. With Model APIs, Modal runs and autoscales the model, and you only send requests. With Dedicated Endpoints, Modal chooses the GPUs and serving configuration, starts containers when requests arrive, and scales down to zero when the endpoint is idle. You only set capacity limits if you want them.
Latest updates

How Abundant designed efficient rollout architecture with Modal Sandboxes
Abundant builds RL environments that run on Modal Sandboxes, powering training for frontier labs.

Building new research tools for Maya epigraphy on Modal

