Hy4
tencent/hy4

Hy4正式版整体相比 Hy4 preview 实现了全面大幅提升,尤其强化了 Agent 能力和各类长程和真实生产力任务的能力,并首次引入了视觉理解。

Model price

Input /Mt Output /Mt
UncachedCache read
¥6/Mt¥3/Mt¥0.3/Mt¥0.15/Mt¥18/Mt¥9/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",
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:
TextImage
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

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