Tencent Hy4 Launches Serverless Inference Service on Together AI

Tencent's flagship model Hy4 has officially launched on Together AI's serverless inference platform. It supports a 770 billion parameter MoE architecture with a 1 million token context and vision input, and has been validated for chart data extraction and one-shot browser game generation. Developer accessibility has significantly improved with a price of $0.83 per 1 million input tokens and $2.50 for output.

Tencent Hy4 Officially Released with Together AI Serverless Inference

Tencent's next-generation flagship model Hy4 became immediately available in Together AI's Serverless Inference environment starting December 2024. The model identifier is `tencent/Hy4`, and it can be called through Together's chat completion API and playground without the need for separate infrastructure. This release is the first in the Hy family to natively support image input, and it also comes equipped with Tool Calling and JSON output functionalities.

Technical Specs: 770 Billion Parameter MoE, 49 Billion Active

Hy4 adopts the Mixture-of-Experts (MoE) architecture. The total parameters reach 770B (770 billion), but the parameters activated per token are at the 49B (49 billion) level, enhancing inference efficiency. The context window is 1M tokens, which is advantageous for analyzing long documents or processing large codebases. According to Tencent's announcement, Hy4 has added vision input and Computer-Use capabilities compared to Hy4 Preview, and has been trained and evaluated on tasks involving professional software manipulation like Blender and CAD, office work, financial research, and game development tasks based on Unreal, Unity, and Godot engines.

ItemSpecification
Total Parameters770B
Active Parameters per Token49B
Context Window1M Tokens
Input ModalityText, Image
Output FormatText, JSON
Tool CallingSupported
Model String`tencent/Hy4`

Real-World Testing: From Chart Restoration to One-Shot Game Generation

The Together AI team validated Hy4's practical performance through two scenarios.

1. Vision-Based Chart Data Extraction and HTML Reconstruction

They provided a screenshot of the Storage Accelerator Benchmark Chart from their blog post as input and requested JSON extraction. Hy4 returned the chart title and three numerical values exactly as they were. When instructed to reproduce a single HTML file chart using the same image, it visually restored the layout, labels, values, colors, dashed ceiling line, and footnote almost identically. The only change was that the font was replaced with a standard system font.

"Hy4 reproduced the layout, the labels, the values, the colors, the dashed ceiling line and the footnote."

2. One-Shot Browser Game Generation with Text Prompt Only

They provided the prompt "Create a browser game in a single HTML file without any libraries or external assets." Hy4 returned a polished arcade game called 'Polarity'. The core mechanics were implemented, including blocks falling from above, color matching, spacebar color switching, and avoiding yellow hazards, and it even voluntarily added a rules explanation title screen and best score retention between rounds feature. It ran immediately in the browser without code modification, and restarting after a game over functioned normally.

Pricing Policy: 95% Discount on Cash Input Tokens

The Together AI serverless pricing structure is as follows:

CategoryPrice per 1M Tokens (USD)
Input Tokens$0.83
Cash Input Tokens$0.042
Output Tokens$2.50

The price of cash input tokens is approximately 95% cheaper than regular input, resulting in significant cost savings for repeated calls with the same context. Since it is charged per request without the need for separate GPU instance reservations, it can scale flexibly from prototyping to production.

Lowering Developer Entry Barriers: Unified SDK, Playground, and Documentation

After installing the Together Python SDK (`pip install together`), it can be called immediately by simply setting the `TOGETHER_API_KEY`. Example code for chart extraction is included in the blog post, and prompt testing can be done in the playground without writing code. The model page provides a comprehensive overview of total parameters, limitations, and detailed pricing.

Implications: Global Serverless Debut of a Chinese Flagship Model

The entry of Tencent Hy4 into Together AI marks a rare case of a Chinese big tech flagship model being natively integrated into a Western serverless inference platform. With a model featuring 770B MoE scale, 1M context, vision, tool calling, and JSON output now accessible with just an API key and without initial infrastructure investment, it is expected to accelerate experiments in multimodal agents, code generation, and document understanding workloads for startups, research labs, and enterprises both domestically and internationally. In particular, the cash token discount is expected to directly contribute to TCO improvements during RAG, multi-turn conversations, and large document reprocessing.

Verified figures

Our take

The entry of Tencent Hy4 into Together AI's serverless platform can be recorded as the first case of a Chinese ultra-large MoE model entering the global developer ecosystem frictionlessly. The model, equipped with 1M context and vision/tool calling, offering a 95% discount on cash tokens, and becoming immediately available with just one API key, will lower the cost curve for multimodal agent development.

Open questions

Models mentioned

ProviderInputOutputContext window
Tencent: Hy4 preview · Tencent$0.834$2.5011,048,576

Source

Back to catalog