CorporateBench puts Hy4 Flash at 75.9% for $0.013 per task against Claude Opus 5.5 at 75.4% for $2.80, though the cost advantage is workload-dependent and does not extend to hard software engineering. This Hy4 Flash API guide shows how to call the model on Fireworks serverless, what it costs per task, and where the 512K launch cap and license apply.
What you actually get with Hy4 Flash
Hy4 Flash is Tencent's open-weights mixture-of-experts model with roughly 220B total parameters and about 12B active parameters per token. The native context window is 1M tokens (exactly 1,048,576 per Tencent's README), with text and image input, reasoning, function calling, structured output, and prompt caching supported on the official Tencent Cloud TokenHub listing.
Provider IDs and endpoints:
| Provider | Model ID | Base URL / route |
|---|---|---|
| Tencent TokenHub (official) | hy4-flash | https://tokenhub-intl.tencentcloudmaas.com (Singapore global host; other regional hosts documented here) |
| Fireworks serverless | accounts/fireworks/models/hy4-flash | Fireworks inference API, OpenAI-compatible |
| Vercel AI Gateway | tencent/hy4-flash | AI Gateway with automatic provider routing |
TokenHub documents OpenAI Chat Completions, Responses, and Anthropic Messages protocols for hy4-flash (endpoint guide). The official limits are 1,024K context, 960K maximum input, and 64K maximum output.
What it costs per task, not per token
Fireworks lists Standard-tier pricing at $0.07 per million uncached input tokens, $0.003 per million cached input tokens, and $0.281 per million output tokens. TokenHub's list figures match per the TokenHub pricing guide, which copies Tencent's pricing pages.
| Provider | List input / output / cache per 1M | Effective November 2026 |
|---|---|---|
| Fireworks Standard | $0.07 / $0.281 / $0.003 | Same as list; 512K context at launch |
| Tencent TokenHub | $0.07 / $0.281 / $0.003 | $0.035 / $0.1405 / $0.0015 until Nov 30, 12:00 Beijing time |
| Vercel AI Gateway | List not shown; displayed $0.04 / $0.14 / $0.0015 with 50%-off badge | Pay displayed rates; check gateway page at checkout |
Task cost follows cost = (uncached_in x in_rate + cached_in x cache_rate + out x out_rate) / 1M, applied to recorded token usage. Fireworks' November 25 launch report computed per-task figures from recorded usage at Fireworks prices on the same harness as other models on each board (results as of November 22, 2026).
| Benchmark | Hy4 Flash | Claude reference | Cost per task |
|---|---|---|---|
| CorporateBench (company emails + meeting notes) | 75.9%, rank 6/14 | Opus 5.5: 75.4% | $0.013 vs $2.80 (200x+) |
| Big Finance Benchmark | 49.2%, tied Opus 5 | Opus 5: 49.2%; Opus 5.5: 48.2% | $0.0065 vs $1.83 (~280x) |
| Tau3-Banking (agent tasks) | 49.2% | Opus 5: 49.1% | $0.012 vs $2.59 (200x+) |
Call the Hy4 Flash API from Fireworks or TokenHub
TokenHub documents OpenAI-compatible protocols for hy4-flash (guide), Fireworks serves an OpenAI-compatible endpoint, and Vercel lists Chat Completions, Responses, and Messages routes for tencent/hy4-flash. Create a Fireworks API key in the dashboard and export it as FIREWORKS_API_KEY, then run:
curl -X POST 'https://api.fireworks.ai/inference/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $FIREWORKS_API_KEY" \
-d '{
"model": "accounts/fireworks/models/hy4-flash",
"messages": [{"role": "user", "content": "Summarize this Q3 expense sheet by vendor."}],
"max_tokens": 2000
}'The same call through the official TokenHub Singapore host uses the shorter ID and the /v1/chat/completions path documented in the Hy API guide.
curl -X POST 'https://tokenhub-intl.tencentcloudmaas.com/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TOKENHUB_API_KEY" \
-d '{
"model": "hy4-flash",
"messages": [{"role": "user", "content": "Hello, please briefly introduce yourself."}],
"stream": false,
"temperature": 0.9
}'The Python example below calls Fireworks. On Vercel, use the gateway SDK with model tencent/hy4-flash and your gateway key per the Vercel model page.
from openai import OpenAI
client = OpenAI(
base_url="https://api.fireworks.ai/inference/v1",
api_key="YOUR_FIREWORKS_KEY",
)
resp = client.chat.completions.create(
model="accounts/fireworks/models/hy4-flash",
messages=[{"role": "user", "content": "Extract action items from these meeting notes."}],
)
print(resp.choices[0].message.content)Reasoning tokens count toward the output limit and images count as input tokens. For OpenAI-compatible agent harnesses, point the base URL at the chosen provider and set the matching model ID from the table above.
Limitations and weaker benchmarks
The Fireworks launch post discloses weak spots alongside the wins. Hy4 Flash ranks 16th of 18 on HealthBench Professional and 19th of 22 on DeepSWE, and Tencent recommends the larger Hy4 model for long-horizon software engineering.
"the detail that stands out is the launch context gap: Hy4 Flash has 1M native context, but Fireworks is only serving 512K at launch. that is a real limit for long docs and agent loops." — @marcel_butucea on X
For inputs above 512K, chunk or use TokenHub; treat Fireworks' benchmark as cost evidence, not universal Opus parity. Self-hosting is a separate cost model: one early LocalLLaMA measurement put resident size near 88 GiB at the tested quantization.
The weights carry the Tencent Hy License v1.0, not Apache 2.0, so check the LICENSE text before commercial self-hosting. As a general caution, check each provider's terms before production use. Tencent's README documents local inference and OpenAI-compatible serving with vLLM and SGLang sections.
Should you route work to Hy4 Flash
Route document, finance, research, and structured-extraction agent work to Hy4 Flash when per-task cost dominates the decision. Keep long-horizon coding and clinical-domain work on stronger or specialized models until independent production measurements arrive.
| Workload | Verdict | Why |
|---|---|---|
| Long-doc Q&A, email/meeting search | Use it | CorporateBench result of 75.9% vs Opus 5.5 at 75.4%, ~1/200th the task cost |
| Finance and banking agents | Use it | Tied Opus 5 on Big Finance and Tau3-Banking at 200-280x lower cost |
| High-volume office extraction | Use it | 12B active params, $0.003/M cached input, structured output + tools |
| Long-horizon software engineering | Skip it | DeepSWE 19/22; Tencent points SWE to full Hy4 |
| Health/clinical reasoning | Skip it | HealthBench Professional 16/18 |
| 700K+ token single-pass context | Skip Fireworks | 512K launch cap; use TokenHub or chunk first |
Fireworks reports close agreement with Tencent's endpoint on serving-fidelity checks, which do not establish production latency or rate limits, so test latency, errors, rate limits, and output quality with a small canary.
FAQ
Is the current discount permanent?
No. TokenHub's 50% reduction ends November 30, 2026 at 12:00 Beijing time; Vercel's displayed rates carry a 50%-off badge.
Can I self-host Hy4 Flash instead of calling the API?
Yes, per Tencent's README with vLLM and SGLang sections; budget for a ~100GB-class deployment based on the 88 GiB early measurement.
What license covers commercial use?
The Tencent Hy License v1.0 for weights; check its text before commercial self-hosting, while API calls follow provider terms.
Related reading: Hunyuan Hy4 Flash API pricing · Qwen4 Max vs Hy4 Flash for agents · DeepSeek Flash API pricing