Tencent: Hy-MT2-30B-A3B
tencent/hy-mt2-30b-a3bHy-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...
- Modalities
- text->text
- In / out price
- $0.074 / $0.295per 1M
- Context
- 8K
- Released
- Aug 20, 2026
- Knowledge cutoff
- —
Providers
Every request enters through InfAPI. One key calls every model in the catalog. Upstream groups, ratios, and tiers are not shown.
| Endpoint | Input | Output | Context | Status |
|---|---|---|---|---|
| InfAPI | $0.074 | $0.295 | 8K | Available |
- Input
- Text
- Output
- Text
- Tokenizer
- Other
- Max output
- 4,096
- Endpoint
- Chat
Pricing
Listed price for this model on this gateway. Token prices are per 1M tokens.
| Item | Price | Unit |
|---|---|---|
| Inputprompt | $0.074 | per 1M tokens |
| Outputcompletion | $0.295 | per 1M tokens |
API
API
The gateway speaks the OpenAI Chat Completions API. Point any compatible SDK at https://infapi.cc/v1 and send the model slug below.
Get your API key
Create a key on the keys page and set it as an environment variable: Keys
export INFAPI_API_KEY=sk-...Make your first request
Use tencent/hy-mt2-30b-a3b
import requests
response = requests.post(
"https://infapi.cc/v1/chat/completions",
headers={
"Authorization": "Bearer $INFAPI_API_KEY",
"Content-Type": "application/json",
},
json={
"model": "tencent/hy-mt2-30b-a3b",
"messages": [
{
"role": "user",
"content": "Introduce yourself in three sentences."
}
],
"temperature": 0.7,
"max_tokens": 512
},
)
response.raise_for_status()
print(response.json()["choices"][0]["message"]["content"])Endpoint
POST https://infapi.cc/v1/chat/completions
Authorization: Bearer $INFAPI_API_KEY
Using third-party SDKs
Point the OpenAI SDK at https://infapi.cc/v1 with $INFAPI_API_KEY. The HTTP samples above are the request shape this gateway accepts.
from openai import OpenAI
client = OpenAI(
base_url="https://infapi.cc/v1",
api_key="$INFAPI_API_KEY",
)
response = client.chat.completions.create(
model="tencent/hy-mt2-30b-a3b",
messages=[{"role": "user", "content": "Introduce yourself in three sentences."}],
temperature=0.7,
max_tokens=512,
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://infapi.cc/v1",
apiKey: "$INFAPI_API_KEY",
});
const response = await client.chat.completions.create({
"model": "tencent/hy-mt2-30b-a3b",
"messages": [
{
"role": "user",
"content": "Introduce yourself in three sentences."
}
],
"temperature": 0.7
});
console.log(response.choices[0]?.message?.content);Supported parameters
max_completion_tokensMax completion tokens
Same idea as max_tokens. Some newer models use this field instead.
max_tokensMax tokens
Upper bound on generated tokens. Output stops at the limit.
response_formatResponse format
For example json_object or json_schema, to constrain the shape.
stopStop
Stop when these strings are produced. A string or an array of strings.
structured_outputsStructured outputs
Generate a parseable structure that follows a JSON Schema.
temperatureTemperature
Sampling temperature. Lower is steadier, higher is more varied. Often 0 to 2.
FAQ
What is this model?
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-langu…
How much does it cost?
$0.074 / $0.295
What inputs and outputs does it support?
text->text
When was it released?
Aug 20, 2026