# Tencent: Hy4 Flash

Hy4 Flash is a language model. It takes text in and writes text back.

- **Model id:** `opencheap/hy4-flash`
- **Price per 1M tokens:** $0.035 input / $0.14 output
- **Cached input:** $0.0015 per 1M tokens
- **Context:** 1M tokens, 65K max output

## Providers

9 providers. Prices are per 1M tokens. As of 2026-11-24 00:01 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| NanoGPT | $0.035 | $0.0015 | $0.14 | 4.63 s | 190 tok/s | 100 % | 1M | 65K |
| Tencent · fp8 | $0.037 | $0.0016 | $0.15 | 2.93 s | 62 tok/s | 99 % | 1M | 65K |
| Hugging Face · deepinfra | $0.07 | $0.07* | $0.28 | — | — | — | 1M | — |
| Sandbase | $0.07 | $0.003 | $0.28 | — | — | — | — | — |
| DeepInfra · fp4 | $0.073 | $0.0032 | $0.30 | 1.75 s | 26 tok/s | 100 % | 1M | 131K |
| PrimaLabs · fp8 | $0.073 | $0.0032 | $0.30 | 11.6 s | 11 tok/s | 100 % | 1M | 943K |
| Qubax | $0.075 | $0.0023 | $0.30 | — | — | — | 1M | 65K |
| AiHubMix | $0.081 | $0.0032 | $0.32 | — | — | — | — | — |
| Surplus | $0.033 | $0.0014 | $0.13 | — | — | Unavailable | 1M | 65K |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/hy4-flash#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/hy4-flash`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/hy4-flash", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/hy4-flash",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/hy4-flash",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Hy4 Flash

Hy4 Flash costs from $0.035 per 1M input tokens and $0.14 per 1M output tokens on OpenCheap, with cached input at $0.0015 per 1M tokens. Its list price is $0.035 per 1M input tokens and $0.14 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00049, and 1,000 such requests about $0.49. Prices as of 2026-11-23 23:56 UTC.

9 providers serve Hy4 Flash on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.

Hy4 Flash is one of [7 Tencent models](https://opencheap.si/models/lab/tencent) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## More from Tencent

- [Hy-MT2-1.8B](https://opencheap.si/models/hy-mt2-1.8b) (`hy-mt2-1.8b`): $0.046 / $0.19 per 1M · 8.1K context
- [Hy-MT2-30B-A3B](https://opencheap.si/models/hy-mt2-30b-a3b) (`hy-mt2-30b-a3b`): $0.078 / $0.31 per 1M · 8.1K context
- [Hy-MT2-7B](https://opencheap.si/models/hy-mt2-7b) (`hy-mt2-7b`): $0.078 / $0.31 per 1M · 8.1K context
- [Hy3](https://opencheap.si/models/hy3) (`hy3`): $0.066 / $0.26 per 1M · 262K context
- [Hy4](https://opencheap.si/models/hy4) (`hy4`): $0.42 / $1.25 per 1M · 1M context
- [Hy4 Preview](https://opencheap.si/models/hy4-preview) (`hy4-preview`): $0.75 / $2.25 per 1M · 1M context

[All 7 Tencent models](https://opencheap.si/models/lab/tencent)

## Similar models

- [Gemini 3.5 Flash](https://opencheap.si/models/gemini-3.5-flash): Google · 1M context · $0.035 / $0.14 per 1M · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-gemini-3.5-flash)
- [GLM 5.3 Flash](https://opencheap.si/models/glm-5.3-flash): Zhipu · 1M context · $0.036 / $0.082 per 1M, 39 % cheaper · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-glm-5.3-flash)
- [Qwen3.6 35B A3B](https://opencheap.si/models/qwen3.6-35b-a3b): Qwen · 1M context · $0.07 / $0.10 per 1M, 19 % cheaper · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-qwen3.6-35b-a3b)
- [Xiaomi Mimo V2.6 Flash](https://opencheap.si/models/mimo-v2.6-flash): Xiaomi · 1M context · $0.08 / $0.16 per 1M · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-mimo-v2.6-flash)
- [Gemini 3.1 Flash Lite](https://opencheap.si/models/gemini-3.1-flash-lite): Google · 1M context · $0.031 / $0.12 per 1M, 11 % cheaper · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-gemini-3.1-flash-lite)
- [Qwen3.7 Flash](https://opencheap.si/models/qwen3.7-flash): Qwen · 1M context · $0.028 / $0.11 per 1M, 20 % cheaper · [Compare with Hy4 Flash](https://opencheap.si/compare/hy4-flash-vs-qwen3.7-flash)

[Compare Hy4 Flash with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/hy4-flash · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
