TE

Hy4 Preview

5% off
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
Max output
131K
Input /1M
$0.79$0.83
Output /1M
$2.38$2.50
Blended /1M
$1.19$1.25
AcceptsTextProducesTextTokenizer Other

Launch offer · 5% off on every provider

Applied automatically; prices return to list when each offer ends.

Price schedule by provider

DiscountedList price

DeepInfra$0.83 / $2.50
-5% · ongoing
Today · Nov 4Nov 18
Price after offer (in/out)

Providers

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

DeepInfra logo
DeepInfrafp4
deepinfra
Input /1M$0.83$0.79
Output /1M$2.50$2.38
Context1.05M
Max output131K
Latency—
Throughput—
Offer
-5%Ongoing
Supports tool callingSupports structured (JSON) outputSupports reasoning

Offers without an end date apply until further notice.

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