aiapicompareaiapicompare
aiapicompare › All models › Hy4

Hy4: API pricing compared

Hy4 is available from 6 provider(s). Cheapest: NanoGPT at $0.417 per 1M input tokens and $1.25 per 1M output tokens. Context window: up to 1 048 576 tokens. Developer: Tencent.

Strengths in the Arena leaderboard

🏆 Rank 23 · Web & app building

Rankings: Arena (arena.ai, formerly LMArena), dataset lmarena-ai/leaderboard-dataset, licensed under CC BY 4.0, as of 2026-11-23. Excerpt; variants with different reasoning effort merged and matched to our prices by aiapicompare. Not affiliated with Arena and not a recommendation.

ProviderInput $/1MOutput $/1MContext
NanoGPT
tencent/hy4
$0.417$1.251.05MGo to provider ↗ Set up
Novita AI
tencent/hy4
$0.417$1.251MGo to provider ↗ Set up
OpenRouter
tencent/hy4
$0.417$1.251.05MGo to provider ↗ Set up
CometAPI
hy4
$0.834 +100 %$2.50—Go to provider ↗ Set up
DeepInfra
tencent/Hy4
$0.834 +100 %$2.501.05MGo to provider ↗ Set up
UplinkSwitch
hy4
$1.16 +177 %$3.461.05MGo to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $0.938 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with NanoGPT

from openai import OpenAI
import os

client = OpenAI(base_url="https://nano-gpt.com/api/v1", api_key=os.environ["NANOGPT_API_KEY"])
r = client.chat.completions.create(
    model="tencent/hy4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is Hy4 cheapest?

Currently at NanoGPT ($0.417 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use Hy4 in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.

More models from Tencent

Hy4 flashHy3Hy4 previewHy4 (Uncensored)