Tencent Hy4

發布於 2026-11-04

chat程式碼推理工具呼叫圖像理解

騰訊混元 Hy4 是該系列的正式版,支援文字和圖像輸入。

輸入
文字 圖像 $0.834/M
輸出
文字 $2.501/M
快取讀取
$0.042/M
上下文
1M
相較 GPT-4o
便宜約 83%

價格在同類中的位置

價格在 79 個同類模型中的位置

輸入$0.834/M
$0.1 · Claude Haiku 5.5 GPT-5.4 Pro · $30
輸出$2.501/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
快取讀取$0.042/M
$0.006 · DeepSeek V4.1 Flash Claude Fable 5 · $1

這條線標出這個模型的價格,在 Synthorai 的同類模型裡落在什麼位置;兩端分別是最便宜和最貴的模型。這裡列的是基礎價,批次、區域和快取寫入的折扣請見價格頁。

規格與限制

Token

上下文視窗(供應商規格) 1,048,576
最大輸出(供應商規格) 65,536

提示詞快取

快取方式 自動

思考

參數 reasoning_effort
參數值 minimal · low · medium · high 實際接受哪些值由供應商決定

模型

模態 文字 + 圖像 → 文字

依據 模型規格來源 ↗

一段提示詞,經閘道實測

提示詞 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 檢查 恰好 3 句

Tencent Hy4 通過 · 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.

輸出 1519 tok (+1409 思考) 延遲 21.0 s

是否照指令做(剛好三句,數得出來)、語氣是否貼合對象(寫給 CFO 看),以及下方 token 計量顯示出的隱藏思考計費落差。

提示詞 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. 檢查 修正後通過測試

Tencent Hy4 通過 · 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. […]

輸出 4509 tok (+4263 思考) 延遲 56.0 s

修正是否真的正確(跑得起來)、說明的資訊密度,以及在範圍明確的任務上的 token 效率。

提示詞 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. 檢查 有效的 JSON,完全符合 schema

Tencent Hy4 通過 · 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"}

輸出 9869 tok (+9827 思考) 延遲 125.2 s

是否遵守 schema(不自創欄位)、面對幻覺誘因的表現(題目明確不給 guidance),以及結構化輸出路徑的差異。

提示詞 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. 檢查 120 詞,0 個禁用詞

Tencent Hy4 通過 · 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.

輸出 5744 tok (+5601 思考) 延遲 57.6 s

是否遵守限制(字數上限、禁用詞清單、只能有一句問句)、文字風格的特徵,以及長度控制。

30 秒上手 Tencent Hy4

相容 OpenAI:換掉 base_url,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)

關於 Tencent Hy4

  • 模型可以結合長上下文處理複雜材料。
  • 工具呼叫可用於多步驟任務。
  • 騰訊公布的最大輸出為 65536 token。

常見問題

Tencent Hy4 API 可以免費試用嗎?

可以,新帳號有 10 次試用呼叫和最高 $1 的免費額度,免綁卡。以輸入價 $0.834/M 計算,光是這筆額度就夠你對 Tencent Hy4 發出約 149 次請求,每次約 8K token。

Tencent Hy4 最擅長什麼?

文字與圖像輸入、長上下文推理、工具呼叫。完整介紹請見「關於」一節,內容取自供應商官方的發布說明。

Tencent Hy4 的價格是多少?

在 Synthorai 上,Tencent Hy4 的輸入價是每百萬 token $0.834,輸出價是每百萬 token $2.501。這就是供應商官網價,平台不加價。快取命中的輸入 token 以 $0.042/M 計費。

Tencent Hy4 的上下文長度是多少?

Tencent Hy4 的上下文長度(上下文視窗)是 1M token。單次回覆最多輸出 65,536 個 token。

Tencent Hy4 支援提示詞快取(prompt caching)嗎?

支援,而且全自動:由 Tencent 處理的提示詞會自動快取,不用改程式碼。快取命中的輸入 token 以 $0.042/M 計費(未命中為 $0.834/M)。 提示詞快取指南 →

如何開通 Tencent Hy4?

把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "hy4" 就可以了。一把 API 金鑰就能呼叫閘道上的所有模型。

相關模型

比較

規格與廠商 benchmark 均附來源連結。閘道支援情況說明的是 Synthorai 的實際實作。封存範例是單次閘道請求,不代表模型的一般效能保證。價格來自公開價格介面或建置時使用的快照。

取得 API 金鑰 算算你的成本 →