All models

Tencent: Hy4 Preview

tencent/hy4-preview
textReasoning

Tencent: Hy4 preview is a mixture-of-experts model from Tencent, with 49B active parameters out of 770B total. It is designed for coding agents, complex tool-use workflows, and productivity work needing planning, context continuity, and multi-step execution. 1M context.

Price in / out
Cache, read / write
Context / Max output
1.05M / 64K
Released
Aug 28, 2026

Parameters

messagesrequired
reasoning_effortoff · low · medium · high
max_tokensoptional · alias max_completion_tokens
streamtrue · false
toolsfunction calling (OpenAI format)
tool_choiceauto · none · required
response_formatjson_object · json_schema
web_search · · ·
providerrouting: order · only · ignore · sort
stream_options{"include_usage": true}
Fine-tuning · 2
temperature0–2
stopoptional

How to use via API

from openai import OpenAI

client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.chat.completions.create(
    model="tencent/hy4-preview",
    messages=[{"role": "user", "content": "Привет"}],
    reasoning_effort="low",  # off · low · medium · high
    temperature=0.7,
    max_tokens=1024,
    stream=False,
)
print(resp.choices[0].message.content)

# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
    model="tencent/hy4-preview",
    messages=[{"role": "user", "content": "Привет"}],
    stream=True,
):
    print(chunk.choices[0].delta.content or "", end="", flush=True)
API docsTry in the bot