TokenRa AI Model Catalog
Tencent Hy flagship via TokenRa

Hy4 API

Hy4 is Tencent's open-weight flagship, released on November 4, 2026. Use one TokenRa API key to call enabled Hy4 models behind an OpenAI-compatible endpoint, and confirm the active model identifier, context window, and rate in the console before you integrate.

Hy4: Tencent's 770B-class MoE flagship

Hy4 is the final release of the Tencent Hy team's flagship Mixture-of-Experts model, published on November 4, 2026. Its preview, released August 28, 2026, shipped as a sparse MoE with 770B total parameters, 49B active parameters per token, and a 1M-token context window. Tencent states the final Hy4 substantially scales up both pre-training and post-training relative to that preview.

01

Final release, not the preview

Compared with Hy4 Preview, the final Hy4 continues from a later training checkpoint with broader post-training across reasoning, coding, tool use and long-horizon tasks. Treat Preview and final as two different models: re-run your evaluations rather than assuming parity.

02

770B sparse MoE

770B total parameters with 49B active per token. MoE routing keeps per-token compute far below the total parameter count while preserving the capacity of a 770B-class model.

03

1M-token context

A 1M-token context window covers large repositories, long documents, multi-turn history, and tool definitions in a single request.

Hy4 release timeline

The Hy family shipped in two steps. Knowing which checkpoint you are calling matters more than the model name alone, because pricing, quality and rate limits can differ between them.

DateEventWhat it means for integration
2026-08-28Hy4 Preview released and open-sourcedEarly checkpoint, widely offered free for a period. Usable for evaluation, not a stable production version.
2026-11-04Hy4 final releaseDefault target for new integrations. Pin the identifier, then re-test the preview prompts you kept.

Release dates from the Tencent Hy research page. Verification of enabled versions on TokenRa accounts should always come from the live console.

Hy4 vs Hy4 Preview: what changed

Tencent describes the final Hy4 as a substantial scaling-up of both pre-training and post-training rather than a patch on the preview. The practical differences below are the ones worth re-testing.

DimensionHy4 PreviewHy4 (final)
ReleaseAugust 28, 2026November 4, 2026
TrainingPreview-scale pre- and post-trainingSubstantially scaled up on both sides, per Tencent
Architecture770B total / 49B active MoESame family, verify current spec in the console
Context1M tokensConfirm the live limit before relying on it
PricingPreview rate, often promoted as freeSet separately for the final release
Best forEarly explorationNew builds and production candidates

Where a cell says verify, the value is channel- and account-specific; read it from the model directory or console.

Where Hy4 API fits

Tencent built preview-era messaging around agentic work, coding, and productivity scenarios. Test the model on the shapes of input your application actually receives, not on short demo prompts.

  • Coding agents that read a repository, plan a change, call tools, and retry across multiple steps.
  • Office and finance workflows that extract fields from long documents and must cite the source clause.
  • Frontend and game prototyping where the model iterates on rendered output rather than a single textual answer.
  • Long-running assistants that manage history, tools, and user state across many turns.
  • Research workflows that summarize many supplied sources and need traceable conclusions.

Use the OpenAI SDK to call Hy4

Limit each request to what the task needs: a clear system instruction, the smallest sufficient context, and an explicit output format. Retries, truncation and citation checks belong in your application, not in the prompt alone.

1

Create a key and pin the model

Generate a TokenRa API key, then set the model to the identifier shown in the console. Pin it in a config value rather than hardcoding it in many files.

2

Send an OpenAI-compatible request

Point the OpenAI SDK base URL at the TokenRa endpoint and use the chat completions request shape for text models.

3

Evaluate on your own inputs

Score grounded answers and tool-call accuracy on a fixed test set before routing real traffic to the new release.

from openai import OpenAI

client = OpenAI(
    base_url="https://tokenra.io/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="hy4",  # use the exact identifier from the console
    messages=[
        {"role": "system", "content": "You are a precise coding assistant. Cite the files you use."},
        {"role": "user", "content": "Review the pasted module and list concrete defects."},
    ],
)
print(response.choices[0].message.content)

Hy4 API pricing and model ID

Hy4 is billed per 1M tokens, with separate input, output and cached-read rates. Pricing on TokenRa is set per channel, so confirm the current rate and model identifier in the console before integrating.

Billing unitRate per 1M tokensNotes
Input$0.667 / 1M tokensPrompt tokens, including system instructions and context
Output$2.001 / 1M tokensGenerated tokens, including reasoning tokens where billed
Cached read$0.034 / 1M tokensCache hits on repeated prefixes, where the channel supports caching

Model ID: hy4. Replace with the identifier listed in the console once the channel is enabled.

Check the live console before integration

Confirm the exact model identifier, endpoint, supported parameters, billing unit, and current rate in the model directory or console. A family appearing on this page does not guarantee every version is enabled for every account.

Production checklist

  • Re-run your preview-era evaluations; a later training run is not a drop-in swap for prompts tuned on the old checkpoint.
  • Keep API keys server-side and separate credentials by environment or workload.
  • Set explicit timeouts, bounded retries, and request tracing before routing user traffic.
  • Cap context growth: trim stale turns, summarize history, and monitor usage as conversations lengthen.
  • Budget for the final release rate rather than the preview or free promotion.
  • Review provider terms, privacy requirements, and output rights for your use case.

Hy4 API FAQ

What is Hy4 and how is it different from Hy4 Preview?

Hy4 is the final release of Tencent's flagship Hy model, published on November 4, 2026. Hy4 Preview was the August 28, 2026 early version. Tencent states the final release substantially scales up both pre-training and post-training, so treat the two as different models and re-run your evaluations.

Is Hy4 free to use?

Preview-era access was widely offered free for a period, but free access is a launch promotion, not a permanent term. Check the live model directory and console for whether any free quota applies to Hy4 on your account.

Is Hy4 open source and can I self-host it?

Tencent open-sourced the Hy4 Preview weights and describes the final release under its own release and licensing terms. Confirm the current license on the vendor page before planning a self-hosted deployment; running a flagship MoE model yourself needs a large GPU footprint, so many teams use an API instead.

How much does the Hy4 API cost?

Rates are per 1M tokens and differ between input, output and cached reads. TokenRa prices are account- and channel-specific, so confirm the current rate and model identifier in the console before you commit to a budget.

How do I call Hy4 with the OpenAI SDK?

Create a TokenRa API key, point the OpenAI SDK base URL at the TokenRa endpoint, and set the model to the identifier shown in the console. Applicable text models use an OpenAI-compatible chat completions request.

Can I switch between Hy4 and other models later?

Yes. TokenRa keeps credentials and account-level usage in one place. Request fields and model behavior still differ between families, so run regression evaluations before changing production traffic.

"Tencent", "Hy", and related names may be trademarks of their respective rights holders. TokenRa is an independent API gateway and this page is not an official vendor page or endorsement.