Tencent

Hunyuan Hy4 Preview

hy4-previewAvailable

Hunyuan Hy4 Preview。テキスト生成モデル。

Context
1M tokens

Pricing (USD per 1M tokens)

How prices are calculated
Prices (USD per 1M tokens)
ItemOfficialBasic
Input$0.834≈ ¥132$0.834≈ ¥133
Output$2.501≈ ¥397$2.501≈ ¥398
Cache read$0.042≈ ¥6.7$0.042≈ ¥6.7

Cost per task vs. models at a similar price

Compare them

How to call

POST/v1/chat/completions

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://token.echohub.io/v1",
    api_key=os.environ["ECHO_API_KEY"],
)

res = client.chat.completions.create(
    model="hy4-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)
its developer docs