hy4-preview API
Call hy4-preview through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
Tencent HunyuanChatReasoningCodingPricing
Input$0.92 / 1M tokens (¥6.00)
Output$2.77 / 1M tokens (¥18.00)
Output multiplier×3.00
Context window1M tokens
Max output64K tokens
Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY
Tencent Hunyuan
Hunyuan models are available as an additional general-purpose option.
When to use it
At $0.92 per 1M input tokens it sits above the catalogue median of $0.69 — a capability-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.
Code
from openai import OpenAI
client = OpenAI(
base_url="https://starseaapi.com/v1",
api_key="sk-your-key"
)
r = client.chat.completions.create(
model="hy4-preview",
messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)Other models from this provider
| Models | Input $/M | Output $/M | Intelligence index | Coding index |
|---|---|---|---|---|
| hy3 | $0.15 | $0.62 | 25.3 | 58.8 |