inference-providers

Hy4 Preview

by tencent · family hy4

Facts

Release date2026-08-28
Retired date
Knowledge cutoff
Context (max)
Max output
Modalitiestext → text
Aliaseshy4-previewhy4
Open weightsyes (tencent/Hy4-preview)
DescriptionTencent's next-gen Hunyuan flagship, open-sourced as a preview on 2026-08-28: 770B total / 49B-active MoE with a 1M context window, FP8 variant shipped alongside. Successor to Hy3 (295B/21B).

Unknown values are shown as —.

Offerings

ProviderWire IDVariantEndpointProtocolStatusPrice (USD / Mtok)Reasoning
OpenCode Gohy4-previewgo-chat-completionsopenai-chatprevieweffort · default on · returns reasoning_content

Reasoning controls

OpenCode Go· hy4-preview· go-chat-completions effort

reasoning_effort nonelowhigh●

effort · default on · returns reasoning_content

Example requests

OpenCode Go · openai-chat · hy4-preview

curl 'https://opencode.ai/zen/go/v1/chat/completions' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "hy4-preview",
  "messages": [
    {
      "role": "user",
      "content": "Tell me about the weather."
    }
  ],
  "reasoning_effort": "high"
}'
Python (requests)
import requests

resp = requests.post(
    "https://opencode.ai/zen/go/v1/chat/completions",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "model": "hy4-preview",
      "messages": [
        {
          "role": "user",
          "content": "Tell me about the weather."
        }
      ],
      "reasoning_effort": "high"
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://opencode.ai/zen/go/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "hy4-preview",
    "messages": [
      {
        "role": "user",
        "content": "Tell me about the weather."
      }
    ],
    "reasoning_effort": "high"
  }),
})
console.log(await resp.json())