Tencent: Hy4 Preview
tencent/hy4-preview
Access Hy4 Preview from Tencent using Puter.js AI API.
Get Started// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "tencent/hy4-preview"
}).then(response => {
document.body.innerHTML = response.message.content;
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "tencent/hy4-preview"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.puter.com/puterai/openai/v1/",
api_key="YOUR_PUTER_AUTH_TOKEN",
)
response = client.chat.completions.create(
model="tencent/hy4-preview",
messages=[
{"role": "user", "content": "Explain quantum computing in simple terms"}
],
)
print(response.choices[0].message.content)
curl https://api.puter.com/puterai/openai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PUTER_AUTH_TOKEN" \
-d '{
"model": "tencent/hy4-preview",
"messages": [
{"role": "user", "content": "Explain quantum computing in simple terms"}
]
}'
Model Card
Tencent Hy4 Preview is an open-weight Mixture-of-Experts model from Tencent's Hunyuan team, the successor to Hy3. It has 770B total parameters with 49B active per token, and supports a context window over 1M tokens. It's released under the Apache 2.0 license and supports tool calling.
In Tencent's internal blind evaluation across 203 engineering tasks judged by 163 experts, Hy4 Preview scored 2.99 out of 4.00, ahead of GLM-5.3 (2.92) and Kimi K3 (2.94). It scores 85.4 on Terminal-Bench 2.1, surpassing DeepSeek V4 Pro, and 82.9 on SWE-bench Multilingual, up from Hy3's 75.8. On DeepSWE, its score rose from Hy3's 28.0 to 64.3.
It's aimed at coding agents, software engineering, office and document generation, and scientific research workflows via API.
Context Window 1M
tokens
Max Output 64K
tokens
Input Cost $0.83
per million tokens
Output Cost $2.5
per million tokens
Tool Use Yes
Release Date Aug 28, 2026
Model Playground
Try Hy4 Preview instantly in your browser.
This playground uses the Puter.js AI API — no API keys or setup required.
More AI Models From Tencent
Hy-MT2 1.8B
Hy-MT2 1.8B is a lightweight multilingual translation model from Tencent Hunyuan, part of the Hy-MT2 family that also includes 7B and 30B-A3B (MoE) variants for heavier workloads. It translates across 33 languages, including Chinese, Cantonese, English, French, Japanese, Korean, Arabic, Russian, Tibetan, and Uyghur, and is trained to follow translation-specific instructions such as terminology guidance, style adaptation, and structured data translation. Tencent reports that the 1.8B model outperforms mainstream commercial translation APIs from providers like Microsoft and Doubao overall, though it hasn't published specific BLEU or COMET scores to back up the comparison. The larger 7B and 30B-A3B models are reported to outperform DeepSeek-V4-Pro and Kimi K2.6 on translation tasks in fast-thinking mode. With an 8,192-token context window, it's a fit for developers who need fast, low-cost, dedicated translation via API rather than a general-purpose chat model.
ChatHy-MT2 30B-A3B
Hy-MT2 30B-A3B is a multilingual translation model from Tencent's Hunyuan team, built as a Mixture-of-Experts network with 30B total parameters and roughly 3B active per token. It's part of the Hy-MT2 family, released alongside 1.8B and 7B variants, and is designed for fast, instruction-following translation across 33 languages, including style guides, terminology lists, and structured data formats. Tencent reports it outperforming open-source models including DeepSeek-V4-Pro and Kimi K2.6 on translation quality evaluations, and approaching closed-source Gemini 3.1 Pro. It ships under the Apache 2.0 license. It's a fit for developers building translation features who need multilingual quality without the cost of a general-purpose flagship model, particularly when terminology, tone, or output format need to be controlled via instructions.
ChatHy-MT2 7B
Hy-MT2 7B is a multilingual translation model from Tencent's Hunyuan team, part of the Hy-MT2 family that also includes the 1.8B and 30B-A3B (MoE) variants. Tencent positions it as the balanced-performance size, between the lightweight 1.8B model and the professional-grade 30B-A3B model. It translates across 33 languages and follows translation-specific instructions for terminology, style, and output format. On the FLORES-200 XX↔XX benchmark, Hy-MT2 7B scores 86.89, reaching 97.9% of Gemini 3.1 Pro's performance. That compares to 87.47 (98.6%) for the 30B-A3B model and 79.77 (89.9%) for the 1.8B model in the same family. Tencent also reports it outperforming DeepSeek-V4-Pro and Kimi K2.6 on translation tasks in fast-thinking mode. With an 8,192-token context window, it's a fit for developers who need higher translation quality than the 1.8B model without the cost of the 30B-A3B variant, particularly for terminology- or format-sensitive translation via API.
Frequently Asked Questions
You can access Hy4 Preview by Tencent through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required. You can also use it with Python or cURL via Puter's OpenAI-compatible API.
Yes, it is free if you're using it through Puter.js. With the User-Pays Model, you can add Hy4 Preview to your app at no cost — your users pay for their own AI usage directly, making it completely free for you as a developer.
| Price per 1M tokens | |
|---|---|
| Input | $0.83 |
| Output | $2.5 |
Hy4 Preview was created by Tencent and released on Aug 28, 2026.
Hy4 Preview supports a context window of 1M tokens. For reference, that is roughly equivalent to 2,048 pages of text.
Hy4 Preview can generate up to 64K tokens in a single response.
Yes, Hy4 Preview supports tool use (function calling), allowing it to interact with external tools, APIs, and data sources as part of its response flow.
Yes — the Hy4 Preview API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add Hy4 Preview to your app without worrying about API keys or setup.
Read the Docs View Tutorials