GPT-Image 2.6 Flare & Sunburst are liveImages from $0.025 each

Hy4 Preview API

NewLLM

The Hy4 Preview API is Tencent Hunyuan's preview reasoning route with a 256K context and structured tool use.

What are we making today?

Bring an idea, a question, or a first draft.

Enter to send · Shift + Enter for a new line

01

What this model is for

The Hy4 Preview API is Tencent Hunyuan's preview reasoning route with a 256K context and structured tool use.

Hy4 Preview is the newest Tencent Hunyuan text id on OmniaKey, listed as hy4-preview with a 256K token window and tool use. The name marks it as a preview release, and the catalog flags it as new. Every listed rate sits well above Hy3, the other Hunyuan entry, which keeps the same 256K window. Vision and a fast tier appear on neither id.

Treat it as a trial id rather than a default: run a small, labelled set of your own prompts against Hy4 Preview and Hy3, compare the outputs, then move the prompts that clearly improve. The four clients are Codex, Cursor, Cline and Aider, and the 256K budget rewards prompts already split by module. Because it is a preview, keep a switch that sends traffic back to Hy3 without a rewrite.

Choose Hy4 Preview when you want to evaluate Tencent's newest Hunyuan route at 20% of the listed rate.

Best-fit coding workloads

Head-to-head prompt trial

Run the same stored prompts through Hy4 Preview and Hy3, then score both sets against a rubric your team already trusts. Tip: freeze the prompt text for the whole trial and change one variable at a time, so a difference can be attributed.

Bounded reasoning pilot

Put one hard task, such as triage of a tricky alert class, on the preview id for a fixed number of calls and measure how often the answer needs a human rewrite. Tip: cap the run in code rather than by memory, since the listed rates are the highest in the Hunyuan pair.

Prototype before release

Build a new assistant feature against the preview id so the design is ready when the release becomes the stable choice. Tip: keep model selection in one config value, so switching to hy3 later needs no code change.

02

Hands-on notes

Checked on 2026-10-27 through the OmniaKey API with one standard coding prompt (median of 3 runs) and three capability probes.

Output tokens for our standard coding prompt, reasoning included
2,795
Cost of that output at current prices
$0.005
JSON mode
Passed
Tool calling
Passed
Image input
Not listed

03

Technical specification

Catalog facts and integration details verified for this route.

Model ID
hy4-preview
Context
256K
Inputs and tools
Tool use
API endpoint
/v1/chat/completions
Cache hit / 1M
$0.01 USD
Coding clients
Codex · Cursor · Cline · Aider

Limits to plan around

  • Preview status means the model can change or be withdrawn. Pin nothing critical to this id without a tested fallback to Hy3 behind it.
  • The listed input, output and cached-input rates are far above Hy3 for the same 256K window, so volume work here is hard to justify.
  • No fast tier and no vision are listed, which leaves text-only prompts and client timeouts that you set yourself.
  • A 256K window still needs chunking for whole repositories, and a preview run over long prompts is the most expensive way to discover that.

04

Compare nearby models

Compare workload fit and current listed token rates before choosing a route.

ModelBest forContextInputOutput
Hy4 PreviewThis page
hy4-preview
Short, measured trials of the newest Hunyuan release before production traffic moves.256K
$0.2 USD
Official price $1 USD
$1.8 USD
Official price $9 USD
Hy3
hy3
The same 256K window and client list for steady volume at much lower listed rates.256K
$0.03333 USD
Official price $0.1667 USD
$0.1333 USD
Official price $0.6667 USD
MiMo V2.5 Pro
mimo-v2.5-pro
Text reasoning with a 1M window when 256K is the real constraint on the task.1M
$0.033 USD
Official price $0.165 USD
$0.066 USD
Official price $0.33 USD
MiniMax M3
minimax-m3
Long repository work at 1M with five clients, including Claude Code, at the standard tier.1M
$0.07 USD
Official price $0.35 USD
$0.28 USD
Official price $1.4 USD

05

SDK quickstarts

Use one base URL and model ID from cURL, Python, or TypeScript.

Streaming chat completion
curl https://api.omniakey.com/v1/chat/completions \
  -H "Authorization: Bearer $OMNIAKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "messages": [
      {"role": "user", "content": "Review this pull request"}
    ],
    "stream": true
  }'

06

Estimate token cost

Enter expected input and output tokens to compare current listed rates.

OmniaKey estimate
$0.056
Official-rate estimate
$0.28
Estimated savings
$0.224

Estimate covers input and output tokens only. Cache usage, retries, tools, and client-side token accounting can change the final charge.

07

Related coding guides

Deeper selection, setup, and troubleshooting guidance for this model family.

08

Sources and verification

Model facts and links were checked on 2026-10-27. Provider documentation remains the authority for upstream behavior.

Frequently asked questions

How much does Hy4 Preview cost on OmniaKey?

OmniaKey currently charges $0.2 USD per 1M input tokens and $1.8 USD per 1M output tokens, in USD. Direct provider rates are separate and may change with input context length.

What is the context window for Hy4 Preview?

The listed context window is 256K. Actual usable limits can also depend on the client and upstream request format.

What does the preview label on Hy4 Preview mean?

The id is named as a preview, and the catalog marks it as a new addition. Expect the behaviour or the id itself to change as the release matures. Keep a recorded baseline of outputs and a fallback to Hy3, so a change on the Tencent side shows up as a test failure rather than as a surprise in production.

How does Hy4 Preview compare with Hy3 on cost?

Both list a 256K window, tool use and the same four clients, but Hy4 Preview is listed at much higher input, output and cached-input rates. Charges are per token against the account balance, with the live figures in the price table. That gap is why a trial should be scoped and counted rather than open-ended.

How do I call hy4-preview from my client?

Send POST requests to https://api.omniakey.com/v1/chat/completions with the key as a bearer token and model set to hy4-preview. Codex, Cursor, Cline and Aider are the listed clients and take the base URL https://api.omniakey.com/v1 with the same key. Claude Code is not listed for either Hunyuan id.

Is a 256K window enough for a repository?

For one module and its interfaces, usually yes. For a whole monorepo, no. Split by module, send the call sites and types that the change touches, and keep generated code out. Both Tencent ids list the same 256K, so switching between them does not buy more room.

Does Hy4 Preview take images?

No vision entry appears in the catalog for this id, so images must be transcribed first. That is the same situation as Hy3. Turn screenshots into text, or have a vision model read the picture and pass a description, and keep the original file for a person to check against.