Hy4 vs Llama 4 Maverick 17B 128e Instruct
As of November 23, 2026, Hy4 costs 19% more per input token than Llama 4 Maverick 17B 128e Instruct ($0.417 vs $0.35 per 1M) and has a 960K-token context window versus 1M.
Hy4 vs Llama 4 Maverick 17B 128e Instruct side by side
| Hy4 | Llama 4 Maverick 17B 128e Instruct | |
|---|---|---|
| Input, per 1M tokens | $0.417 | $0.35 |
| Output, per 1M tokens | $1.25 | $1.15 |
| Cache read, per 1M tokens | $0.021 | – |
| Cache write, per 1M tokens | – | – |
| Context window | 960,000 tokens | 1,000,000 tokens |
| Max output | 64,000 tokens | 1,000,000 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | – |
| Reasoning | Yes | – |
| Providers on LiteLLM | 3 | 10 |
| Price shown is from | Tencent TokenHub | Google Vertex AI |
| Added to LiteLLM | November 5, 2026 | April 2025 |
Cheapest provider for each
- Hy4: Tencent TokenHub at $0.417 input and $1.25 output per 1M tokens (
tencent/hy4) - Llama 4 Maverick 17B 128e Instruct: Google Vertex AI at $0.35 input and $1.15 output per 1M tokens (
vertex_ai/meta/llama-4-maverick-17b-128e-instruct-maas)
When to pick which
Pick Llama 4 Maverick 17B 128e Instruct for
- Costs 16% less per input token: $0.35 vs $0.417 per 1M.
- Returns up to 1,000,000 tokens per response, vs 64,000.
From differences in the data above only; where the data is equal, no reason is given.
Call Hy4 or Llama 4 Maverick 17B 128e Instruct 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!"}]
# Hy4
response = completion(model="tencent/hy4", messages=messages)
# Llama 4 Maverick 17B 128e Instruct
response = completion(model="vertex_ai/meta/llama-4-maverick-17b-128e-instruct-maas", messages=messages)
# Hy4, falling back to Llama 4 Maverick 17B 128e Instruct if the call fails
response = completion(model="tencent/hy4", messages=messages, fallbacks=["vertex_ai/meta/llama-4-maverick-17b-128e-instruct-maas"])FAQ
Which is cheaper, Hy4 or Llama 4 Maverick 17B 128e Instruct?
Llama 4 Maverick 17B 128e Instruct is cheaper at 3 input tokens per output token: $0.55 per 1M tokens blended ($0.35 input, $1.15 output), versus $0.6254 ($0.417 and $1.25) for Hy4, as of November 23, 2026.
Which has the larger context window, Hy4 or Llama 4 Maverick 17B 128e Instruct?
Llama 4 Maverick 17B 128e Instruct has the larger context window: 1,000,000 tokens, versus 960,000 for Hy4.
Can I switch from Hy4 to Llama 4 Maverick 17B 128e Instruct without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "tencent/hy4" to "vertex_ai/meta/llama-4-maverick-17b-128e-instruct-maas", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.