LiteLLMLiteLLM/ MODELS

DeepSeek V4.1 Flash vs Hy4 Flash

As of December 2, 2026, DeepSeek V4.1 Flash costs 29% more per input token than Hy4 Flash ($0.09 vs $0.07 per 1M) and has a 1,048,576-token context window versus 1,000,000.

Prices from LiteLLM's price fileChecked

DeepSeek V4.1 Flash vs Hy4 Flash side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of December 2, 2026.
DeepSeek V4.1 FlashHy4 Flash
Input, per 1M tokens$0.09$0.07
Output, per 1M tokens$0.30$0.281
Cache read, per 1M tokens$0.006$0.003
Cache write, per 1M tokens––
Context window1,048,576 tokens1,000,000 tokens
Max output1,048,576 tokens–
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM272
Price shown is fromSailGMI Cloud
Added to LiteLLMSeptember 11, 2026November 24, 2026

Cheapest provider for each

When to pick which

Pick DeepSeek V4.1 Flash for

  • Available from 27 providers through LiteLLM, vs 2.

Pick Hy4 Flash for

  • Costs 22% less per input token: $0.07 vs $0.09 per 1M.

From differences in the data above only; where the data is equal, no reason is given.

Call DeepSeek V4.1 Flash or Hy4 Flash 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.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# DeepSeek V4.1 Flash
response = completion(model="sail/deepseek-ai/DeepSeek-V4.1-Flash", messages=messages)

# Hy4 Flash
response = completion(model="gmi/tencent/hy4-flash", messages=messages)

# DeepSeek V4.1 Flash, falling back to Hy4 Flash if the call fails
response = completion(model="sail/deepseek-ai/DeepSeek-V4.1-Flash", messages=messages, fallbacks=["gmi/tencent/hy4-flash"])

FAQ

Which is cheaper, DeepSeek V4.1 Flash or Hy4 Flash?

Hy4 Flash is cheaper at 3 input tokens per output token: $0.1227 per 1M tokens blended ($0.07 input, $0.281 output), versus $0.1425 ($0.09 and $0.30) for DeepSeek V4.1 Flash, as of December 2, 2026.

Which has the larger context window, DeepSeek V4.1 Flash or Hy4 Flash?

DeepSeek V4.1 Flash has the larger context window: 1,048,576 tokens, versus 1,000,000 for Hy4 Flash.

Can I switch from DeepSeek V4.1 Flash to Hy4 Flash without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "sail/deepseek-ai/DeepSeek-V4.1-Flash" to "gmi/tencent/hy4-flash", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.