Skip to content
APMIX.AI

Tencent Hunyuan · Model

Hunyuan 4 Preview API

New

Hunyuan 4 Preview answers at api.apmix.ai under the id below — one key and one monthly plan, on the OpenAI and Anthropic wire formats your tools already speak. No separate Tencent Hunyuan account, no per-provider bill.

Model idtencent/hy4-previewProMax
Get an API key

At a glance

Provider
Tencent Hunyuan
Included in
Pro, Max — from $14.99/month
Weighted-token cost
1× — a 1,000-token exchange costs 1K weighted tokens
Context window
1M tokens
Free trial
Paid plans only — the free models are the place to start

Call Hunyuan 4 Preview

Set the model to hy4-preview in any OpenAI- or Anthropic-compatible client. Both base URLs accept the same apmix key.

OpenAI-compatible · Chat Completions
curl https://api.apmix.ai/v1/chat/completions \
  -H "Authorization: Bearer apx_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "hy4-preview", "messages": [{"role": "user", "content": "Hello"}]}'
Anthropic-compatible · Messages
curl https://api.apmix.ai/v1/messages \
  -H "x-api-key: apx_live_YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model": "hy4-preview", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'
Setup guides for Claude Code, Codex CLI, Cursor and more

Questions about Hunyuan 4 Preview

Is Hunyuan 4 Preview free on apmix?
Not on the free trial. Hunyuan 4 Preview is included from the Pro plan ($14.99/month), which covers every model in the catalog with one monthly allowance. You can still start free on the free Claude models.
Which plan includes Hunyuan 4 Preview?
Pro, Max. Each plan is a monthly allowance of weighted tokens shared across every model and every key; Hunyuan 4 Preview counts at 1× per token.
How do I use Hunyuan 4 Preview in Claude Code, Codex CLI or Cursor?
Point the tool at apmix — https://api.apmix.ai/v1 for OpenAI-compatible clients, https://api.apmix.ai for Anthropic-compatible ones — with your apmix key, and set the model to hy4-preview. The Docs page has copy-paste setup for each tool.