modelhub.help

HunyuanCoder

Tencent HunyuanOpen-weight

128K context · — params · Open (Tencent)

tencent/hunyuan-coder

HunyuanCoder is Tencent's open-source code model family (2025) tuned for code generation, completion and repository-level reasoning, with strong Chinese-code understanding. Weights are publicly available.

Cheapest blended: ¥1.6 / 1M tokens on Tencent HunyuanGet custom quote

Reachability & verification

Live reachability

Probing…

Target (Tencent Hunyuan): https://api.hunyuan.cloud.tencent.com/v1

Live reachability probe

Measured in real time from the ModelHub gateway egress to this model's API endpoint. Green means reachable right now. Overseas reference latencies are estimates; the live probe is the proof of current reachability.

Pricing across providers

1

Prices are shown in each provider's billing currency — ¥ (CNY) for Chinese providers, $ (USD) for overseas gateways.

ProviderInput /1MOutput /1MBlendedCtxp50 latencyAPIVerified
Tencent Hunyuanhunyuan-coder¥1¥3¥1.6128K OAI43d ago

Works with

CursorClineAiderContinueOpenCodeOpen WebUI

Any OpenAI-compatible client works — point the base URL at the provider endpoint.

Capabilities

codechat

Languages: en, zh

Code samples

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.hunyuan.cloud.tencent.com/v1",
    api_key="YOUR_API_KEY",
)

resp = client.chat.completions.create(
    model="hunyuan-coder",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
cURL
curl https://api.hunyuan.cloud.tencent.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hunyuan-coder",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Node.js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.hunyuan.cloud.tencent.com/v1",
  apiKey: "YOUR_API_KEY",
});

const resp = await client.chat.completions.create({
  model: "hunyuan-coder",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);

Technical specs

Context

128K

Max output

Parameters

Release

2025

Training cutoff

License

Open (Tencent)

Similar models

Frequently asked questions

How much does HunyuanCoder cost?

The cheapest tracked blended price is ¥1.6 per 1M tokens on Tencent Hunyuan. See the pricing matrix above for input/output splits per provider.

Can I use HunyuanCoder from outside China?

Availability depends on the hosting provider. Use our Path Planner on the Tencent Hunyuan page to map a verified official-vs-brokered access path, including payment and KYC constraints.

Is HunyuanCoder open source?

Yes — HunyuanCoder is open-weight under the Open (Tencent) license. You can self-host it or use any listed inference provider.

Is HunyuanCoder OpenAI-compatible?

Yes — at least one tracked provider exposes an OpenAI-compatible endpoint, so Cursor, Cline, Aider and similar clients work with just a base-URL change.

What is the maximum context window?

HunyuanCoder supports up to 128K tokens of context with a maximum output of — tokens.

Need verified access to HunyuanCoder?

We broker vetted intros to Tencent Hunyuan — payment, KYC and endpoint verification handled.

Request a brokerage intro