DeepSeek-V4-Flash vs Gemma 4 31B IT
DeepSeek-V4-Flash (DeepSeek, April 2026) and Gemma 4 31B IT (Google DeepMind, April 2026), compared on price, context window, access and specs. They cost the same: $0.046 in and $0.27 out per million tokens. DeepSeek-V4-Flash reads more at once: a 1.05M-token context window against 262K.
Updated 5 December 2026 · read each row across; the best value in a row is marked
Google DeepMind
At a glance
- Tasks
Language modeling
Language generation
Question answering
Language modeling
Language generation
Question answering
- Released
- 24 April 2026
- 2 April 2026
- Access
- Open weights (unrestricted)
- Open weights (restricted use)
- Country
- China
- United States of America
Price and API
- Input, per 1M tokens
- $0.046on OpenRouter
- $0on Google AI StudioLowest
- Output, per 1M tokens
- $0.18on DeepInfra
- $0on Google AI StudioLowest
- Where to run it
- OpenRouterDeepInfraHugging FaceDeepSeekAll 5 providers
- Google AI StudioDeepInfraAmazon BedrockOpenRouterAll 6 providersMost choice
- Official API id
deepseek/deepseek-v4-flashgoogle/gemma-4-31b-it- Context window
- 1.05M tokensLargest
- 262K tokens
- Max output
- 393K tokensLargest
- 33K tokens
- Takes
- Text, Image
- Text, Image
- Returns
- Text
- Text
- Knowledge cutoff
- May 2025
- Not listed
- Supports
- ReasoningTool callingStructured outputFile inputOpen weights
- ReasoningTool callingStructured outputFile inputOpen weights
Scale and training
- Parameters
- 284B284,000,000,000Largest
- 31B31,000,000,000
- Training compute
- 2.5 × 10²⁴ FLOP
- Not listed
- Confidence
- Likely
- Likely
Notes
- Parameters
- 284B total, 13B active
- Not listed
- Training compute
- 6 * 13e9 active parameters * 32e12 tokens = 2.496E24 for pre-training
- Not listed
In their own words
- Abstract
We present a preview version of DeepSeek-V4 series, including two strong Mixture-ofExperts (MoE) language models — DeepSeek-V4-Pro with 1.6T parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) — both supporting a context length of one million tokens. DeepSeek-V4 series incorporate several key upgrades in architecture and optimization: (1) a hybrid attention architecture that combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) to improve long-context efficiency; (2) ManifoldConstrained Hyper-Connections (mHC) that enhance conventional residual connections; (3) and the Muon optimizer for faster convergence and greater training stability. We pre-train both models on more than 32T diverse and high-quality tokens, followed by a comprehensive post-training pipeline that unlocks and further enhances their capabilities. DeepSeek-V4-ProMax, the maximum reasoning effort mode of DeepSeek-V4-Pro, redefines the state-of-the-art for open models, outperforming its predecessors in core tasks. Meanwhile, DeepSeek-V4 series are highly efficient in long-context scenarios. In the one-million-token context setting, DeepSeekV4-Pro requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2. This enables us to routinely support one-million-token contexts, thereby making long-horizon tasks and further test-time scaling more feasible. The model checkpoints are available at https://huggingface.co/collections/deepseek-ai/deepseek-v4.Read all
We introduce Gemma 4, a new generation of open-weight, natively multimodal language models in the Gemma model family. Designed to advance compute efficiency and reasoning, the Gemma 4 model suite features dense and Mixture-of-Experts architectures, ranging from 2.3B to 31B parameters. Alongside improved vision and audio encoders for all model sizes, we propose a unified, encoder-free architecture for our 12B model, which ingests raw audio and image patches. Furthermore, we integrate a thinking mode, enabling Gemma models to generate reasoning traces prior to responding. We improve inference speed, memory, and compute efficiency, as well as long-context abilities through critical design choices. Gemma 4 establishes a leap in performance across STEM, multimodal, and long-context benchmarks, and rivals larger, frontier open models in human-rated tasks.Read all
- Authors
- Not listed
- Sherif El Abd, Vaibhav Aggarwal, Robin Algayres, Alek Andreev, Olivier Bachem, Ian Ballantyne, Cormac Brick, Victor Cărbune and 314 more
Which should you pick?
- Long documents, codebases or transcripts
- DeepSeek-V4-Flash · 1.05M tokens of context, 4× more than Gemma 4 31B IT.
- Long answers in one response
- DeepSeek-V4-Flash · Up to 393K output tokens per response.
Questions people ask
Is DeepSeek-V4-Flash better than Gemma 4 31B IT?
It depends on the job. For long documents, codebases or transcripts, DeepSeek-V4-Flash has the edge: 1.05M tokens of context, 4× more than Gemma 4 31B IT. For long answers in one response, DeepSeek-V4-Flash has the edge: up to 393K output tokens per response. Try them on your own prompts in the AIPortalX playground before you commit.
Which is cheaper: DeepSeek-V4-Flash or Gemma 4 31B IT?
They are priced the same, at $0.046 in and $0.27 out per million tokens.
Which has the bigger context window?
DeepSeek-V4-Flash, with 1.05M tokens; Gemma 4 31B IT takes 262K. A larger window lets one request hold longer documents or conversations.
Where can I use DeepSeek-V4-Flash and Gemma 4 31B IT through one API?
OpenRouter, DeepInfra and Hugging Face serve all of them, so you can switch models without opening another account.
When were they released?
DeepSeek-V4-Flash in April 2026 and Gemma 4 31B IT in April 2026.