Try Hy4
Generate with Hy4 right here. Verify your email to start with free credits.
Specifications
Context window
1M tokens
Max output
66K tokens
Input price
$0.63 / 1M tokens
Output price
$1.88 / 1M tokens
Cached input
$0.032 / 1M tokens
Capabilities
Reasoning
Works through multi-step problems before answering, for harder tasks.
Vision input
Accepts images alongside text, so you can prompt with pictures and screenshots.
Tool use
Can call functions and tools, enabling agentic and structured workflows.
Structured output
Returns validated JSON that conforms to a schema you define.
Use Hy4 through the API
The model id is tencent/hy4. Requests bill your GenMagic balance at the price above, and each response reports what it cost.
curl https://genmagic.co/api/v1/chat/completions \
-H "Authorization: Bearer $GENMAGIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tencent/hy4",
"messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
}'from openai import OpenAI
client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")
resp = client.chat.completions.create(
model="tencent/hy4",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)From an AI agent, call generate_text with "model": "tencent/hy4" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.
Use Hy4 in n8n
- In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
- Set Resource to Text and Operation to Generate.
- In Model Name or ID, pick Tencent: Hy4, or enter
tencent/hy4as an expression. - Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.
Ready-to-import workflows that already use the node are on GenMagic for n8n.
Similar-priced text models from other providers
Other text models GenMagic runs at a comparable price, on the same balance and API key.
| Model | Provider | Price | Context |
|---|---|---|---|
| Tencent: Hy4 (this model) | Tencent | $0.63 in / $1.88 out per 1M tokens | 1M |
| Perceptron: Perceptron Mk1.5 | Perceptron | $0.23 in / $2.25 out per 1M tokens | 37K |
| Thinking Machines: Inkling Small | Thinkingmachines | $0.68 in / $1.80 out per 1M tokens | 524K |
| Z.ai: GLM 5.3 FlashX Legal | Z.AI | $0.56 in / $1.88 out per 1M tokens | 1M |
| Qwen: Qwen3.7 Plus | Qwen | $0.48 in / $1.92 out per 1M tokens | 1M |
| Google: Gemini 3.1 Flash Lite | $0.38 in / $2.25 out per 1M tokens | 1M |
More from Tencent
All 9 Tencent modelsTencent: Hy Image 3.5 Preview
ImageHy Image 3.5 Preview is a unified image generation and editing model from Tencent. It handles text-to-image, image-to-image, and multi-turn editing through one endpoint, taking up to 20 reference images...
View modelTencent: Hy4 preview
TextTencent: 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 tasks that...
View modelTencent: Hy-MT2-1.8B
TextHy-MT2-1.8B is a compact 1.8B-parameter translation model from Tencent. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and style-guided...
View modelTencent: Hy-MT2-30B-A3B
TextHy-MT2-30B-A3B is Tencent's flagship translation model in the Hy-MT2 family. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and...
View modelTencent: Hy-MT2-7B
TextHy-MT2-7B is a 7B-parameter translation model from Tencent. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and style-guided translation.
View modelTencent: Hy3
TextHy3 is a 295B-parameter Mixture-of-Experts model from Tencent (21B active, 192 experts with top-8 routing) built for reasoning, agentic workflows, and real-world production use. It supports a configurable reasoning effort:...
View modelWhere these figures come from
- Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
- Specs and description: as Tencent publishes them (model card on Hugging Face), checked daily.
- Changes: no change recorded yet. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.
Generate with Hy4 today
One GenMagic plan unlocks Hy4 and every other model across text, image, audio, and video.