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 Fast
DeepSeek V4.1 Flash 1017 Fast on Modal: the 552B multimodal coding MoE served at ~4x output speed with half the time to first token.
Text VisionDeepSeek
DeepSeek V4.1 Flash 1017 EU
DeepSeek V4.1 Flash 1017 EU on Modal: a 552B multimodal MoE with image input and 1M context for coding agents, served from EU infrastructure.
Text VisionDeepSeek
DeepSeek V4.1 Flash 1017
DeepSeek V4.1 Flash 1017 API on Modal: the updated multimodal MoE for coding agents, with a 1M-token context at $0.25/M input tokens.
Text VisionDeepSeek
DeepSeek V4.1 Flash
DeepSeek V4.1 Flash API on Modal: a 552B multimodal MoE with a 1M-token context and native image input at $0.30/M input tokens.
Text VisionDeepSeek
DeepSeek V4 Pro
DeepSeek V4 Pro API on Modal: the flagship 1.6T-parameter MoE for coding agents, with 49B active per token and a 1M-token context. Benchmarks and pricing.
TextDeepSeek
DeepSeek V4 Flash
DeepSeek V4 Flash is DeepSeek's efficient coding model: a 284B MoE with 13B active per token, 1M-token context, and MIT weights on Modal.
Text
| Model | Architecture | Context | Modalities | Input / Output |
|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 Fast | 552B MoE | 1M | Text · Image | $0.50 / $2.00 |
| 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 Kepler built a model factory on Modal to read every number in a firm's documents

Introducing the Modal Cyber Defense Program
We're offering support to teams working to secure their systems with open-weights models.

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