Hunyuan Budget Operational

Hunyuan 4 Preview API: pricing, code samples & live stats

Hunyuan 4 Preview from the Hunyuan family, Budget class. Call it with one BangunWeb API key in OpenAI or Anthropic format. No credit card needed, and usage is billed in prepaid tokens.

Model ID

hy4-preview

Sign up with Google, no payment. API key ready instantly.

Price per 1M tokens

Input tokens$0.057
Output tokens$0.062
Base fee per request
$0.0001
Example request (1,000 in + 500 out)
$0.0002
One coding-agent step (~20k input tokens)
$0.0013

Based on the Saver package. Bigger packages cost less: from $0.034 per 1M input tokens on Raja.

Packages from $0.55. Pay with QRIS, Indonesian bank transfer, or crypto (USDT). Tokens never expire.

Top Model rank

Real usage, last 7 days

From customer requests through the BangunWeb gateway, not vendor numbers. Refreshed every 15 minutes.

This model has not been used enough to enter the Top Model board this week.

Time to first reply (fastest route probe): 2.1 s. See the Top Model board →

API

Use Hunyuan 4 Preview in one minute

Base URL https://router.bangunweb.com/v1, an API key from your dashboard, and model ID hy4-preview. Copy, swap the key, run.

curl
curl https://router.bangunweb.com/v1/chat/completions \
  -H "Authorization: Bearer bwr_live_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "hy4-preview", "messages": [{"role": "user", "content": "Hi, introduce yourself briefly."}]}'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://router.bangunweb.com/v1",
    api_key="bwr_live_...",
)

r = client.chat.completions.create(
    model="hy4-preview",
    messages=[{"role": "user", "content": "Hi, introduce yourself briefly."}],
)
print(r.choices[0].message.content)

One line installs OpenCode (terminal coding agent) with this model as default:

OpenCode
curl -fsSL https://bangunweb.com/install | BANGUNWEB_MODEL=hy4-preview sh

API docs →Beginner guide →

Similar models

One API key for all of them. Just change the model ID.

See all 65 models →

Questions about the Hunyuan 4 Preview API

How much does the Hunyuan 4 Preview API cost?

$0.057 per 1M input tokens and $0.062 per 1M output tokens (Saver package), plus a $0.0001 base fee per request. Bigger packages are cheaper per token.

How do I pay?

Buy a token package in the dashboard, from $0.55. Pay with QRIS, Indonesian bank transfer, or crypto (USDT). No credit card needed.

Does Hunyuan 4 Preview work with the OpenAI SDK?

Yes. Set base_url to https://router.bangunweb.com/v1, use your BangunWeb API key and model="hy4-preview". The Anthropic format (/v1/messages) is supported too.

Can I use it in Claude Code or OpenCode?

Yes. Run the one-line installer above, or set the base URL and API key in the tool yourself. Cursor, Cline, n8n and other OpenAI-compatible tools work too.

Is there a free trial?

Sign up with a Google account to get 2M free trial tokens, enough to test this model before buying.

Try it free today

2M free tokens for new Google accounts. Start telling an AI to build your app right away.