DeepSeek V4.1 Flash 1017 vs Gemma 4 31B
API pricing, context, and independently measured performance, side by side. DeepSeek V4.1 Flash 1017 starts 42% cheaper on input than Gemma 4 31B at list prices.
DeepSeek V4.1 Flash 1017
DeepSeek · released Oct 17, 2026
Best input$0.058 / MTok
Best output$0.294 / MTok
Context1.05M
Providers15
Fastest measured0.69s° TTFT · 131 tok/s
Open weightsVisionToolsReasoningStructured outputPrompt caching
Gemma 4 31B
Google · released Apr 2, 2026
Best input$0.10 / MTok
Best output$0.34 / MTok
Context262K
Providers17
Fastest measured1.4s° TTFT · 20 tok/s
Open weightsVisionToolsReasoningStructured outputPrompt caching
Cheapest providers, measuredUSD / MTOK
| MODEL | PROVIDER | INPUT | OUTPUT | TTFT | TPS | SMOKE |
|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 | $0.058 | $0.60 | — | — | — | |
| DeepSeek V4.1 Flash 1017 | $0.08 | $0.50 | — | — | — | |
| DeepSeek V4.1 Flash 1017 | $0.098 | $0.294 | — | — | — | |
| Gemma 4 31B | $0.10 | $0.34 | 3.1s° | 23° tok/s | 5/5 | |
| Gemma 4 31B | $0.12 | $0.36 | — | — | 5/5 | |
| Gemma 4 31B | $0.12 | $0.37 | 4.2s° | 29° tok/s | 5/5 |
TTFT/TPS: ModelIndex-measured medians (P50, trailing 21d) · chat10k profile (~10K in / 200 out) · ° = measured via OpenRouter routing (adds a hop) · SMOKE: of 5 programmatic capability probes passed · methodology v1.1 — full details on each model page