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

DeepSeek V4.1 Flash costs $0.30 per million input tokens, $0.03 per million cached input tokens, and $1.20 per million output tokens. DeepSeek V4.1 Flash 1017 is shown for comparison.

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

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

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

Use DeepSeek V4.1 Flash 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 or any other model supported in Model APIs. See the setup steps for each agent.