Hy4 from Tencent is now available on AI Gateway, at 50% off through December 31, 2026.
Hy4 supports reasoning, tool calling, structured outputs, and image input, and has a 1M-token context window for work across a codebase or many documents.
Hy4 is the first Hy model with vision. It can pick out fine detail in an image and read complex charts. It also supports computer use in both command-line and graphical interfaces. Compared with Hy4 Preview, it follows instructions more closely and does better with long context, long-running tasks, and deep research.
Use tencent/hy4 as the model name:
To use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:
Then select `tencent/hy4` in the agent. See the [coding agents guide](https://vercel.com/docs/ai-gateway/coding-agents) for details.
Try Hy4 in the [model playground](https://vercel.com/ai-gateway/models/hy4).
AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.
AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.
You can view all language models available on AI Gateway.