LiteLLMLiteLLM/ MODELS

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.

Prices from LiteLLM's price fileChecked

Hy4 vs Llama 4 Maverick 17B 128e Instruct 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.
Hy4Llama 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 window960,000 tokens1,000,000 tokens
Max output64,000 tokens1,000,000 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYes–
ReasoningYes–
Providers on LiteLLM310
Price shown is fromTencent TokenHubGoogle Vertex AI
Added to LiteLLMNovember 5, 2026April 2025

Cheapest provider for each

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.

Python SDK
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.