Skip to content

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?

ModelArchitectureContextModalitiesInput / Output
DeepSeek V4.1 Flash 1017 EU552B MoE1MText · Image$0.375 / $1.50
DeepSeek V4.1 Flash 1017552B MoE1MText · Image$0.25 / $1.00
DeepSeek V4.1 Flash552B MoE1MText · Image$0.30 / $1.20
DeepSeek V4 Pro1.6T MoE · 49B active1MTextDedicated only
DeepSeek V4 Flash284B MoE · 13B active1MTextDedicated only
DeepSeek V4 Pro Preview1.6T MoE · 49B active1MTextDedicated only
DeepSeek V4 Flash Preview284B MoE · 13B active1MTextDedicated 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.

Ship your first app in minutes

$30 / month free compute