TE

Hy4 Flash

NEW
TencentReleased Dec 2, 2026tencent/hy4-flash
CostCompare

Hy4 Flash is a multimodal Mixture-of-Experts model from the Tencent Hy Team with 220B total parameters and about 12B active per token. It takes text and image input and is Tencent’s most cost-efficient Hy model, built for everyday productivity work such as document processing, deep search, slide creation and computer use.

Context
1.05M
Input /1M
$0.07
Output /1M
$0.28
Blended /1M
$0.12
AcceptsTextImageProducesTextTokenizer Other

Providers

2 providers serve this model. FastRouter routes each request to the best available one, and you can bring your own key for any of them.

DeepInfra logo
DeepInfra
deepinfra
Input /1M$0.07
Output /1M$0.28
Context1.05M
Max output—
Supports tool callingSupports structured (JSON) outputSupports reasoning
Fireworks AI logo
Fireworks AI
fireworks
Input /1M$0.07
Output /1M$0.28
Context1.05M
Max output—
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.
min_p
Minimum probability threshold for sampling.

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.
reasoning_effort
Reasoning effort before answering.

Tool Use (Function Calls & Tools)

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

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-flash", # Replace with your model ID
messages=[
{ "role": "user", "content": "What is the meaning of life?" }
]
)
print(completion.choices[0].message.content)

Frequently asked questions

More models from Tencent

TE
Hy4tencent/hy4

Hy4 is a 770B-parameter Mixture-of-Experts flagship from the Tencent Hy Team (49B active per token) with a 1M-token context window and image understanding. It uses Gated DeepSeek Sparse Attention with IndexCache and improves on Hy4 preview in instruction following, long-context reasoning, long-horizon agentic tasks, computer use, coding and deep research.

TE
Hy4 Previewtencent/hy4-preview

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.

Model scores sourced from ArtificialAnalysis