hy4-flash API Pricing & Access
Tencent's self-developed high cost-performance MoE multimodal text model, supporting 1M large context, featuring retention-based deep thinking, Function Calling tool invocation, structured JSON output, image understanding, and caching acceleration capabilities; fast decoding speed, low KV Cache overhead, suitable for large-scale agents, programming assistance, long document parsing, chart recognition, batch office automation, and other high-concurrency scenarios.
Pricing by group
USD per 1M tokens. Price = base price × group ratio.
| Group | Input | Output | Cache read | About this group |
|---|---|---|---|---|
| hunyuan-1 | $0.042 | $0.1686 | $0.0018 | fluent semantic understanding and balanced multimodal performance, suitable for Q&A |
| hunyuan-2 | $0.0665 | $0.267 | $0.00285 | fluent semantic understanding, and balanced multimodal performance |
Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.
Capabilities
- Provider
- 腾讯
- Features
- Conversation · Tool
- API formats
- Anthropic Messages · OpenAI Chat Completions
Quick start
Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.
curl https://api.openlux.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-flash",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="hy4-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)curl https://api.openlux.ai/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-flash",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'Full parameters in the API docs
FAQ
How do I call the hy4-flash API?
Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use hy4-flash as the model name. The model also supports the Anthropic format, so you can call /v1/messages directly.
How is the hy4-flash API billed?
Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.042 per 1M input tokens and $0.1686 per 1M output tokens. Top-ups start at $1.
How is prompt caching billed for hy4-flash?
Cache hits (cache reads) cost 0.0428571428571× the input price.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.
Which API formats does hy4-flash support?
Anthropic Messages, OpenAI Chat Completions.