TokenPriceDB

DeepSeek V4.1 Flash 1017 API pricing

DeepSeek · checked 2026-11-21 · source

Input / 1M tokens
$0.15
Output / 1M tokens
$0.6
Cached input / 1M tokens
$0.003
Context window
1,048,576
Provider
DeepSeek

Cost per typical task

Computed from the prices above. The token counts are illustrative task sizes, not measurements.

TaskTokensArithmeticCost
Chat reply1,000 input + 300 output1,000 ÷ 1,000,000 × $0.15 + 300 ÷ 1,000,000 × $0.6 = $0.000330$0.000330
Summarize a long document20,000 input + 1,000 output20,000 ÷ 1,000,000 × $0.15 + 1,000 ÷ 1,000,000 × $0.6 = $0.003600$0.003600
Coding agent step (cached context)5,000 input + 40,000 cached input + 2,000 output5,000 ÷ 1,000,000 × $0.15 + 40,000 ÷ 1,000,000 × $0.003 + 2,000 ÷ 1,000,000 × $0.6 = $0.002070$0.002070

← Calculate the cost of your own prompt · Compare with the cheapest LLM APIs