# Tencent Hy4

Tencent Hy4 is a text model for coding, reasoning, and agentic workflows. It supports tool calling, structured outputs, and prompt caching, with a 1M-token context window for tasks such as software engineering, document analysis, and office automation.

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

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

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

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

## Links

- [Model page](https://vercel.com/ai-gateway/models/hy4)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://www.tencentcloud.com/document/product/1300/78934)
- [Provider pricing](https://www.tencentcloud.com/document/product/1300/78937)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
