Models and prices / hy-mt2-pro
Hunyuan MT2 Pro (translation) 24% off
Translation model for 33 languages, for documents, product copy and support content. 8K context, up to 4K output tokens per request.
OpenAI compatible
Pricing
| Item (USD per 1M tokens) | Price |
|---|---|
| Input | $0.074$0.056 |
| Output | $0.295$0.2239 |
- Send hy-mt2-pro as the model.
- The struck-through price is the model maker's own price.
Specs
| Context window | 8K tokens |
| Longest answer | 4K tokens |
| Input | text |
| APIs | OpenAI Chat Completions |
| Reasoning (thinking) | No |
Call it with the OpenAI API
curl https://api.aifans.fan/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "hy-mt2-pro", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 1000}'# pip install openai
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.aifans.fan/v1")
resp = client.chat.completions.create(
model="hy-mt2-pro",
messages=[{"role": "user", "content": "Hello"}],
max_tokens=1000,
)
print(resp.choices[0].message.content)