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

# Hy-MT2 Pro

> Hy-MT2 Pro: Tencent's flagship translation model for professional domains and quality-sensitive work.

Hy-MT2 Pro is Tencent Hy's flagship translation model for professional domains and workloads where translation quality is the priority.

Call `hy-mt2-pro` through MixRoute using the OpenAI-compatible Chat Completions endpoint.

## Key capabilities

* Professional translation - Prioritizes quality for domain-specific material
* 8K context window - Supports up to 4K input tokens and 4K output tokens
* Instruction-driven - Accepts translation requirements through normal chat messages
* OpenAI-compatible - Uses Chat Completions through MixRoute

## Quick example

<Tabs>
  <Tab title="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
      }'
    ```
  </Tab>

  <Tab title="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)
    ```
  </Tab>
</Tabs>

## Parameters

| Parameter    | Type    | Required | Description                                  |
| ------------ | ------- | -------- | -------------------------------------------- |
| `model`      | string  | Yes      | Model ID. Must be `hy-mt2-pro`.              |
| `messages`   | array   | Yes      | Conversation messages with role and content. |
| `max_tokens` | integer | No       | Maximum generated tokens.                    |
| `stream`     | boolean | No       | Enable SSE streaming.                        |

## Vendor reference

* [Tencent Cloud TokenHub model list](https://cloud.tencent.com/document/product/1823/130051)
