Tencent: Tencent Hy4

hy4

Tencent Hy4 accepts text and images and returns text, with a 1,048,576-token context window and up to 65,536 output tokens. It supports coding, long-document analysis, automatic tool calling and structured output. Reasoning is enabled by default at high effort; choose low effort or turn reasoning off.

Modalities

Text + Image → Text

Input / output price

$0.601 / $1.80 per 1M

Context

1.05M · max output 66K

Capabilities

ReasoningVisionTool callingLong context

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$0.601
Output$1.80
Cached input$0.0303

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00324
Per day
$1.62
Per month (30 days)
$48.65

Tencent Hy4: input $0.6006/M · output $1.8018/M · cached input $0.0303/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "hy4", "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.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4",
    "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_penaltyseed

FAQ

How is Tencent Hy4 billed?
Input is $0.601 and output is $1.80 per million tokens; cached input is $0.0303. 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": true to the request to receive server-sent events in the OpenAI format.