Hy-MT2-1.8B API: toman pricing and code
tencent/hy-mt2-1.8b
You are billed for the usage the request actually reported. Prices follow the market.Pricing and top-ups
Hy-MT2-1.8B example: writing product copy
The example is picked from this model's own capabilities. Drop in your key and it runs as is.
from openai import OpenAI
client = OpenAI(base_url="https://api.uttapen.ir/v1", api_key="sk-up-…")
stream = client.chat.completions.create(
model="tencent/hy-mt2-1.8b",
messages=[{"role": "user", "content": "Write a 40-word product description for a 1.7-litre stainless steel electric kettle."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uttapen.ir/v1", apiKey: "sk-up-…" });
const stream = await client.chat.completions.create({
model: "tencent/hy-mt2-1.8b",
messages: [{ role: "user", content: "Write a 40-word product description for a 1.7-litre stainless steel electric kettle." }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");curl https://api.uttapen.ir/v1/chat/completions \
-H "Authorization: Bearer sk-up-…" \
-H "Content-Type: application/json" \
-d '{
"model": "tencent/hy-mt2-1.8b",
"messages": [{"role": "user", "content": "Write a 40-word product description for a 1.7-litre stainless steel electric kettle."}],
"stream": true
}'What is Hy-MT2-1.8B good for?
The id for Hy-MT2-1.8B in our API is "tencent/
Hy-MT2-1.8B is text in, text out: no tool calling, no image input. For chat, rewriting, translation and summarising that is all you need, and it costs less than a model carrying features you never call.
For a back-of-envelope figure: about 99 toman per 1,000-word exchange (15,234 in, 61,281 out, per 1M tokens). You are always charged for the usage the request actually reported, never for the estimate, and a failed request costs nothing.
The closest alternative with the same capabilities from a different provider is Reka Flash 3: Hy-MT2-1.8B works out about 29% cheaper, and its context window is smaller. Both run on the same key and the same code, so trying the other one is a single string change.
To make the figure concrete: 100,000 toman of credit buys roughly 1,010 thousand-word requests on Hy-MT2-1.8B, and every 1,000 toman is about 10,101 words of round trip. A job with one million input tokens and one million output tokens comes to 76,514 toman in total. Filling this model's 8,192-token window costs 125 toman on the input side alone, which is the real reason to keep conversation history short.
Tencent has 8 models in our catalogue; the cheapest is Hy-MT2-1.8B at 99 toman per thousand words and the dearest Hy4 preview at 1,501. Among the less common parameters it accepts max_completion_tokens — all through the standard request body. It does not support include_reasoning, reasoning, response_format, tool_choice, which most models here do, so test before switching if your code relies on them. By context size the nearest option from another provider is Gemma 2 27B at 8,192 tokens.
What to use it for: high-volume work such as classification, tagging and bulk summarising, short single-turn requests (the context window is small).
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-based, contextual, glossary-based, and style-guided...
Three real jobs, priced on this model
Each figure is derived from the prices above and moves when they do.
| Job | Tokens | Cost |
|---|---|---|
| One chat turn with a medium history | 1,500 in + 400 out | 47 toman |
| Summarising a ten-page document | 4,000 in + 600 out | 98 toman |
| Classifying a thousand short rows | 120,000 in + 20,000 out | 3,054 toman |
Frequently asked
- How do I call Hy-MT2-1.8B from Iran?
- Sign up with your mobile number, top the wallet up in toman, create an API key, then in the official OpenAI SDK point base_url at https:/
/ api.uttapen.ir/ v1 and set model to "tencent/ hy-mt2-1.8b". Nothing else in your code changes. - What does Hy-MT2-1.8B cost in toman?
- 15,234 toman per 1M input tokens and 61,281 toman per 1M output tokens; a 1,000-word request is around 99 toman. You pay for the usage that request actually reported, and a failed request costs nothing.
- How much input does Hy-MT2-1.8B take?
- Up to 8,192 tokens per request, roughly 6k words. A single answer can reach 4,096 tokens.
- Can I stream Hy-MT2-1.8B's output?
- Yes — with stream=true you get SSE events as the tokens are produced. This model has no tool calling and no image input, so pick a different one if you need either.