Hy4 Preview on AIHubMix BYOK
Tencent Hunyuan Hy4 Preview joins the catalog as tencent/hy4-preview, routed through AIHubMix BYOK at the aggregator's published list rates.
Hy4 Preview is Tencent Hunyuan's 770B/49B-active MoE for agents, coding, office automation, and long-horizon tool use. Call tencent/hy4-preview. The hop is AIHubMix BYOK (hy4-preview on the wire). Caller price is $0 because you spend your own AIHubMix key. List rates copied from AIHubMix: $0.845 / $2.535 per 1M tokens (cache read $0.0423). 1M context, 64K max output. Distinct from unlisted tencent/Hy3.
Use it for coding agents, multi-step tool workflows, and long-context office or engineering tasks that need sustained execution.
- App code — Vercel AI SDK or OpenAI SDK.
- Coding agent —
anyr claude/anyr opencode/anyr codex(playbook). - No code — playground.
Try it in the Vercel AI SDK. createAnyRouter() reads ANYROUTER_API_KEY:
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"
const anyrouter = createAnyRouter()
const { text } = await generateText({
model: anyrouter("tencent/hy4-preview"),
prompt: "Summarize this diff in three bullets.",
})
console.log(text)Already on the OpenAI SDK? OpenAI SDK playbook:
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://anyrouter.dev/api/v1",
apiKey: process.env.ANYROUTER_API_KEY,
})
const res = await client.chat.completions.create({
model: "tencent/hy4-preview",
messages: [{ role: "user", content: "Hello" }],
})
console.log(res.choices[0]?.message.content)curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tencent/hy4-preview","messages":[{"role":"user","content":"Hello"}]}'Or launch a coding agent through the anyr CLI:
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude --model "tencent/hy4-preview"curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr opencode --model "tencent/hy4-preview"curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr codex --model "tencent/hy4-preview"More: AI SDK · OpenAI SDK · coding agents.
No terminal? Open the playground and send a first message.
Try in playground