> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hy-MT2 Pro

> Hy-MT2 Pro：腾讯混元面向专业领域和高质量要求场景的旗舰翻译模型。

Hy-MT2 Pro 是腾讯混元面向专业领域和高质量要求场景的旗舰翻译模型。

可通过 MixRoute 的 OpenAI 兼容 Chat Completions 端点调用 `hy-mt2-pro`。

## 核心能力

* 专业翻译 - 优先保障专业领域材料的译文质量
* 8K 上下文 - 最大输入 4K token，最大输出 4K token
* 指令驱动 - 通过普通对话消息传入翻译要求
* OpenAI 兼容 - 通过 MixRoute Chat Completions 调用

## 快速示例

**cURL**

```bash theme={null}
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
  }'
```

**Python**

```python theme={null}
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 流式输出。 |

## 厂商参考

* [腾讯云 TokenHub 模型列表](https://cloud.tencent.com/document/product/1823/130051)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.