Tencent: Hy-MT2-1.8B

tencent/hy-mt2-1.8b

Hy-MT2-1.8B is a compact 1.8B-parameter translation model from Tencent. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-bas...

MODALITIES
INPUT PRICE
$0.04per 1M
OUTPUT PRICE
$0.18per 1M
CONTEXT
8.2K
RELEASED
Aug 20, 2026
ProviderUptimeChat
$0.044$0.177

Capabilities

Input modalities
text
Output modalities
text
Features
max_completion_tokensmax_tokensstoptemperature
1

Get API Key

Create an API key from the Keys page, then set it as an environment variable:

export ONLIST_API_KEY=sk-...
2

Make your first request

Endpoints

POSThttps://onlist.io/v1/chat/completions

OpenAI Chat Completions format

Request Headers
Authorization:Bearer $ONLIST_API_KEY
Content-Type:application/json
Model:tencent/hy-mt2-1.8b
POSThttps://onlist.io/v1/responses

OpenAI Responses format

Request Headers
Authorization:Bearer $ONLIST_API_KEY
Content-Type:application/json
Model:tencent/hy-mt2-1.8b
POSThttps://onlist.io/v1/messages

Anthropic Messages format

Request Headers
Authorization:Bearer $ONLIST_API_KEY
Content-Type:application/json
Model:tencent/hy-mt2-1.8b

Code samples

curl https://onlist.io/v1/chat/completions \
  -H "Authorization: Bearer $ONLIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "model": "tencent/hy-mt2-1.8b",
       "messages": [
         {
           "role": "user",
           "content": "Explain quantum entanglement in one paragraph."
         }
       ]
     }'

Replace $ONLIST_API_KEY with the API key from your Keys page.

Authentication

All requests must include an Authorization: Bearer <TOKEN> header. Generate keys from the Keys page; keys can be scoped to specific models, groups, IP ranges, and rate limits.

3

Enable streaming

Add "stream": true to receive partial responses as server-sent events in real time.

Streaming example

curl https://onlist.io/v1/chat/completions \
  -H "Authorization: Bearer $ONLIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "model": "tencent/hy-mt2-1.8b",
       "messages": [
         {
           "role": "user",
           "content": "Write a haiku about recursion."
         }
       ],
       "stream": true
     }'

Supported parameters

NameTypeDescription
max_completion_tokensintegerUpper bound on tokens generated, including visible and reasoning tokens.
max_tokensintegerMaximum number of tokens to generate in the completion.
stopstring | arrayUp to 4 sequences where the API will stop generating tokens.
temperaturenumberSampling temperature between 0 and 2. Higher values make output more random.

These are the request parameters this model accepts. Parameter semantics follow the OpenAI Chat Completions specification.