Using Hunyuan Hy4 Preview on OpenRouter
Implementation guide · Hunyuan · Tencent AI Lab
OpenRouter exposes Hunyuan Hy4 Preview through model ID tencent/hy4-preview. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-08-31. Next refresh: weekly.
Quick Start
- 1
- 2Use the OpenRouter SDK or REST API to call
tencent/hy4-preview— see the documentation for request format. - 3
Code Examples
Pricing on OpenRouter
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.83 |
| Output tokens | $2.50 |
Capabilities
About Hunyuan Hy4 Preview
Tencent Hunyuan Hy4 preview is a Mixture-of-Experts flagship language model released and open-sourced August 28, 2026. First-party Tencent release: 770B total parameters with 49B activated per token, context window exceeding 1M tokens, aimed at coding, office productivity, game development, and scientific research. Hugging Face model card (tencent/Hy4-preview) documents a 78-layer MoE backbone (256 routed experts, top-8 plus 1 shared expert), Gated DeepSeek Sparse Attention with IndexCache, iHC residual streams, native MTP speculative decoding, Apache License 2.0 weights (also Hy4-preview-FP8), and OpenAI-compatible serving via vLLM/SGLang with tool-call and reasoning parsers.