HY4 Preview

Tencent Cloud

Tencent's HY4 Preview mixture-of-experts model for coding agents, tool use, and long-context work.

Modalities
IntextOuttext
Input / output
$0.84 / $2.51USD per 1M tokens
Context
1M
Providers
Live

Playground

Preparing playground

Providers

primary

API

POST/api/v1/chat/completionsOpenAI-compatible
hy4-preview
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
messagestemperaturemax_completion_tokenstop_pstopfrequency_penaltypresence_penaltyseedstreamuserroutingtoolstool_choiceresponse_formatreasoningreasoning_effort

Pricing

Input
$0.84/M tokens
Cached input
$0.042/M tokens
Output
$2.51/M tokens

Published USD rates. Actual cost depends on input, output, cache usage and request options.