Hy-MT2-7B API

tencent/hy-mt2-7b
Hy-MT2-7B is a 7B-parameter translation model from Tencent, supporting 33 language pairs plus five Chinese dialect and minority-language pairs.
Context
8K tokens
Input
$0.078292 / 1M tokens
Output
$0.31211 / 1M tokens
Released
Aug 19, 2026

Overview

What Is Hy-MT2-7B API?

Hy-MT2-7B is a 7B-parameter translation model from Tencent, part of the Hy-MT2 family. It supports 33 language pairs plus five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and style-guided translation.

Technical Reference

Developer Tencent
Model ID tencent/hy-mt2-7b
Release Date August 19, 2026
Context Window 8,192 tokens
Max Output Tokens 4,096
Parameters 7B
Modalities Text (input) → Text (output)
Capabilities Streaming

What Hy-MT2-7B Brings to the Table

Balanced size and language coverage

Sitting between the 1.8B and 30B-A3B models in the Hy-MT2 family, it targets a middle ground of translation quality and cost across 33 language pairs plus five Chinese dialect and minority-language pairs.

Multiple translation workflows

Structured, delimiter-based, contextual, glossary-based, and style-guided translation modes cover use cases from raw text translation to terminology-constrained and tone-controlled output.

Streaming output

Responses can be streamed token-by-token for lower perceived latency in interactive translation flows.

API Pricing

  • Input: $0.0962 per 1M tokens
  • Output: $0.3835 per 1M tokens

Where Hy-MT2-7B Makes the Most Sense

General-purpose translation

A balanced default for translation workloads that don't need the largest model in the family.

Glossary and style-constrained translation

Glossary-based and style-guided workflows help keep terminology and tone consistent across translated content.

Chinese dialect and minority-language translation

Dedicated support for five Chinese dialect and minority-language pairs beyond the standard 33.

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 100%
  • Error rate (24h): 0%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Multi-dimensional evaluations show Hy-MT2-7B is suited to general translation tasks. It is also documented as suitable for real-world business translation tasks. The model is described as effective for domain-specific translation tasks. It is further documented as suited to instruction-following translation tasks.

How to use Hy-MT2-7B API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to tencent/hy-mt2-7b.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "tencent/hy-mt2-7b",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "tencent/hy-mt2-7b",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tencent/hy-mt2-7b","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Hy-MT2-7B API Pricing

TypePrice
Input
$0.078292 / 1M tokens
Output
$0.31211 / 1M tokens

Hy-MT2-7B vs other models

ModelInputOutputContextBest for
Hy-MT2-7B
This page
$0.078292 / 1M tokens
$0.31211 / 1M tokens
8K tokens
Balanced translation
$5 / 1M tokens
$30 / 1M tokens
1M tokens
Reasoning + agents
$2 / 1M tokens
$10 / 1M tokens
1M tokens
Balanced coding + agents
$3 / 1M tokens
$15 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.5 / 1M tokens
$9 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Hy-MT2-7B has a 8,192 tokens context window and can return up to 4,096 tokens.

Hy-MT2-7B takes text as input and returns text.

Use tencent/hy-mt2-7b as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

Hy-MT2-7B became available on August 19, 2026.

Hy-MT2-7B is priced at input $0.1017796 / 1M tokens, output $0.405743 / 1M tokens.

Yes, Hy-MT2-7B can stream responses as they are generated.

Hy-MT2-7B was built by Tencent.

Hy-MT2-7B supports 33 language pairs plus five Chinese dialect and minority-language pairs.

Start building with Hy-MT2-7B

Get API Key
1000+ models, one API.