How Much To Run AI
Open weights

Tencent Hy4 Flash: API Access, Prices and Task Costs

Tencent Hy4 flash handles frequent coding and document tasks through hosted APIs or downloadable weights. The TokenHub API ID is hy4-flash; OpenRouter and Vercel AI Gateway use tencent/hy4-flash. Compare current promotional rates with standard API rates and measure accepted work in your own client.

Content reviewed:

Tencent TokenHub Hy4 flash model details ↗
Hy4 Flash standard and half-price API rates: 100K uncached input and 10K output tokens cost $0.00981 at standard rates or $0.004905 at the TokenHub launch discount.
Original API budget illustration from the rates checked November 17. Each channel has its own offer and expiry.

Use this model

See access details in the guide below.

Use cases

  • Use a low-cost model for recurring document edits, charts and simple front-end tasks.
  • Send text or an image to a tool-enabled client and verify the resulting answer or file.
  • Measure total cost across all model calls in a multi-step task.

Hy4 flash is not the Hy4 release or Hy4 preview

Tencent’s November 16 release is named Hy4 flash. The TokenHub API model ID is hy4-flash; the OpenRouter and Vercel AI Gateway model ID is tencent/hy4-flash. These routes are separate from hy4 and hy4-preview.

Tencent reports 224B total parameters, including 64B Engram parameters, with 12B active parameters. It supports multimodal input and up to a 1M-token context. TokenHub currently documents text and image input, a 960,000-token maximum input and a 64,000-token maximum output. A context limit is not a task-cost estimate.

Tencent positions Hy4 flash for frequent everyday work such as document processing, slide creation, simple front-end work and computer-use workflows. Its announcement recommends the larger Hy4 for complex long-horizon software engineering.

Send a first request through Tencent TokenHub

Create a TokenHub API key, install the Python client with pip install openai and set TOKENHUB_API_KEY in the terminal running the example. Use the OpenAI-compatible endpoint with model ID hy4-flash. The example asks for a compact, reviewable checklist and uses API tokens. For a coding or browser agent, file access, tool execution and approvals depend on the connected client.

For a provider-routed OpenRouter or Vercel AI Gateway request, use the ID tencent/hy4-flash instead. Match the model ID to the provider configuration.

OpenAI-compatible request through Tencent TokenHub; usage is billed
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["TOKENHUB_API_KEY"],
    base_url="https://tokenhub.tencentmaas.com/v1",
)
response = client.chat.completions.create(
    model="hy4-flash",
    messages=[{"role": "user", "content": "Draft a five-step plan for adding CSV import to a small app, with one acceptance check per step."}],
    max_tokens=2048,
)
print(response.choices[0].message.content)

Hy4 flash API rates and launch promotions

Tencent lists approximate standard API rates of $0.070 per million input tokens, $0.281 per million output tokens and $0.003 per million cache-hit tokens. Tencent’s TokenHub page currently shows a 50% promotion: $0.035 input, $0.1405 output and $0.0015 per million cache-hit tokens. Tencent announced this TokenHub discount through November 30, 2026.

On November 17, OpenRouter also displayed 50%-off rates of $0.035 per million input tokens, $0.1405 per million output tokens and $0.0015 per million cache-read tokens. Its listing did not show an end date when checked. Vercel AI Gateway announced an introductory 50% discount through November 29; Vercel says it reflects provider pricing without an inference markup or platform fee. Check the selected provider before setting a budget.

A request with 100,000 uncached input tokens and 20,000 output tokens costs about $0.01262 at Tencent’s standard rates: $0.007 for input and $0.00562 for output. At the current 50% TokenHub or OpenRouter rate, the same token counts cost about $0.00631. Cache use changes the input portion; tools and additional turns add usage.

Tencent also says WorkBuddy access is free through November 30. TokenHub bills API traffic separately at its listed rates.

Route / rate (USD per million tokens)InputOutputCache read / hit
Tencent TokenHub standard API rate$0.070$0.281$0.003
Tencent TokenHub promotion, through Nov 30$0.035$0.1405$0.0015
OpenRouter listing checked Nov 17$0.035$0.1405$0.0015

Self-host Hy4 Flash with the FP8 weights

Tencent publishes Hy4-flash, Hy4-flash-FP8 and the pretrained Hy4-flash-base under the Tencent Hy License. Start with the post-trained weights for document and coding tasks or the FP8 release for the documented server setup.

Tencent’s vLLM and SGLang container examples both serve Hy4-flash-FP8 across eight GPUs. GPU memory also has to cover the context cache and active sessions. Start with a shorter context and measure memory and task time before allocating capacity for long documents or more concurrent requests.

Tencent links AngelSlim GGUF builds for testing. Check the exact artifact and loader before budgeting a smaller machine, then measure the complete task against the hosted route.

What does a measured everyday task cost?

Tencent’s WorkIndex is an internal evaluation based on WorkBuddy tasks such as slide and document editing, spreadsheet repair, audio/video processing and visual understanding. Tencent reports Hy4 flash task costs at one-thirteenth of Hy4 Preview, one-twentieth of Hy4, and one-eighth of DeepSeek-V4.1-Flash-1017 at its Max tier and peak-hour pricing. These are Tencent’s benchmark comparisons, not a universal reduction for a customer workflow.

Plotly reports a separate analytics-agent test through OpenRouter: Hy4 flash passed 39 of 43 questions on a synthetic wind-farm dataset, with a full-run cost of $0.13 and a median of 29 seconds per question. Plotly says its harness made about eight model calls per question and 88% of input tokens came from provider cache. This is one run on a data-analysis workload; the published price reflects the route when Plotly ran the test, not today’s discounted quote.

Plotly also reports four misses: three planted hidden patterns and one statistics trap. For work involving subtle causes or unusual outliers, inspect intermediate queries and verify the final calculation against source data.

To price your own workflow, total actual uncached input, cache-hit input, output and tool usage across every turn. Divide spend by tasks that pass the checks and produce an artifact you can use.

Before you use it

  • A 1M-token context does not mean a request uses or costs 1M tokens; TokenHub lists 960K maximum input and 64K maximum output.
  • Tencent’s task-cost ratios come from its internal WorkIndex. Public task results depend on the workflow, provider rates and cache hits.

How to get started

Choose hy4-flash on Tencent TokenHub or tencent/hy4-flash on a routed provider, check that route’s live rates, and measure accepted results across the complete task.

Sources

Sources (8)

Calculators