We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Tencent: Hy4 preview

tencent/hy4-preview
TextInput: textToolsReasoning1MAdded Aug 28, 2026

Try Tencent: Hy4 preview now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Tencent: Hy4 preview at a glance

  • Input price is 85% higher than the median of 434 Text models.
  • Context window of 1,048,576 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • A typical request (1,000 input / 500 output tokens) costs about $0.00730.

About Tencent: Hy4 preview

Tencent: Hy4 preview is a text model from Tencent, released by the provider on 2026-08-28. It is a mixture-of-experts model with 49B active parameters out of 770B total. The preview label indicates that this is an early version of the Hy4 line, so it is worth treating as a model to evaluate rather than one to assume is final. It sits in the text category, meaning its purpose is language work rather than image, audio or other modalities.

On the input side, Hy4 preview accepts text only, and it produces text only. The context window is 1,048,576 tokens, which is large enough to hold entire codebases, long document sets or extended agent transcripts in a single request. The maximum output is 64,000 tokens, so responses can be long as well. Tencent describes the model as designed for coding agents, complex tool-use workflows, and productivity tasks, which lines up with the tool calling and structured output parameters it supports.

Those capabilities suggest a few practical uses. Coding agents can read a repository or a large slice of one and then plan edits, write patches or answer questions about the code. Tool-use workflows fit because the model accepts tool definitions and tool choice settings, so it can decide when to call a function and how to use the result. Long context also helps with document analysis, summarisation of large corpora, and multi-step productivity tasks where the model needs to keep earlier instructions and intermediate results in view. Structured outputs make it usable in pipelines that need JSON or another fixed shape rather than free text.

You call the model through api14's OpenAI-compatible API using the model id "tencent/hy4-preview". Because the interface follows the OpenAI format, existing clients and SDKs generally work with only the base URL and model id changed. The request parameters it supports are frequency_penalty, include_reasoning, logit_bias, max_completion_tokens, max_tokens, min_p, presence_penalty, reasoning, reasoning_effort, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k and top_p. Reasoning controls such as reasoning_effort and include_reasoning are available, as are sampling controls, penalties, stop sequences and seeds for reproducibility.

One thing to keep in mind is that this is a preview release, so behaviour and availability may change. Input is text only, so tasks that need image or audio understanding are out of scope here. If your workload fits within a smaller context window or does not need tool use or structured outputs, a simpler text model may be a better fit. For long-context coding agents and tool-heavy workflows, though, Hy4 preview is built for exactly that shape of work.

How to call the Tencent: Hy4 preview API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "tencent/hy4-preview".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "tencent/hy4-preview",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_completion_tokensmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Specifications

Context length
1,048,576
Max output
64,000
Input
text
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Tencent: Hy4 preview: frequently asked questions

How much does the Tencent: Hy4 preview API cost?
Tencent: Hy4 preview costs Input $2.92 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Tencent: Hy4 preview?
Tencent: Hy4 preview reads up to 1,048,576 tokens per request: prompt, history and documents together. It writes up to 64,000 output tokens per response.
What can Tencent: Hy4 preview do?
Tencent: Hy4 preview accepts text and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Tencent: Hy4 preview from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "tencent/hy4-preview". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Tencent: Hy4 preview?
Comparable Text models at a similar price: ByteDance Seed: Seed-2.0-Code, Google: Gemini 3 Flash Preview, OpenAI: GPT-3.5 Turbo Instruct. Each runs through the same API key, so switching is one string.

Tencent: Hy4 preview community

New topic

This community has no topics yet. Open the first one about Tencent: Hy4 preview.