Hy4 Preview
Hy4 Preview is a Tencent model with a 1M-token context window.
Tencent
1 model
Hy4 Preview in the Tencent constellation: the only Tencent model on Vani.
A star's size and colour follow its API output price. Tencent in the model list
Facts
- Context window
- 1M tokens
- Input
- Text
- Thinking effort
- Fixed
- Speed
- Standard
- Available on
- All plans
- Intelligence rank at Vani
- Not ranked
Hy4 Preview API price
Use this model on the Vani API with the OpenAI- or Anthropic-compatible endpoints. Prepaid API prices per 1M tokens.
| Per 1M tokens | Official | On Vani |
|---|---|---|
| Input | $0.834 | $0.5838 |
| Output | $2.501 | $1.7507 |
| Cached input | $0.042 | $0.0294 |
Official prices checked 1 Oct 2026. Source of the official prices (opens in a new tab)
In Vani Chat it uses your plan's allowance: tokens per plan.
Hy4 Preview API quickstart
OpenAI-compatible: point any OpenAI SDK at https://api.vani.ai/v1 and send tencent/hy4-preview as the model. The Anthropic-compatible /v1/messages endpoint works too.
curl https://api.vani.ai/v1/chat/completions \
-H "Authorization: Bearer $VANI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tencent/hy4-preview","messages":[{"role":"user","content":"Hello"}]}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.vani.ai/v1",
api_key=os.environ["VANI_API_KEY"], # a vani_ key
)
reply = client.chat.completions.create(
model="tencent/hy4-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.vani.ai",
api_key=os.environ["VANI_API_KEY"], # a vani_ key
)
message = client.messages.create(
model="tencent/hy4-preview",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content)Compare with
OpenAI
GPT-6.1 Terra
GPT-6.1 Terra is a balanced, cost-efficient model in OpenAI’s GPT-6.1 family, positioned below GPT-6.1 Sol. Designed for everyday agentic workflows, coding, and content creation, it excels at interpreting screenshots and visual interfaces while delivering reliable performance and efficiency for high-volume workloads.
1M context$3.50 output per 1M
Compare side by side with GPT-6.1 TerraZ.AI
GLM-5.3
GLM-5.3 is a Z.AI model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
1M context$3.08 output per 1M
Compare side by side with GLM-5.3Anthropic
Claude Sonnet 5
Claude Sonnet 5 is an Anthropic model with a 1M-token context window. It reads images and lets you choose how hard it thinks.
1M context$7.00 output per 1M
Compare side by side with Claude Sonnet 5
Hy4 Preview: questions
- What is Hy4 Preview?
- Hy4 Preview is a Tencent model with a 1M-token context window.
- How large is Hy4 Preview's context window?
- Hy4 Preview has a context window of 1M tokens: that is how much it can read at once. It reads text.
- How much does the Hy4 Preview API cost?
- On the prepaid Vani API, Hy4 Preview costs $0.5838 per 1M input tokens and $1.7507 per 1M output tokens ($0.0294 per 1M cached input tokens). In Vani Chat it uses your plan's allowance.
- Which Vani plan includes Hy4 Preview?
- Hy4 Preview is on every Vani Chat plan, the Free plan included.
Put a question to Hy4 Preview.
Hy4 Preview is on every Vani Chat plan, the Free plan included.