Skip to content

Add Tencent Hy4 Flash to the model registry - #200

Draft
adambalogh wants to merge 1 commit into
mainfrom
og/compassionate-thompson-ircoyt
Draft

adambalogh wants to merge 1 commit into
mainfrom
og/compassionate-thompson-ircoyt

Conversation

@adambalogh

@adambalogh adambalogh commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Registers Tencent Hy4 Flash (tencent/hy4-flash, released 2026-11-16) on the existing OpenRouter provider, alongside hy3 / hy4-preview. No routing change is needed: llm_backend routes off provider="openrouter".

  • Model: ~220B-parameter (12B active) open-weight MoE, text + image input, 1,048,576-token context. Tencent positions it for everyday, high-volume work at a fraction of Hy4's cost.
  • Pricing: $0.035 input / $0.1405 output per MTok, which is Decimal("0.000000035") / Decimal("0.0000001405") per token. Source: openrouter.ai/api/v1/models and the model's /endpoints (Tencent Cloud is the only provider). That endpoint is authoritative for both price and availability.
  • Parameters: OpenRouter lists temperature, reasoning, tools, response_format and structured_outputs as supported. The Hugging Face model card documents reasoning_effort with a no-think mode (it recommends temperature 0.9). So the model needs no supports_temperature or force_temperature override.
  • Aliases: hy4-flash, tencent/hy4-flash.

Why this one

The companion chat-api PR uses it to replace Hy3 on the affordable tier. It costs about a quarter of Hy3's $0.132 / $0.528, and it adds vision and 4× the context. On the model card's base-model table it beats Hy3-preview Base on most rows (MMLU-Pro 71.1 vs 65.8, SuperGPQA 57.8 vs 52.3). Hy3 stays registered because the catalog hides it rather than deleting it, so persisted threads keep their id.

Considered and not registered: Hy4 (GA, 2026-11-04, $0.417 / $1.25). Hy4 Preview was hidden from the pickers after its first month drew under a hundred requests, and the catalog's one-row-per-line-and-tier bar has no slot for it. GPT-6.1 Terra was already declined in #184.

Overlap with open PRs

#197 (Seedream 5.5, from an earlier run of this task) touches the adjacent ByteDance line of the CLAUDE.md provider list. Git will flag a one-line doc conflict there for whichever PR merges second; keep both lines. The registry, tests and README merge cleanly.

Companion PR

chat-api #545 (https://github.com/OpenGradient/chat-api/pull/545) puts Hy4 Flash in the catalog in place of Hy3. Land this PR first.

Test plan

  • make lint passes: ruff format, ruff check, mypy
  • PYTHONPATH=. uv run pytest tests/test_pricing.py: 196 passed. Adds test_hy4_flash_resolves and test_hy4_flash_cost, which expects 105,250,000,000,000 wei for 1000 tokens in and 500 out
  • uv.lock untouched

🤖 Generated with Claude Code

https://claude.ai/code/session_01SQvDLyFCCRZxHeRQ9GM1T5

Hy4 Flash (released 2026-11-16) is Tencent's ~220B-parameter (12B active)
open-weight MoE with text + image input and a 1M-token context. Routed
through OpenRouter like hy3, at OpenRouter's list rate ($0.035 / $0.1405
per MTok). chat-api offers it in place of Hy3 on the affordable tier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SQvDLyFCCRZxHeRQ9GM1T5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants