Hy4 Preview
tencent/hy4-preview

Hy4 Preview是腾讯推出的混合专家模型,总参数规模达 7700 亿,其中激活参数为 490 亿。该模型专为编码智能体、复杂工具调用工作流,以及需要规划能力、上下文连贯性和持续多步执行的生产力任务而设计。

Model price

Input /Mt Output /Mt
UncachedCache read
¥6/Mt¥0.3/Mt¥18/Mt

Sample Code

Copy
1base_url="https://api.ppio.com/openai"
2api_key="<YOUR_API_KEY>"
3
4curl "$base_url/v1/chat/completions" \
5  -H "Content-Type: application/json" \
6  -H "Authorization: Bearer $api_key" \
7  -d @- << 'EOF'
8{
9    "model": "tencent/hy4-preview",
10    "messages": [
11        
12        {
13            "role": "user",
14            "content": "Hi there!"
15        }
16    ],
17    "response_format": { "type": "text" }
18}
19EOF
20  

Model Information

Context window:

1M

Maximum output tokens:

64K

Modality:

Input:
Text
Output:
Text

Supported features

Function CallingSupported
Structured OutputSupported
reasoningSupported

API Integration Guide

Base URL:

https://api.ppio.com/openai

Messages protocol Base URL:

https://api.ppio.com/anthropic

API Endpoints:

/v1/chat/completions

Model ID:

tencent/hy4-preview

Usage tierRPMTPM
T1550000000
T210050000000
T3100050000000
T4300050000000
T5600050000000
With more cost-effective products and services
Help you unleash boundless innovation and lead the new era of intelligence
Inquire now