Hy4 Preview API Pricing
- Input / output
- $0.417 / $1.25 per 1M tokens
- Cache read
- $0.021 / 1M
- Context
- 960K tokens
- Max output
- 64K tokens
As of November 24, 2026, Hy4 Preview costs $0.417 per 1M input tokens and $1.25 per 1M output tokens from Tencent TokenHub, the lowest of 6 providers, with cache reads at $0.021 per 1M tokens. It has a 960,000-token context window and returns up to 64,000 tokens per response.
Hy4 Preview pricing by provider
6 listings across 6 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Tencent TokenHub | tencent/hy4-preview | $0.417 | $1.25 | $0.021 | 960K |
| AIHubMix | aihubmix/hy4-preview | $0.845 | $2.535 | $0.04225 | 1M |
| DeepInfra | deepinfra/tencent/Hy4-preview | $0.834 | $2.501 | $0.042 | 1M |
| GMI Cloud | gmi/tencent/hy4-preview | $0.834 | $2.501 | $0.042 | 256K |
| Kyma API | kyma/hy4-preview | $1.126 | $3.376 | – | 1M |
| OpenCode Go | opencode_go/hy4-preview | $0.834 | $2.501 | $0.042 | 1M |
What Hy4 Preview costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Tencent TokenHub | $1.459 |
| DeepInfra | $2.918 |
| GMI Cloud | $2.918 |
| OpenCode Go | $2.918 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Tencent TokenHub | $4.42 |
| DeepInfra | $8.84 |
| GMI Cloud | $8.84 |
| OpenCode Go | $8.84 |
Hy4 Preview cost calculator
At Tencent TokenHub's price ($0.417 input, $1.25 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $10.42 a day, about $313 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.001042
- Per day
- $10.42
- Per month (30 days)
- $313
Hy4 Preview features
Input: text. Output: text.
- Function calling
- Structured output
- Reasoning
- Prompt caching
- Web search
Use Hy4 Preview with LiteLLM
Call Hy4 Preview through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="tencent/hy4-preview",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: hy4-preview
litellm_params:
model: tencent/hy4-preview
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "hy4-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'Hy4 Preview price history
| Date | Price |
|---|---|
| October 10, 2026 | $0.845 / $2.535 per 1M tokens |
| October 24, 2026 | $0.834 / $2.501 per 1M tokens |
| November 11, 2026 | $0.417 / $1.25 per 1M tokens |
Hy4 Preview FAQ
How much does Hy4 Preview cost?
Hy4 Preview costs $0.417 per 1M input tokens and $1.25 per 1M output tokens from Tencent TokenHub, the lowest of 6 providers, with cache reads at $0.021 per 1M tokens.
What is the context window of Hy4 Preview?
Hy4 Preview has a 960,000-token context window and returns up to 64,000 tokens per response.
Which providers offer Hy4 Preview?
Hy4 Preview is available from 6 providers through LiteLLM: Tencent TokenHub, AIHubMix, DeepInfra, GMI Cloud, Kyma API and OpenCode Go. The lowest price is on Tencent TokenHub.
How do I call Hy4 Preview with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="tencent/hy4-preview", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does Hy4 Preview support?
Hy4 Preview supports function calling, structured output, reasoning, prompt caching and web search.
When did LiteLLM add Hy4 Preview?
Hy4 Preview was added to LiteLLM's model price file on September 16, 2026.
Compare Hy4 Preview
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
- www.tencentcloud.com/document/product/1300/78937
- aihubmix.com/api/v1/models
- deepinfra.com/tencent/Hy4-preview
- ie-api.gmicloud.ai/v1/artifact/get_public_artifacts
LiteLLM docs: Tencent TokenHub, AIHubMix, DeepInfra, GMI Cloud, Kyma API, OpenCode Go.
Provider pages: Tencent TokenHub, AIHubMix, DeepInfra, GMI Cloud, Kyma API, OpenCode Go.