TensaHub › OpenRouter

Tencent: Hy-MT2-30B-A3B

API des Modells tencent/hy-mt2-30b-a3b bei OpenRouter, $0.074 / $0.295 pro Million Tokens, Kontext 8.192 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.

Im Katalog testen und bewerten

Hy-MT2-30B-A3B is Tencent's flagship translation model in the Hy-MT2 family. It supports 33 language pairs and five Chinese dialect and minority-language pairs, with workflows for structured, delimiter-based, contextual, glossary-based, and...

Typ
Modell
Anbieter
OpenRouter
Modell-ID
tencent/hy-mt2-30b-a3b
Preis
Kostenpflichtig
Preis Eingabe / Ausgabe
$0.074 / $0.295 pro Million Tokens
Zugang ohne Schlüssel
Nein
Schlüsselvariable
OPENROUTER_API_KEY
Basis-URL (OpenAI-kompatibel)
https://openrouter.ai/api/v1
Kontext
8.192 Tokens
Eingaben
Text
Funktionen
JSON-Ausgabe
Entwicklerbewertung
Noch nicht bewertet
Dokumentation
https://openrouter.ai/tencent/hy-mt2-30b-a3b

Codebeispiele

cURL

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{"model":"tencent/hy-mt2-30b-a3b","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
    model="tencent/hy-mt2-30b-a3b",
    messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
  model: 'tencent/hy-mt2-30b-a3b',
  messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)

Integrationscode erzeugen →

Beliebte Suchen

Häufige Fragen

Ist die API von Tencent: Hy-MT2-30B-A3B kostenlos?

Nein: Tencent: Hy-MT2-30B-A3B ist eine kostenpflichtige API ($0.074 / $0.295 pro Million Tokens).

Wie rufe ich Tencent: Hy-MT2-30B-A3B aus meinem Code auf?

Tencent: Hy-MT2-30B-A3B bietet eine OpenAI-kompatible API unter https://openrouter.ai/api/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: tencent/hy-mt2-30b-a3b. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.

Wie groß ist das Kontextfenster von Tencent: Hy-MT2-30B-A3B?

Tencent: Hy-MT2-30B-A3B verarbeitet bis zu 8.192 Tokens Kontext (Nachricht und Verlauf).

Welche Alternativen gibt es zu Tencent: Hy-MT2-30B-A3B?

Ähnliche APIs im Katalog: Hy4-flash · DeepInfra, Hy4-flash · Fireworks, Hy4-flash · Pearl Research, Hy4 · Together, Hy4 · DeepInfra.

Alternativen