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

Modalities
IntextimageOuttext
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
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
messagestemperaturemax_completion_tokenstop_pstopfrequency_penaltypresence_penaltyseedstreamuserroutingtoolstool_choiceresponse_formatimage_url content partsreasoningreasoning_effort

Pricing

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

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