# Hy4 Flash API Pricing

As of December 2, 2026, Hy4 Flash costs $0.07 per 1M input tokens and $0.281 per 1M output tokens from GMI Cloud, the lowest of 2 providers, with cache reads at $0.003 per 1M tokens. It has a 1,000,000-token context window.

- Page: https://models.litellm.ai/models/hy4-flash
- LiteLLM model name: `gmi/tencent/hy4-flash`
- Context window: 1,000,000 tokens
- Added to LiteLLM: November 24, 2026
- Prices updated: December 1, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| GMI Cloud | `gmi/tencent/hy4-flash` | $0.07 | $0.281 | $0.003 | – | – | 1M |
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/hy4-flash` | $0.07 | $0.281 | $0.003 | – | – | 512K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- GMI Cloud: $0.2805
- Fireworks AI: $0.2805

100 long-document requests with 100,000 input and 2,000 output tokens each:

- GMI Cloud: $0.7562
- Fireworks AI: $0.7562

## Features

Supported: Function calling, Structured output, Image input, Reasoning, Prompt caching.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="gmi/tencent/hy4-flash",
    messages=[{"role":"user","content":"Hello!"}],
)
```

Proxy endpoint `POST /v1/chat/completions`.

[LiteLLM API documentation](https://docs.litellm.ai/docs/completion/input)

## Cost calculator

10,000 requests a day with 1,000 input and 500 output tokens each, at GMI Cloud's price: $0.0002105 per request, $2.10 per day, $63.15 per month (30 days). Try other numbers at https://models.litellm.ai/calculator?model=hy4-flash

## FAQ

### How much does Hy4 Flash cost?

Hy4 Flash costs $0.07 per 1M input tokens and $0.281 per 1M output tokens from GMI Cloud, the lowest of 2 providers, with cache reads at $0.003 per 1M tokens.

### What is the context window of Hy4 Flash?

Hy4 Flash has a 1,000,000-token context window.

### Which providers offer Hy4 Flash?

Hy4 Flash is available from 2 providers through LiteLLM: GMI Cloud and Fireworks AI.

### How do I use Hy4 Flash with LiteLLM?

Call completion() in the LiteLLM Python SDK with model="gmi/tencent/hy4-flash", or configure the model on the LiteLLM proxy and send a POST request to /v1/chat/completions.

### What features does Hy4 Flash support?

Hy4 Flash supports function calling, structured output, image input, reasoning and prompt caching.

### When did LiteLLM add Hy4 Flash?

Hy4 Flash was added to LiteLLM's model price file on November 24, 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.
