Hy4 Flash
NewTencent's fast, light model for everyday.
Hy4 Flash is Tencent's fast, light model with a 1M-token context window. It reads images and is light on your allowance.
Tencent
2 models
Hy4 Flash in the Tencent constellation, with Hy4 Preview.
A star's size and colour follow its API output price. Tencent in the model list
Facts
- Context window
- 1M tokens
- Input
- Text and images
- Thinking effort
- Fixed
- Speed
- Standard
- Available on
- All plans
- Intelligence rank at Vani
- Not ranked
Guide
Best for
- Everyday
- Quick answers
- Long documents
Strengths
- 1M-token context window
- Reads images
- Light on your allowance
Hy4 Flash 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 | On Vani |
|---|---|
| Input | $0.049 |
| Output | $0.1967 |
| Cached input | $0.0021 |
In Vani Chat it uses your plan's allowance: tokens per plan.
Hy4 Flash API quickstart
OpenAI-compatible: point any OpenAI SDK at https://api.vani.ai/v1 and send tencent/hy4-flash 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-flash","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-flash",
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-flash",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content)Compare with
1M context$1.7507 output per 1M
Compare side by side with Hy4 PreviewOpenAI
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.3
Hy4 Flash: questions
- What is Hy4 Flash?
- Hy4 Flash is Tencent's fast, light model with a 1M-token context window. It reads images and is light on your allowance.
- How large is Hy4 Flash's context window?
- Hy4 Flash has a context window of 1M tokens: that is how much it can read at once. It reads images as well as text.
- How much does the Hy4 Flash API cost?
- On the prepaid Vani API, Hy4 Flash costs $0.049 per 1M input tokens and $0.1967 per 1M output tokens ($0.0021 per 1M cached input tokens). In Vani Chat it uses your plan's allowance.
- Which Vani plan includes Hy4 Flash?
- Hy4 Flash is on every Vani Chat plan, the Free plan included.
Put a question to Hy4 Flash.
Hy4 Flash is on every Vani Chat plan, the Free plan included.