Introduction
Tencent HY-MT2 Pro dedicated translation chat endpoint: text-only 8,000-token context, up to 4,000 output tokens, JSON output, and SSE streaming.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Input budget | 8,000 tokens |
| max_tokens ceiling | 4,000 |
| Inputs | text |
Key features & highlights
Purpose-built for 33+ languages and regional nuances
Tencent HY-MT2 Pro is trained specifically for faithful, idiomatic translation rather than open-ended chat, preserving tone, placeholders, and domain terminology.
Compact 8K window tuned for high-volume pipelines
With an 8,000-token input limit, 4,000-token output ceiling, and no reasoning overhead, HY-MT2 Pro keeps per-string localization fast and economical.
Translate key-value bundles directly with response_format
Send localization dictionaries or structured copy blocks with response_format JSON so keys and interpolation variables remain intact.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Ordered text-only conversation history for Tencent HY-MT2 Pro (up to 256 messages). at least 1 items · at most 256 items |
max_tokens | No | Maximum output tokens generated by Tencent HY-MT2 Pro (1 to 4,000, default 2,048). |
stop | No | One stop sequence or up to four strings (32 characters each) that halt Tencent HY-MT2 Pro output. at least 1 characters · at least 1 items · at most 4 items |
temperature | No | Sampling temperature for Tencent HY-MT2 Pro from 0 to 2, where lower values yield steadier wording. |
top_p | No | Nucleus sampling threshold for Tencent HY-MT2 Pro from 0.01 to 1, tuned independently from temperature. |
response_format | No | Request plain text or structured JSON output from Tencent HY-MT2 Pro, validating returned JSON in your application. |
Pricing
Input $0.074 / Output $0.295 per 1 million tokens
Use cases
Software and game UI localization
Translate JSON string tables while keeping placeholders like {{count}}, HTML tags, and brand names untouched.
Customer support and chat translation
Translate incoming and outgoing messages in real time with low latency and low per-token billing.
Glossary-controlled product copy
Include a short terminology table in the system message to enforce consistent translations for domain terms across languages.
Prompt guide & pro tips
Pass a glossary in the system message
List do-not-translate product names and approved target terms in the system prompt so batches stay consistent across files.
Keep batches inside the 8K/4K window
Chunk large files into segments of 1,500–2,500 tokens so both source text and target translation fit comfortably within the 8,000-input and 4,000-output caps.
Use low temperature for faithful translation
Set temperature around 0.1–0.3 when translating technical documentation, legal text, or UI strings where deterministic wording matters.
Overview
Tencent HY-MT2 Pro dedicated translation chat endpoint: text-only 8,000-token context, up to 4,000 output tokens, JSON response_format, and SSE streaming.
Limits and billing
Tencent HY-MT2 Pro accepts up to 8,000 input tokens and 4,000 output tokens (default 2,048), billed per measured token at the live rates on this page.
tencent/hy-mt2-pro/chat
Tencent HY-MT2 Pro enforces an model-side content filter: live checks passed mild romance and graphic horror (both chat and EN→DE translation), while hard-blocking all sensual, nudity, explicit erotica, and BDSM prompts and translations with a content-filter refusal.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "tencent/hy-mt2-pro/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.

