# Tencent: Hy4

Hy4 is Tencent's open-weight Mixture-of-Experts flagship for text, image and video understanding, with 770B total parameters and 49B active per token. It targets computer use, frontend and game development, finance and office work, and scientific research.

- **Model id:** `opencheap/hy4`
- **Price per 1M tokens:** $0.42 input / $1.25 output
- **Cached input:** $0.021 per 1M tokens
- **Context:** 1M tokens, 65K max output

## Providers

10 providers. Prices are per 1M tokens. As of 2026-12-04 11:56 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.42 | $0.021 | $1.25 | — | — | — | 1M | 65K |
| Tencent · fp4 | $0.44 | $0.022 | $1.31 | 3.23 s | 55 tok/s | 100 % | 1M | 65K |
| Hugging Face · deepinfra · fp8 | $0.83 | $0.83* | $2.50 | — | — | — | 1M | — |
| Sandbase · quantization unknown | $0.83 | $0.042 | $2.50 | — | — | — | — | — |
| DeepInfra · fp8 | $0.88 | $0.044 | $2.63 | 2.40 s | 56 tok/s | 99.7 % | 1M | 131K |
| Together · quantization unknown | $0.88 | $0.044 | $2.63 | 0.72 s | 89 tok/s | 100 % | 1M | 943K |
| Qubax · quantization unknown | $0.88 | $0.044 | $2.63 | — | — | — | 1M | 65K |
| AiHubMix · quantization unknown | $0.88 | $0.44 | $2.65 | — | — | — | — | — |
| Surplus · quantization unknown | $0.84 | $0.042 | $2.51 | — | — | Unavailable | 1M | 65K |

\* No cache discount from this provider: cached tokens cost the input price.

1 more provider through partner hosts · from $0.44 in · $1.32 out

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Tencent:** `temperature`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Hugging Face · deepinfra:** `temperature`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Sandbase:** `temperature`, `top_p`, `top_k`, `min_p`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **DeepInfra:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Together:** `temperature`, `top_p`, `top_k`, `min_p`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **AiHubMix:** `temperature`, `top_p`, `top_k`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/hy4#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/hy4`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/hy4", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/hy4",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/hy4",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Hy4

Hy4 costs from $0.42 per 1M input tokens and $1.25 per 1M output tokens on OpenCheap, with cached input at $0.021 per 1M tokens. Its list price is $0.42 per 1M input tokens and $1.25 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0054, and 1,000 such requests about $5.42. Prices as of 2026-12-04 11:48 UTC.

10 providers serve Hy4 on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.

Hy4 is one of [7 Tencent models](https://opencheap.si/models/lab/tencent) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Hy4 API cost per 1M tokens?

Hy4 costs from $0.42 per 1M input tokens and $1.25 per 1M output tokens on OpenCheap, with cached input at $0.021 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one Hy4 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0054, and 1,000 such requests about $5.42. Every answer reports its own cost in usage.cost.

### Is Hy4 cheaper on OpenCheap than its list price?

Its list price is $0.42 per 1M input tokens and $1.25 per 1M output tokens, the same as here.

### Which providers serve Hy4?

10 providers serve Hy4 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Hy4?

Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.

### How do I call the Hy4 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/hy4. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Tencent

- [Hy-MT2-1.8B](https://opencheap.si/models/hy-mt2-1.8b) (`hy-mt2-1.8b`): $0.046 / $0.19 per 1M · 8.1K context
- [Hy-MT2-30B-A3B](https://opencheap.si/models/hy-mt2-30b-a3b) (`hy-mt2-30b-a3b`): $0.078 / $0.31 per 1M · 8.1K context
- [Hy-MT2-7B](https://opencheap.si/models/hy-mt2-7b) (`hy-mt2-7b`): $0.078 / $0.31 per 1M · 8.1K context
- [Hy3](https://opencheap.si/models/hy3) (`hy3`): $0.066 / $0.26 per 1M · 262K context
- [Hy4 Flash](https://opencheap.si/models/hy4-flash) (`hy4-flash`): $0.066 / $0.26 per 1M · 1M context
- [Hy4 Preview](https://opencheap.si/models/hy4-preview) (`hy4-preview`): $0.78 / $2.35 per 1M · 1M context

[All 7 Tencent models](https://opencheap.si/models/lab/tencent)

## Similar models

- [Kimi K3](https://opencheap.si/models/kimi-k3): Moonshot · 1M context · $1.57 / $0.94 per 1M · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-kimi-k3)
- [Kimi K3.1 Pro](https://opencheap.si/models/kimi-k3.1-pro): Moonshot · 1M context · $0.21 / $1.07 per 1M, 17 % cheaper · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-kimi-k3.1-pro)
- [DeepSeek V4 Pro](https://opencheap.si/models/deepseek-v4-pro): DeepSeek · 1M context · $0.40 / $0.79 per 1M, 34 % cheaper · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-deepseek-v4-pro)
- [GPT-5.6 Luna Pro](https://opencheap.si/models/gpt-5.6-luna-pro): OpenAI · 1M context · $0.21 / $1.26 per 1M · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-gpt-5.6-luna-pro)
- [GPT 5.6 Terra](https://opencheap.si/models/gpt-5.6-terra): OpenAI · 1M context · $0.20 / $1.20 per 1M, 9 % cheaper · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-gpt-5.6-terra)
- [Qwen3.7 Plus](https://opencheap.si/models/qwen3.7-plus): Qwen · 1M context · $0.28 / $1.13 per 1M, 12 % cheaper · [Compare with Hy4](https://opencheap.si/compare/hy4-vs-qwen3.7-plus)

[Compare Hy4 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/hy4 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
