Hy-MT2-30B-A3B
Hy-MT2-30B-A3B is Tencent's flagship translation model in the Hy-MT2 family. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and…
- Input price
- per 1M tokens
- Output price
- per 1M tokens
- Context
- 8.2K4.1K max output
- Cost / request
- 8K in · 500 out
01Routes and pricing
02Capabilities
- Input
- text
- Output
- text
- Context
- 8.2K
- Max output
- 4.1K
Structured outputJSON mode
03Quick start
Call it with your RProuter key
Any OpenAI-compatible SDK works. Point it at the RProuter base URL from your API keys page and use this model ID.
const response = await client.chat.completions.create({
model: "tencent/hy-mt2-30b-a3b",
messages: [{ role: "user", content: "A story begins…" }],
max_tokens: 500,
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}04Example request and response
Request
POST /v1/chat/completions
Authorization: Bearer YOUR_RPROUTER_KEY
{
"model": "tencent/hy-mt2-30b-a3b",
"messages": [
{
"role": "user",
"content": "A story begins…"
}
],
"max_tokens": 500
}Response
200 OK
{
"id": "chatcmpl-b0e4f7d2-91c3-4a6e-8d15-7f2a9c3e5b18",
"object": "chat.completion",
"model": "tencent/hy-mt2-30b-a3b",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The lighthouse keeper had not spoken in three winters…"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 14,
"completion_tokens": 212,
"total_tokens": 226
}
}