Hy4 Price per 1M Tokens
| Line item | OpenRouter (list price) | TokenRa (20% off list) |
|---|---|---|
| Input / 1M | $0.834 | $0.667 |
| Output / 1M | $2.501 | $2.001 |
| Cache read / 1M | $0.042 | $0.034 |
| Context window | 1,048,576 tokens | 1,048,576 tokens |
| Maximum output per request | 64,000 tokens | 64,000 tokens |
| Time-of-day pricing | None — flat rate | None — flat rate |
The model ID is tencent/hy4 on both routes. If you are still wiring up a client, the endpoint, key and copy-paste code are on the Hy4 API page; if you only want to talk to the model, start from Hy4 Chat.
What a Real Request Costs
Rates per million tokens only become useful when you multiply in the token counts you actually send. Each row below is computed from the listed rates (input tokens × input rate + output tokens × output rate), rounded to the cent at the thousand-request level.
| Workload | Input tokens | Output tokens | TokenRa | OpenRouter |
|---|---|---|---|---|
| One short chat message | 500 | 300 | $0.0009 | $0.0012 |
| One standard exchange | 2,000 | 800 | $0.0029 | $0.0037 |
| One long document question | 100,000 | 1,000 | $0.0687 | $0.0859 |
| A 1M-token context, short reply | 1,000,000 | 2,000 | $0.6710 | $0.8390 |
| Full context + max output | 1,048,576 | 64,000 | $0.8274 | $1.0344 |
| 1,000 standard exchanges | 2,000,000 | 800,000 | $2.93 | $3.67 |
Two numbers stand out. First, reading a whole book-sized document is cheap: 100,000 tokens in and a 1,000-token answer out comes to about seven cents on TokenRa. Second, the maximum-output ceiling is what makes the full-context case expensive — 64,000 output tokens at $2.001/1M is $0.128 on its own, more than five times the cost of the same tokens as input.
The same arithmetic scales linearly: ten thousand standard exchanges is about $29.30 on TokenRa and $36.70 at the list price. There is no volume discount tier published for this model, and no off-peak window to wait for.
Create a Free Key and Compare →
Disclosure: hy4ai.com may receive a referral credit if you sign up through this link. The rates above are published list prices and are not affected by that arrangement. hy4ai.com is an independent third-party site and is not affiliated with, endorsed by, or connected to Tencent or TokenRa.
Why Output Costs Three Times Input
Output is billed at exactly 3× the input rate on both routes: $2.001 against $0.667 on TokenRa, $2.501 against $0.834 on OpenRouter. This ratio is the single most useful fact on the page, because it decides where to spend your optimisation effort.
- Long prompts are not the problem. Sending 50,000 tokens of context costs about $0.033 on TokenRa — a third of a cent per thousand tokens, and caching repeats of it brings that down to $0.034 per 1M.
- Long answers are. The same 50,000 tokens as generated output would cost about $0.100, three times as much for the same amount of text.
- So cap the output. Setting a realistic
max_tokensis the most effective cost control available with this model. An agent that answers every question with 4,000 tokens when 800 would do spends five times what it needs to, on the expensive side of the meter. - Then cache what repeats. A fixed system prompt re-sent on every call is billed as cache reads at $0.034 per 1M on TokenRa once cached — roughly 1/20th of the input rate.
How to Estimate Your Monthly Bill
- Count your input tokens per call. System prompt + retrieved context + user message. Copy-paste a real request into any tokenizer to get the true number rather than guessing from character counts.
- Set the output ceiling you will actually use. Not the 64,000 maximum — the length your product really emits, typically 300–1,500 tokens.
- Multiply by daily call volume and 30. Input tokens × $0.667/1M + output tokens × $2.001/1M, then × calls per day × 30, using the TokenRa column. Swap in $0.834 and $2.501 for the list price.
- Add cache reads if you re-send a fixed prompt. Those are billed separately at $0.034 per 1M on TokenRa and are the cheapest line on the card.
A worked example: 20,000 calls a day, 3,000 input tokens and 700 output tokens each. Input is 60M tokens a day ($40.02), output is 14M tokens a day ($28.01), so about $68 a day or roughly $2,040 a month on TokenRa; at the OpenRouter list price the same volume is about $2,555. Cutting the output ceiling from 700 to 400 tokens saves around $12 a day at that volume.
Where Hy4 Pricing Sits
Two structural differences matter more than the headline number when you compare this model with other flagships.
- Flat rate, not time-of-day. Some providers charge more during peak hours and less overnight. Hy4 official release is billed at one rate around the clock, which makes capacity planning simpler but removes the option of shifting batch work into a cheap window.
- A 3:1 output-to-input ratio. Models differ in how hard they penalise generation. With Hy4, chat-heavy products pay proportionally more than retrieval-heavy ones at the same total token count.
For a side-by-side against a specific competitor — including how the peak/off-peak model changes the effective rate for batch workloads — see the Hy4 vs DeepSeek comparison. If you are still deciding between the preview and the official release, the Hy4 vs Hy4 Preview page covers what changed.
Frequently Asked Questions
How much does Hy4 cost per 1M tokens?
On OpenRouter the official Hy4 release lists at $0.834 per 1M input tokens and $2.501 per 1M output tokens. On TokenRa it is 20% lower, at $0.667 per 1M input and $2.001 per 1M output. Cache reads are listed at $0.034 per 1M on TokenRa and $0.042 per 1M on OpenRouter.
Why does Hy4 output cost three times more than input?
Output is billed at 3x the input rate on both routes: $2.001 against $0.667 on TokenRa, and $2.501 against $0.834 on OpenRouter. Long prompts are cheap and long answers drive the bill, so capping the maximum output tokens is the single most effective cost control.
How much does one Hy4 chat message cost?
A single exchange of 2,000 prompt tokens and an 800-token reply costs about $0.0029 on TokenRa and about $0.0037 at the OpenRouter list price. A thousand such exchanges cost about $2.93 and $3.67 respectively.
How much does it cost to use the entire 1M-token context?
Reading the full 1,048,576-token context window and generating the 64,000-token maximum output costs about $0.83 on TokenRa and about $1.03 at the OpenRouter list price, computed from the listed per-1M rates.
Does Hy4 use peak and off-peak pricing?
No. The official Hy4 release is billed at a single flat rate around the clock, unlike models that charge more during peak hours. The rates above apply at any time of day.
Is there a free way to try Hy4?
Sign-up at the gateway is free and an API key can be created without payment, but usage after that is metered per token at the rates above. Check the gateway's current free-credit terms before relying on them beyond testing.
Where does hy4ai.com get these Hy4 prices?
From the public rate cards of the gateways that serve the official release, checked on November 5, 2026. Tencent publishes first-party pricing on its own cloud model page, which may differ from gateway resale rates.