LiteLLMLiteLLM/ MODELS

DeepSeek R1 vs Hy4

As of November 23, 2026, DeepSeek R1 costs 32% more per input token than Hy4 ($0.55 vs $0.417 per 1M) and has a 64K-token context window versus 960K.

Prices from LiteLLM's price fileChecked

DeepSeek R1 vs Hy4 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 November 23, 2026.
DeepSeek R1Hy4
Input, per 1M tokens$0.55$0.417
Output, per 1M tokens$2.19$1.25
Cache read, per 1M tokens$0.14$0.021
Cache write, per 1M tokens––
Context window65,536 tokens960,000 tokens
Max output8,192 tokens64,000 tokens
Image input–Yes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM193
Price shown is fromDeepSeekTencent TokenHub
Added to LiteLLMJanuary 2025November 5, 2026

Cheapest provider for each

When to pick which

Pick DeepSeek R1 for

  • Available from 19 providers through LiteLLM, vs 3.

Pick Hy4 for

  • Costs 24% less per input token: $0.417 vs $0.55 per 1M.
  • Larger context window: 960,000 vs 65,536 tokens.

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

Call DeepSeek R1 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.

Python SDK
from litellm import completion

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

# DeepSeek R1
response = completion(model="deepseek/deepseek-r1", messages=messages)

# Hy4
response = completion(model="tencent/hy4", messages=messages)

# DeepSeek R1, falling back to Hy4 if the call fails
response = completion(model="deepseek/deepseek-r1", messages=messages, fallbacks=["tencent/hy4"])

FAQ

Which is cheaper, DeepSeek R1 or Hy4?

Hy4 is cheaper at 3 input tokens per output token: $0.6254 per 1M tokens blended ($0.417 input, $1.25 output), versus $0.96 ($0.55 and $2.19) for DeepSeek R1, as of November 23, 2026.

Which has the larger context window, DeepSeek R1 or Hy4?

Hy4 has the larger context window: 960,000 tokens, versus 65,536 for DeepSeek R1.

Can I switch from DeepSeek R1 to Hy4 without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "deepseek/deepseek-r1" 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.