Research index
Model releases/

Hy4 Preview API: Pricing, Reasoning Tokens and Setup

Hy4 Preview API pricing is $0.834 per 1M input and $2.501 per 1M output. Tencent preview; it spends heavily on reasoning tokens. Rates and setup.

Written byRouterPlex
Reading time4 min
Hy4 Preview API: Pricing, Reasoning Tokens and Setup

Hy4 Preview is Tencent Hunyuan's current preview flagship, live as model ID hy4-preview. The published preview API rate is $0.834 per 1M input tokens and $2.501 per 1M output tokens.

Two operational facts matter more than the sticker. It is a preview — Tencent can change or withdraw it. And it spends heavily on reasoning tokens, so a too-small max_tokens can return an empty reply.

Sources: the RouterPlex catalog row for Hy4 Preview, checked 7 September 2026. Tencent ships this as a preview release. The rate this route bills is always the live page.

Hy4 Preview API pricing #

Token categoryPrice per 1M tokens
Input$0.834
Output$2.501
Cached input$0.042

A $5 prepaid balance buys roughly 6.0 million input tokens, or 2.0 million output tokens, if a workload used only one category. Reasoning tokens are output. A short visible answer can still be an expensive one.

Hy4 vs Hy3 vs nearby flagships #

ModelInput / 1MOutput / 1MContextStatus
hy3$0.20$0.80256KPublic-market reference; Tencent has no first-party hosted Hy3 tariff
hy4-preview$0.834$2.501~1MTencent preview API rate
glm-5.3$1.40$4.401MGA list rate
qwen3.8-max$2.00$6.001MGA list rate
grok-4.6$2.00$6.00500KGA list rate

Hy3 on RouterPlex is not a vendor list price. Tencent publishes Hy3 as open weights without a first-party hosted API tariff; this catalog uses a public-market reference. Hy4 Preview is a published preview API rate.

Cost per agent turn #

One 40,000-token prompt returning 2,000 tokens, no cache, ignoring extra reasoning:

ModelCost per turn
Hy3$0.010
Hy4 Preview$0.038
GLM-5.3$0.065
Grok 4.6$0.092
Qwen3.8-Max$0.092

The arithmetic for Hy4: 40,000 × $0.834 / 1M + 2,000 × $2.501 / 1M = $0.03336 + $0.005002 = $0.03836. Extra reasoning tokens add $2.501 per 1M on top of that.

Set max_tokens high enough #

Hy4 Preview is a reasoning model. Reasoning tokens count against the output cap. If you leave max_tokens at a chat-sized default, the model can spend the whole budget thinking and return an empty content string.

Treat that as a configuration bug, not a model outage. Raise max_tokens, then check usage.completion_tokens_details.reasoning_tokens before you decide the route is expensive.

Hy4 Preview specifications #

CapabilityHy4 Preview
Model IDhy4-preview
ProviderTencent Hunyuan
Context window~1,024,000 input tokens
Max output per request64,000 tokens
Image inputNo
Tool callingYes
ReasoningYes — budget for it
PreviewYes
OpenAI-compatible chat APIYes
Anthropic-compatible /v1/messagesYes

Call Hy4 Preview with RouterPlex #

bash
curl https://api.routerplex.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-preview",
"max_tokens": 16000,
"messages": [
{"role": "user", "content": "Name the riskiest assumption in this migration plan."}
]
}'
python
import os
from openai import OpenAI
 
client = OpenAI(
api_key=os.environ["ROUTERPLEX_API_KEY"],
base_url="https://api.routerplex.com/v1",
)
 
response = client.chat.completions.create(
model="hy4-preview",
max_tokens=16000,
messages=[{"role": "user", "content": "Design a rollback-safe deployment plan."}],
)
 
print(response.choices[0].message.content)

Claude Code can point at the same model with ANTHROPIC_BASE_URL=https://api.routerplex.com and model hy4-preview. See the Claude Code setup guide.

Should you use a preview? #

  • Evaluating Hunyuan 4 — yes, on a dedicated key with a hard budget and a high max_tokens.
  • Production that cannot tolerate a withdrawn ID — wait for a generally available Hunyuan 4 route, or use GLM-5.3 / Qwen3.8-Max on the same key.
  • Cheapest Hunyuan on this cataloghy3 at the public-market $0.20 / $0.80, 256K context, no first-party tariff.

The live Hy4 Preview page is the number this route will actually bill.

Common questions

Frequently asked questions

How much does the Hy4 Preview API cost?

Tencent's published preview API rate is $0.834 per 1M input tokens and $2.501 per 1M output tokens. RouterPlex bills that preview list rate with no markup.

What is the Hy4 Preview context window?

About 1,024,000 input tokens on this catalog, with 64,000 maximum output tokens per request.

Why did a Hy4 Preview reply come back empty?

Hy4 spends heavily on reasoning tokens, which count against max_tokens. If the cap is too small, the model can burn the budget on reasoning and return no visible reply. Raise max_tokens.

Is Hy4 cheaper than Hy3?

No. Hy3 on this catalog is a public-market reference of $0.20 / $0.80 per 1M. Hy4 Preview is $0.834 / $2.501. Hy4 is the newer preview, not a price cut.

Does Hy4 Preview support vision?

Not on this catalog. hy4-preview is text, tools, and reasoning.

Can I use Hy4 Preview with the OpenAI SDK?

Yes. Point the OpenAI SDK at https://api.routerplex.com/v1 with model ID hy4-preview. The Anthropic SDK and Claude Code also work against https://api.routerplex.com via /v1/messages.

Run the smallest paid test.

Add $5, cap the key, and verify the result with your own workload. No subscription, and credit never expires — a first top-up of $25+ is matched with $25 extra.