TencentChat
Hy4 preview
hy4-previewHy4 preview is Tencent's language model that takes text input and returns text. It supports a reasoning mode and tool calling.
- Context
- 1M tokens
- Max output
- Unknown
- Endpoint
Service Status
Status information temporarily unavailable
Apertis cannot confirm the current service state. This is not a report that the model is down.
Pricing
Input$0.834 / 1M
Output$2.50 / 1M
Cache Write (5m)$0.834 / 1MDefault rate
Cache Write (1h)$0.834 / 1MDefault rate
Cache Read$0.834 / 1MDefault rate
Web SearchNo surcharge
Quick Start
Select an endpoint and copy a working example for this model.
Endpoint
python
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.apertis.ai/v1") response = client.chat.completions.create( model="hy4-preview", messages=[ {"role": "user", "content": "Hello!"} ], max_tokens=1024, temperature=0.7) print(response.choices[0].message.content) # Optional: Enable context compression to reduce token usage# response = client.chat.completions.create(# model="hy4-preview",# messages=[{"role": "user", "content": "Hello!"}],# extra_body={"compression": {"enabled": True, "model": "gpt-4.1-mini"}}# )Supported Parameters
API docsCommon7 params
modelmessagesmax_tokenstemperaturetop_pstreamtoolsExtended4 params
reasoning_effortstream_optionsthinkingextra_bodyCursor IDE Model IDs
Use these namespaced identifiers in Cursor IDE to avoid conflicts with built-in models.
Questions about Hy4 preview
How much does Hy4 preview cost on Apertis?
Hy4 preview costs $0.834 per 1M input tokens and $2.50 per 1M output tokens on Apertis.
What is Hy4 preview's context window?
Hy4 preview has a context window of 1M tokens.
Which company develops Hy4 preview?
Hy4 preview is developed by Tencent.
Which model ID do I use to call Hy4 preview?
Use the model ID hy4-preview to call Hy4 preview.
Compare with Other Models
See how this model compares to others from the same provider.