API des Modells tencent/Hy4-flash:pearl-research bei Hugging Face Inference, $0.05 / $0.2 pro Million Tokens, Kontext 1.048.576 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
tencent/Hy4-flash served by Pearl Research through the Hugging Face router (fp8 quantization).
- Typ
- Modell
- Anbieter
- Hugging Face Inference
- Hosting
- Pearl Research
- Modell-ID
tencent/Hy4-flash:pearl-research- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $0.05 / $0.2 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
HF_TOKEN- Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1- Kontext
- 1.048.576 Tokens
- Eingaben
- Text, Bild
- Funktionen
- Tool-Aufrufe, JSON-Ausgabe
- Antwortzeit
- Erstes Token 2336 ms · 29 Tokens/s · Verfügbarkeit 100 %
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://huggingface.co/tencent/Hy4-flash
Codebeispiele
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"tencent/Hy4-flash:pearl-research","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://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="tencent/Hy4-flash:pearl-research",
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://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'tencent/Hy4-flash:pearl-research',
messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)
Beliebte Suchen
Häufige Fragen
Ist die API von Hy4-flash · Pearl Research kostenlos?
Nein: Hy4-flash · Pearl Research ist eine kostenpflichtige API ($0.05 / $0.2 pro Million Tokens).
Wie rufe ich Hy4-flash · Pearl Research aus meinem Code auf?
Hy4-flash · Pearl Research bietet eine OpenAI-kompatible API unter https://router.huggingface.co/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: tencent/Hy4-flash:pearl-research. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von Hy4-flash · Pearl Research?
Hy4-flash · Pearl Research verarbeitet bis zu 1.048.576 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu Hy4-flash · Pearl Research?
Ähnliche APIs im Katalog: Hy4-flash · DeepInfra, Hy4-flash · Fireworks, Hy4 · Together, Hy4 · DeepInfra, Tencent: Hy4 flash.
Alternativen
- Hy4-flash · DeepInfra — Kostenpflichtig
- Hy4-flash · Fireworks — Kostenpflichtig
- Hy4 · Together — Kostenpflichtig
- Hy4 · DeepInfra — Kostenpflichtig
- Tencent: Hy4 flash — Kostenpflichtig
- Tencent: Hy4 — Kostenpflichtig
- Tencent: Hy4 preview — Kostenpflichtig
- Tencent: Hy-MT2-1.8B — Kostenpflichtig
- Tencent: Hy-MT2-30B-A3B — Kostenpflichtig
- Tencent: Hy-MT2-7B — Kostenpflichtig
- Tencent: Hy3 — Kostenpflichtig