星海词元星海词元
Ready to build?Get an API key — all models at 50% of the official price →
Home › Models › hy4-flash

hy4-flash API

Call hy4-flash through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.

Tencent HunyuanChatReasoningCodingVision工具调用Long context快速

Pricing

Input$0.038 / 1M tokens  (¥0.25)
Output$0.15 / 1M tokens  (¥1.00)
Output multiplier×4.00
Context window1M 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.04 per 1M input tokens it sits far below the catalogue median of $0.50 — a cost-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-flash",
  messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)

Integrations · Quickstart

Other models from this provider

ModelsInput $/MOutput $/MIntelligence indexCoding index
hy4$0.46$1.38——

Capabilities