Tencent Hy4

Released 2026-11-04

chatCodeReasoningTool callingVision

Tencent Hy4 combines image understanding with long-context reasoning and tool use.

Input
text image $0.834/M
Output
text $2.501/M
Cache read
$0.042/M
Context
1M
vs GPT-4o
~83% cheaper

Price in context

Where the price sits among 79 comparable models

Input$0.834/M
$0.1 · Claude Haiku 5.5 GPT-5.4 Pro · $30
Output$2.501/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
Cache read$0.042/M
$0.006 · DeepSeek V4.1 Flash Claude Fable 5 · $1

The bar shows how this model’s price compares with every other model of the same kind on Synthorai. The cheapest and the most expensive are named at each end. These are base rates; batch, region and cache-write discounts are on the pricing page.

Specs & limits

Tokens

Context window (vendor spec) 1,048,576
Max output (vendor spec) 65,536

Prompt caching

How it caches automatic

Thinking

Parameter reasoning_effort
Values minimal · low · medium · high accepted set is the provider's

Model

Modalities text + image → text

per Model specification source ↗

One prompt, measured through the gateway

PROMPT Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. CHECK exactly 3 sentences

Tencent Hy4 passed · 3 sentences

Enabling reasoning changed the unit economics of each request: the model now produces extra “reasoning tokens” and consumes more compute before it returns an answer, and those tokens are billed even if users never see them. Because our pricing is largely token-based, that extra work roughly doubled average cost per call, so flat request volume could still produce a doubled invoice. We are paying for better accuracy and less downstream rework on complex tasks, so the spend is justified only in high-value workflows and should be managed by cost per successful outcome.

out 1519 tok (+1409 thinking) latency 21.0 s

Instruction following (exactly three sentences, so countable), audience shaping (CFO register), and the hidden-thinking billing gap the token meters below expose.

PROMPT This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. CHECK fix passes tests

Tencent Hy4 passed · 8/8 cases

```python def longest_run(xs): n = len(xs) if n == 0: return 0 best = cur = 1 for i in range(1, n): if xs[i] == xs[i - 1]: cur += 1 else: cur = 1 best = max(best, cur) return best ``` The loop range already includes the last index; the real bug is that `cur` and `best` start at `0` and only increase on equal adjacent comparisons, so the function counts equality links (`L - 1` for a run of `L` equal items), not the items in the run: a single item has no link, and the first item of a final run is never counted, with no end-of-list flush to compensate. […]

out 4509 tok (+4263 thinking) latency 56.0 s

Whether the fix is actually correct (runnable), explanation density, and token efficiency on a bounded task.

PROMPT Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. CHECK valid JSON, schema exact

Tencent Hy4 passed · 5/5 fields, guidance "withheld pending the Q4 close"

{"company":"Meridian Robotics","quarter":"September quarter","revenue_usd_m":412,"growth_pct":"eleven and change","guidance":"withheld pending the Q4 close"}

out 9869 tok (+9827 thinking) latency 125.2 s

Schema obedience (no invented fields), hallucination pressure (guidance is explicitly withheld), and structured-output path differences.

PROMPT Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. CHECK 120 words, 0 banned words

Tencent Hy4 passed · 120 words, 0 banned, 1 question

Today we are introducing Cross Provider Prompt Cache for our API gateway, a feature that caches prompts and securely reuses them across all connected model providers. Teams can cut duplicate calls, reduce latency, and keep spend predictable when identical instructions appear in chat, search, agents, or batch jobs. What if one cached prompt could support traffic routed to any provider in your stack? Gateway policies control cache keys, time to live, tenant isolation, redaction, and fallback behavior, while usage metrics show hit rates and savings by application. Setup requires one configuration change, and existing client code stays intact. Cross Provider Prompt Cache is available in private beta today for enterprise plans, with general availability next month across all supported regions.

out 5744 tok (+5601 thinking) latency 57.6 s

Constraint obedience (word budget, banned-word list, the single question), style fingerprint, and length control.

Use Tencent Hy4 in 30 seconds

OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="hy4",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

About Tencent Hy4

  • Use it to review long documents with screenshots or to call tools from a chat workflow.
  • Tencent documents a 65536-token output limit.

FAQ

Is the Tencent Hy4 API free to try?

Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $0.834/M input tokens, that credit alone covers roughly 149 requests of ~8K tokens against Tencent Hy4.

What is Tencent Hy4 best at?

Text and image input; Long-context reasoning; Tool calling. See the About section for the full picture from the vendor's own release notes.

How much does Tencent Hy4 cost?

Tencent Hy4 costs $0.834 per million input tokens and $2.501 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.042/M.

What is Tencent Hy4's context window?

Tencent Hy4 has a context window of 1M tokens on Synthorai. A single response can be up to 65,536 tokens long.

Does Tencent Hy4 support prompt caching?

Yes, automatically: Tencent-served prompts cache with no code changes. Cached input tokens bill at $0.042/M vs $0.834/M uncached. Prompt caching guide →

How do I get access to Tencent Hy4?

Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="hy4", and you're done. One API key covers every model on the gateway.

Related models

Compare

Specifications and vendor benchmarks link to their sources. Gateway support describes the Synthorai implementation. Archived examples are individual gateway requests, not a guarantee of general model performance. Prices use the public feed or its build snapshot.

Get your API key Compare your cost →