Hy4 Flash API pricing and specs
Hy4 Flash is a Tencent model released in November 2026. It takes text and images and returns text, with a context window of 256K tokens and up to 66K output tokens per response. The model ID is hy4-flash. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.
Hy4 Flash API pricing
Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.
| Official input price | $0.07 per 1M tokens |
|---|---|
| Official output price | $0.281 per 1M tokens |
| relay.fast input from | $0.0199 per 1M tokens |
| relay.fast output from | $0.0801 per 1M tokens |
| Cache read from | $0.00086 per 1M tokens |
| Lower than the official price by | up to 71% |
Hy4 Flash specifications
| Model ID | hy4-flash |
|---|---|
| Developer | Tencent |
| Released | November 2026 |
| Context window | 256K tokens |
| Maximum output | 66K tokens |
| Input | text, images |
| Output | text |
| Features | tool calling, reasoning, structured output, image input, prompt caching |
| Endpoints | /v1/chat/completions |
Release month, limits and features are as published by Tencent.
What a request to Hy4 Flash costs
Cost of one request at the prices above, without cached input. Multiply by your number of requests to estimate a budget.
| Request | Tokens, input + output | At the official price | On relay.fast, from |
|---|---|---|---|
| A short chat reply | 1,000 + 300 | $0.00015 | $0.000044 |
| One step of a coding agent | 30,000 + 1,500 | $0.0025 | $0.00072 |
| A long document summary | 150,000 + 2,000 | $0.0111 | $0.0032 |
Example request
Keep the key in the RELAY_FAST_API_KEY environment variable.
curl https://relay.fast/v1/chat/completions \
-H "Authorization: Bearer $RELAY_FAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"hy4-flash","messages":[{"role":"user","content":"Hello"}]}'Use Hy4 Flash in coding tools
Setup guides: Claude Code, Codex, Cursor, Cline, Kilo Code, OpenCode, Aider. The API docs have one-command installers.
Frequently asked questions
How much does the Hy4 Flash API cost?
On 2026-11-27, relay.fast charges from $0.0199 per 1M input tokens and $0.0801 per 1M output tokens for Hy4 Flash, against the official $0.07 and $0.281. The price depends on the source your request uses and can change; https://relay.fast/pricing/hy4-flash shows the current value.
What is the context window of Hy4 Flash?
Hy4 Flash accepts up to 256K tokens of context in the relay.fast catalog.
What is the maximum output of Hy4 Flash?
Hy4 Flash returns up to 66K tokens in one response, according to the specification published by Tencent. A client can set a lower limit.
Does Hy4 Flash accept images?
Yes. Hy4 Flash takes text and images as input and returns text.
Does Hy4 Flash support tool calling?
Yes. Hy4 Flash supports tool calling (function calling) and structured output, so it works in coding agents and other clients that call tools.
When was Hy4 Flash released?
Hy4 Flash was released in November 2026.
Which API endpoint does Hy4 Flash use?
Call /v1/chat/completions with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.
Do I need a Tencent account to use Hy4 Flash?
No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Tencent.