# 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.

- Date: 2026-09-02
- HTML: https://anyrouter.dev/blog/releases/2026-09-02-hy4-preview

## Models

- `tencent/hy4-preview` (Hy4 Preview)

## Notes

Hy4 Preview is Tencent Hunyuan's 770B/49B-active MoE for agents, coding, office automation, and long-horizon tool use. Call [`tencent/hy4-preview`](https://anyrouter.dev/model/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](https://aihubmix.com/model/hy4-preview): $0.845 / $2.535 per 1M tokens (cache read $0.0423). 1M context, 64K max output. Distinct from unlisted [`tencent/Hy3`](https://anyrouter.dev/model/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](https://anyrouter.dev/use-cases/ai-sdk) or [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk).
- Coding agent: `anyr claude` / `anyr opencode` / `anyr codex` ([playbook](https://anyrouter.dev/use-cases/coding-agents)).
- No code: [playground](https://anyrouter.dev/playground?model=tencent/hy4-preview).

Try it in the [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk). `createAnyRouter()` reads `ANYROUTER_API_KEY`:

```ts
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)
```

_generateText with the catalog id._

Already on the OpenAI SDK? [OpenAI SDK playbook](https://anyrouter.dev/use-cases/openai-sdk):

### OpenAI SDK

```ts
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

```bash
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:

### Claude Code

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr claude --model "tencent/hy4-preview"
```

### OpenCode

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr opencode --model "tencent/hy4-preview"
```

### Codex

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr codex --model "tencent/hy4-preview"
```

More: [AI SDK](https://anyrouter.dev/use-cases/ai-sdk) · [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk) · [coding agents](https://anyrouter.dev/use-cases/coding-agents).

No terminal? Open the playground and send a first message.

[Try in playground](https://anyrouter.dev/playground?model=tencent/hy4-preview)
