Loading

Hy4

Available

Tencent's released Hy4 for long-context reasoning, coding, and automatic tool use.

Input
$0.70
Cached input
$0.035
Output
$2.00

per 1M tokens

Context
1M
Max output
8.2K
Tool callingJSON outputOpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages

Quickstart

Base URL
Model ID
curl 'https://redrouter.org/v1/chat/completions' \
  -H "Authorization: Bearer $REDROUTER_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"content":"Hello","role":"user"}],"model":"hy4"}'

Set REDROUTER_API_KEY to a key from API Keys.

Supported parameters

modelmessagesstreamstream_optionsmax_tokensmax_completion_tokenstemperaturetop_pstoppresence_penaltyfrequency_penaltyseedtoolstool_choiceparallel_tool_callsresponse_formatuserreasoning_effortreasoningenable_thinkingthinkingthinking_budgetchat_template_kwargsoutput_config

Other parameters return HTTP 400; user is accepted but not forwarded. Request fields and limits.