Tencent Hy4 Preview

tencent/hy4-preview

agentic coding & sustained multi-step tool use.

cmd --model tencent/hy4-preview
Intelligence index
not yet scored
Output speed
not yet scored
Input
$0.83 /M
Output
$2.50 /M
Cache read
$0.04 /M
Agent-loop cost
$0.28 /M in
Context window
1.05M tokens
Released
Modalities

vs. the lineup

Tencent Hy4 Preview beside its stablemates and nearest rivals. The ◆ marks the best value in each column across every row shown.

pin a rival:
ModelIntelligenceCodingSpeedInput $/MOutput $/MBlended $/MContext
GLM-5.3 Flash57.571.541.8$0.15$0.50$0.241.05M
Tencent Hy342.258.869.1$0.14$0.58$0.25262K
Gemini 3.5 Flash Lite37.449.3368.8$0.30$2.50$0.851M
Claude Haiku 4.524.1103.9$1$5$2200K
Tencent Hy4 Preview$0.83$2.50$1.251.05M
DeepSeek V4 Pro (latest)pinned53.268.861$0.66$1.98$0.991M
DeepSeek V4 Flash (latest)pinned5269.1129$0.22$0.66$0.331M

usage calculator

How far a month of credits goes on Tencent Hy4 Preview.

Input tokensfresh prompt
800
Output tokensmodel reply
180
Cache read tokensre-read context
50K
cost / request $0.0032 · in $0.83 · out $2.50 · cache $0.04 per M
fresh input 21%output 14%cache reads 65%
Requests / 30 days
3.1K
$10 credits ÷ $0.0032 per request
~622 quick fixes~124 bug fixes~21 feature PRs

what real work costs

Real coding tasks priced end to end on Tencent Hy4 Preview, from a quick lookup to a full-repo agent run.

One agent task
$0.07
180K in at 75% cache hit, 12K out
What you pay
$0.38 /M
all-in across every token that task touched
Sticker input
$0.83 /M
cache reads bill at $0.04 /M instead
TaskTokens in · outTencent Hy4 PreviewGLM-5.3 FlashClaude Haiku 4.5
Quick lookup / one-liner8K · 1K$0.0035$0.0008$0.0065
Review a 500-line PR60K · 4K$0.03$0.0060$0.04
Fix a bug (agent loop)180K · 12K$0.07$0.02$0.12
Refactor a module320K · 20K$0.13$0.03$0.21
Full-repo agent run900K · 45K$0.31$0.07$0.49

frequently asked

How much does Tencent Hy4 Preview cost?
$0.83/M input and $2.50/M output, cache reads $0.04/M. In an agent loop most input is cache-read, so the effective input rate is about $0.28/M.
Which plan do I need?
Available on Go and above.
How do I switch to it?
Run cmd --model tencent/hy4-preview, or type /model in a session and pick it. You can switch mid-session without losing context.

Ship code that matches your taste

Command Code is the AI coding agent that continuously learns your taste. Start for $1.

Benchmarks from Artificial Analysis (v4.1)commandcode.ai/models/hy4-preview