TE

Hy4 Preview

TencentReleased Aug 28, 2026tencent/hy4-preview
CostCompare

Hy4 preview is a 770B-parameter Mixture-of-Experts flagship from the Tencent Hy Team (49B active per token) with a 1M-token context window, post-trained for software engineering, office and data analysis, game development, and scientific research.

Context
1.05M
Input /1M
$0.83
Output /1M
$2.50
Blended /1M
$1.25
AcceptsTextProducesTextTokenizer Other

Providers

FastRouter routes your requests to this provider. You can also bring your own key.

DeepInfra logo
DeepInfra
deepinfra
Input /1M$0.83
Output /1M$2.50
Context1.05M
Max output—
Latency—
Throughput—
Supports tool callingSupports structured (JSON) outputSupports reasoning

Supported parameters

Request parameters you can send with this model.

Core (Sampling & basic generation)

max_tokens
Maximum tokens to generate.
seed
Seed for deterministic sampling.
stop
Sequences where generation stops.
temperature
Controls randomness of output.
top_k
Limits sampling to top K tokens.
top_p
Nucleus sampling threshold.

Penalties (Token Penalties)

frequency_penalty
Penalizes frequent tokens.
presence_penalty
Penalizes tokens already present.
repetition_penalty
Penalizes repeated tokens.

Reasoning (Reasoning Controls)

include_reasoning
Include reasoning trace in the response.
reasoning
Provider-specific reasoning configuration.

Tool Use (Function Calls & Tools)

tool_choice
How the model should use tools.
tools
Tool/function definitions available to the model.

Output & Format (Response Formatting)

logprobs
Return log probabilities of output tokens.
response_format
Structured output format configuration.

Performance

Median throughput and time to first token per provider over the last week.

Throughput

Latency

Make your first API call

OpenAI-compatible. Point your SDK at FastRouter, or call the API directly.

Full API docs
Replace <FASTROUTER_API_KEY> with your key · Get your key →Install
OpenAI SDKHTTP
from openai import OpenAI
client = OpenAI(
base_url="https://api.fastrouter.ai/api/v1", # FastRouter base URL
api_key= "<FASTROUTER_API_KEY>", # Replace with your FastRouter API key
)
completion = client.chat.completions.create(
model="tencent/hy4-preview", # Replace with your model ID
messages=[
{ "role": "user", "content": "What is the meaning of life?" }
]
)
print(completion.choices[0].message.content)

Frequently asked questions

Model scores sourced from ArtificialAnalysis