DeepSeek V4 Flash vs Hy4
As of November 23, 2026, Hy4 costs 39% more per input token than DeepSeek V4 Flash ($0.417 vs $0.30 per 1M) and has a 960K-token context window versus 1M.
DeepSeek V4 Flash vs Hy4 side by side
| DeepSeek V4 Flash | Hy4 | |
|---|---|---|
| Input, per 1M tokens | $0.30 | $0.417 |
| Output, per 1M tokens | $1.20 | $1.25 |
| Cache read, per 1M tokens | $0.006 | $0.021 |
| Cache write, per 1M tokens | $0 | – |
| Context window | 1,000,000 tokens | 960,000 tokens |
| Max output | 393,216 tokens | 64,000 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 32 | 3 |
| Price shown is from | DeepSeek | Tencent TokenHub |
| Added to LiteLLM | June 2026 | November 5, 2026 |
Cheapest provider for each
- DeepSeek V4 Flash: DeepInfra at $0.06 input and $0.18 output per 1M tokens (
deepinfra/deepseek-ai/DeepSeek-V4-Flash-0731) - Hy4: Tencent TokenHub at $0.417 input and $1.25 output per 1M tokens (
tencent/hy4)
When to pick which
Pick DeepSeek V4 Flash for
- Costs 28% less per input token: $0.30 vs $0.417 per 1M.
- Returns up to 393,216 tokens per response, vs 64,000.
From differences in the data above only; where the data is equal, no reason is given.
Call DeepSeek V4 Flash or Hy4 with LiteLLM
Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# DeepSeek V4 Flash
response = completion(model="deepseek-v4-flash", messages=messages)
# Hy4
response = completion(model="tencent/hy4", messages=messages)
# DeepSeek V4 Flash, falling back to Hy4 if the call fails
response = completion(model="deepseek-v4-flash", messages=messages, fallbacks=["tencent/hy4"])FAQ
Which is cheaper, DeepSeek V4 Flash or Hy4?
DeepSeek V4 Flash is cheaper at 3 input tokens per output token: $0.525 per 1M tokens blended ($0.30 input, $1.20 output), versus $0.6254 ($0.417 and $1.25) for Hy4, as of November 23, 2026.
Which has the larger context window, DeepSeek V4 Flash or Hy4?
DeepSeek V4 Flash has the larger context window: 1,000,000 tokens, versus 960,000 for Hy4.
Can I switch from DeepSeek V4 Flash to Hy4 without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "deepseek-v4-flash" to "tencent/hy4", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.