Tencent: Tencent Hy4 Preview
hy4-preview
Hy4 Preview is Tencent's 770B-parameter mixture-of-experts model with 49B active parameters. It is designed for coding agents, complex tool-use workflows, and productivity tasks, with a 1M-token context window and configurable reasoning effort.
Modalities
Text → Text
Input / output price
$0.976 / $2.93 per 1M
Context
1.05M · max output 64K
Capabilities
Pricing
Billed per token actually used and deducted from your credits.
| Item | USD per 1M tokens |
|---|---|
| Input | $0.976 |
| Output | $2.93 |
| Cached input | $0.0491 |
Calculator
Drag the sliders to estimate what this model will cost.
- Per request
- $0.00527
- Per day
- $2.63
- Per month (30 days)
- $79.03
Tencent Hy4 Preview: input $0.9758/M · output $2.9262/M · cached input $0.0491/M
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "hy4-preview", "max_tokens": 800,
"messages": [{"role": "user", "content": "…"}]}'Code samples
OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to hy4-preview.
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-preview",
"stream": true,
"messages": [{"role": "user", "content": "Hello"}]
}'Use it in a client: Cursor · Cline · SillyTavern · Codex
Parameters
Common OpenAI parameters can be passed as-is.
temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseedFAQ
- How is Tencent Hy4 Preview billed?
- Input is $0.976 and output is $2.93 per million tokens; cached input is $0.0491. The charge for every request is listed in Usage Logs in the console.
- How long is the context window?
- 1.05M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
- Does it support streaming?
- Yes. Add
"stream": trueto the request to receive server-sent events in the OpenAI format.