Now on VeniceLLMReasoningOpen weights

Hy4 Preview

Tencent's open-weight MoE flagship — 770B total / 49B active parameters, a 1M-token context, and a productivity focus on coding, office work, and research.

For agents
curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "messages": [{ "role": "user", "content": "Explain quantum tunneling simply." }]
  }'
Model IDhy4-preview
Maker
Tencent (Hunyuan / Tencent Hy Team)
Context
1,024K tokens
Reasoning
Supported
Privacy
Private

Overview

What is Hy4 Preview

Hy4 Preview is Tencent Hunyuan's open-weight flagship language model, released on August 28, 2026. It is a 770B-parameter Mixture-of-Experts with 49B parameters activated per token, a 1M-token context window, and training aimed at coding, office productivity, and scientific research. On Venice it runs with function calling, reasoning, and web search.

Running it privately on Venice

On Venice, Hy4 Preview runs under the private tier with zero retention — your prompts are not stored, profiled, or used for training, and there is no personal history tied to your usage. It is served quantized to fp4 to keep a 770B model this affordable per token. Note that Venice's privacy here comes from not keeping data, not from encrypted inference: TEE and end-to-end encryption are not part of this deployment.

PrivateNo prompt trainingTEE · hardware enclaveEnd-to-end encrypted

Agent quickstart

Three calls, copied straight out

The API is OpenAI-compatible: change the base URL and the model id and existing client code works unchanged.

Streaming chat

curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "stream": true,
    "messages": [{ "role": "user", "content": "Draft the release note." }]
  }'

Tool calling

curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "messages": [{ "role": "user", "content": "Find the rate limits." }],
    "tools": [{
      "type": "function",
      "function": {
        "name": "search_docs",
        "description": "Search the API documentation.",
        "parameters": {
          "type": "object",
          "properties": { "query": { "type": "string" } },
          "required": ["query"]
        }
      }
    }],
    "tool_choice": "auto"
  }'

Python SDK

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["VENICE_API_KEY"],
    base_url="https://api.venice.ai/api/v1",
)

resp = client.chat.completions.create(
    model="hy4-preview",
    messages=[{"role": "user", "content": "Build without permission."}],
)
print(resp.choices[0].message.content)

Specifications

Datasheet

Maker
Tencent (Hunyuan / Tencent Hy Team)
Open weights
Yes — Apache-2.0
License
Apache-2.0
Context window
1,024K tokens
Prompt length
Up to ~960K input tokens within the 1M context (per Tencent Cloud documentation)
Input images
Not supported
Released
August 28, 2026
Architecture
Mixture-of-Experts (MoE), 78 layers, Gated DeepSeek Sparse Attention (Gated DSA) with IndexCache, iHC hyper-connections, native MTP layer for speculative decoding
Parameters
770B total, 49B activated per token (plus a 10B MTP layer, 0.7B activated)
Expert configuration
256 routed experts + 1 shared expert; top-8 routed experts active per token
Max output
64K tokens
Capabilities
Function calling, Reasoning, Web search, Code-optimized
Privacy on Venice
Private — zero retention
Available on Venice since
Aug 2026

Assessment

Strengths and limitations

Strengths
  • Open weights under Apache-2.0: you can inspect, self-host, and fine-tune it, a rarity at this parameter scale.
  • 1,024K-token context window with 64K max output, suited to whole-codebase analysis and very long documents.
  • Strong agentic toolkit: function calling, structured JSON-schema output, built-in web search, and a dedicated reasoning mode.
  • Code-optimized tuning: Tencent positions it for software engineering, and its internal blind evaluation placed it slightly ahead of GLM-5.3 and Kimi K3 on engineering tasks.
  • Efficient MoE design: only 49B of 770B parameters activate per token, plus a native MTP layer for speculative decoding throughput.
  • Aggressively priced on Venice at $1.04 in / $3.13 out per 1M tokens, with cached input at just $0.05.
Limitations
  • It is a Preview release: Tencent itself says pre-training and post-training still have room to improve, so treat it as early-access rather than production-hardened.
  • Text-only: no image or document-vision input.
  • Not an uncensored model: Venice does not market it as unfiltered; Venice Uncensored 1.2 is the uncensored option on the platform.
  • Privacy on Venice relies on zero retention rather than encrypted (TEE) inference.
  • At 770B total parameters it is heavy to self-host, even with only 49B active per token.

Use cases

What it is good for

  1. 01Large-scale code analysis and refactoring across entire repositories within the 1M-token window.
  2. 02Agentic workflows that chain function calls and structured JSON output.
  3. 03Office productivity: long reports, spreadsheets-as-text, and document summarization.
  4. 04Scientific and research literature review over very long source material.
  5. 05High-volume API workloads where open weights and low cached-input pricing keep costs predictable.

Prompting

Getting better results

Enable the reasoning mode for hard coding or multi-step analysis tasks; switch it off for quick lookups to save tokens.

Define your tools once and let function calling drive multi-step agent loops — the model is tuned for it.

Request JSON schema output explicitly when you need machine-readable results instead of prose.

Paste whole files or modules rather than excerpts — with ~960K input tokens available, context is rarely the constraint.

Use web search prompts for anything time-sensitive instead of trusting the training cutoff.

Keep a stable system prompt and reuse prefixes so cached input bills at $0.05 per 1M tokens instead of $1.04.

Alternatives

How it compares

ModelBest forContextOpen weightsPrice (Venice)
Hy4 PreviewCheap open-weight frontier for code and agents1M tokensYes$1.04 in · $3.13 out / 1M
Kimi K3Open flagship with maximum headroom1M tokensYes$3.75 in · $18.75 out / 1M
Qwen 3.8 MaxLong-horizon autonomous work1M tokensNo$2.50 in · $7.50 out / 1M
Gemini 3.8 FlashFast, cheap closed assistant1M tokensNo$0.94 in · $4.69 out / 1M

Hy4 Preview is the right pick when you want open weights, a 1M-token context, and full tool use at the lowest output cost in its class — especially for high-volume coding and agentic pipelines. Pay more for Kimi K3 only if you need its extra headroom on the hardest reasoning tasks.

Pricing

What it costs on Venice

Billed per token on Venice: $1.04 per 1M input tokens and $3.13 per 1M output tokens.

Input / 1M tokens
$1.04
Per 1M tokens
Output / 1M tokens
$3.13
Per 1M tokens
Cached input / 1M
$0.05
Per 1M tokens

New Venice accounts include a free daily allowance and 500 welcome credits — no credit card required.

Getting a key

From nothing to a first call

  1. 01

    Create a key in API settings. Nothing else is required to start.

  2. 02

    Export it as VENICE_API_KEY so the snippets above run unedited.

  3. 03

    Point an existing OpenAI client at https://api.venice.ai/api/v1. The scheme is part of the value: an OpenAI client given a bare host does not resolve it.

  4. 04

    Pass hy4-preview as the model and send the request.

FAQ

Frequently asked questions

Hy4 Preview is Tencent Hunyuan's open-weight flagship language model, released August 28, 2026. It is a Mixture-of-Experts model with 770B total parameters and 49B activated per token, a context window exceeding 1M tokens, and training focused on coding, office productivity, and scientific research.

Venice bills Hy4 Preview per token: $1.04 per 1M input tokens, $3.13 per 1M output tokens, and just $0.05 per 1M cached input tokens. There is no subscription required — you pay only for what you use.

Yes. Tencent released Hy4 Preview under the Apache-2.0 licence, with weights available on Hugging Face and ModelScope. That means you can self-host or fine-tune it, or simply run it privately through Venice without managing any infrastructure.

Tencent released and open-sourced Hy4 Preview on August 28, 2026, and it has been available on Venice since August 2026. It is an early 'Preview' version of the Hy4 generation, so Tencent notes that further training improvements are still expected.

Yes. On Venice, Hy4 Preview supports function calling, structured JSON-schema output, a dedicated reasoning mode, and built-in web search. It is also code-optimized, which makes it well suited to agentic software-engineering workflows.

Both are open-weight models with roughly 1M-token contexts. Hy4 Preview costs far less per output token ($3.13 vs $18.75 per 1M on Venice), making it the better choice for high-volume coding and agent work. Kimi K3 is the pick when you need maximum capability on the hardest tasks and budget is secondary.

Venice runs Hy4 Preview under its private tier with zero retention: prompts and outputs are not stored, profiled, or used for training. You can use it in the Venice app or through the Venice API without building a personal usage history. Note that inference is not TEE-encrypted — privacy comes from Venice not keeping your data.

Hy4 Preview offers a 1,024K-token (about 1M) context window with up to 64K output tokens on Venice. Tencent Cloud documentation lists roughly 960K as the practical maximum input, so very long documents or large codebases fit in a single request.

No. Hy4 Preview is a text-only model — it does not accept image inputs. If you need vision, use a multimodal model on Venice instead; Hy4 Preview's strengths are code, long-context text, tool use, and reasoning.

Run Hy4 Preview privately

One key, free to start, no credit card.

Start chat