# Tencent Hy4 Preview

Tencent Hy4 preview is Tencent Hy’s open-source large language model, featuring 770B total parameters, 49B active parameters, and a context window exceeding 1 million tokens. Built for real-world productivity, it supports long-horizon coding, cross-document analysis, office content creation, game development, and scientific reasoning, making it well-suited to complex agents and multi-step professional workflows.

- **Model ID:** `tencent/hy4-preview`
- **Type:** chat
- **Providers:** tencent
- **Context window:** 1,024,000
- **Maximum output tokens:** 64,000
- **Pricing:** $0.834/1M input tokens, $2.501/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/hy4-preview

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'tencent/hy4-preview',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/hy4-preview)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://hy.tencent.ai/research/hy4-preview)
