hy-mt2-pro。
核心能力
- 专业翻译 - 优先保障专业领域材料的译文质量
- 8K 上下文 - 最大输入 4K token,最大输出 4K token
- 指令驱动 - 通过普通对话消息传入翻译要求
- OpenAI 兼容 - 通过 MixRoute Chat Completions 调用
快速示例
- cURL
- Python
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hy-MT2 Pro:腾讯混元面向专业领域和高质量要求场景的旗舰翻译模型。
hy-mt2-pro。
curl "https://api.mixroute.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy-mt2-pro",
"messages": [
{
"role": "user",
"content": "Translate into Japanese while preserving the formal tone: Our service will be unavailable for maintenance on Friday."
}
],
"max_tokens": 256
}'
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")
response = client.chat.completions.create(
model="hy-mt2-pro",
messages=[{"role": "user", "content": "Translate into Japanese while preserving the formal tone: Our service will be unavailable for maintenance on Friday."}],
max_tokens=256,
)
print(response.choices[0].message.content)
| Parameter | Type | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 模型 ID,固定为 hy-mt2-pro。 |
messages | array | 是 | 包含 role 与 content 的对话消息。 |
max_tokens | integer | 否 | 最大生成 token 数。 |
stream | boolean | 否 | 启用 SSE 流式输出。 |