Hy-MT2-30B-A3B
Model Overview
Hy-MT2-30B-A3B is Tencent's flagship translation model in the Hy-MT2 family. It supports 33 language pairs plus five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual and glossary-based translation.
It is the most capable of the three — Hy-MT2-7B and Hy-MT2-1.8B trade quality for latency and cost. Context window is 8192 tokens, with up to 4096 tokens of output.
API Schema
Provider routing override. Use a source key such as openai, openrouter, xai, google, alibaba, minimax, moonshot, baidu, or togetherai to run that provider with no fallback; auto (default) uses the full fallback chain. Case-insensitive.
autoAn upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
If set to True, the model response data will be streamed to the client as it is generated using server-sent events.
falseWhat sampling temperature to use. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.
Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
An object specifying the format that the model must output.
Successful response.
A unique identifier for the chat completion.
chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMlThe object type.
chat.completionPossible values: The Unix timestamp (in seconds) of when the chat completion was created.
1762343744The model used for the chat completion.
tencent/hy-mt2-30b-a3bcurl --request POST \
--url 'https://api.aimlapi.com/v1/chat/completions' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "tencent/hy-mt2-30b-a3b", "messages": ["<message>"]}'Successful response.
{
"id": "chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMl",
"object": "chat.completion",
"created": 1762343744,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm just a program, so I don't have feelings, but I'm here and ready to help you. How can I assist you today?",
"refusal": null,
"annotations": null,
"audio": null,
"tool_calls": null
},
"finish_reason": "stop",
"logprobs": null
}
],
"model": "tencent/hy-mt2-30b-a3b",
"usage": {
"prompt_tokens": 137,
"completion_tokens": 914,
"total_tokens": 1051,
"completion_tokens_details": null,
"prompt_tokens_details": null
},
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Keep the instruction and the source text in one user message, as in the examples above. Putting the text on its own line after a trailing colon ("Translate the following text into French:\n\n…") can come back as "content": null with "finish_reason": "stop" — a success-shaped response carrying no translation. Read content before using it.
Last updated
Was this helpful?