API des Modells tencent/Hy4-flash:fireworks-ai bei Hugging Face Inference, $0.07 / $0.281 pro Million Tokens, Kontext 524.288 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
tencent/Hy4-flash served by Fireworks through the Hugging Face router.
- Typ
- Modell
- Anbieter
- Hugging Face Inference
- Hosting
- Fireworks
- Modell-ID
tencent/Hy4-flash:fireworks-ai- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $0.07 / $0.281 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
HF_TOKEN- Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1- Kontext
- 524.288 Tokens
- Eingaben
- Text, Bild
- Funktionen
- Tool-Aufrufe, JSON-Ausgabe
- Antwortzeit
- Erstes Token 416 ms · 162 Tokens/s · Verfügbarkeit 99.9 %
- 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:fireworks-ai","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:fireworks-ai",
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:fireworks-ai',
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 · Fireworks kostenlos?
Nein: Hy4-flash · Fireworks ist eine kostenpflichtige API ($0.07 / $0.281 pro Million Tokens).
Wie rufe ich Hy4-flash · Fireworks aus meinem Code auf?
Hy4-flash · Fireworks 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:fireworks-ai. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von Hy4-flash · Fireworks?
Hy4-flash · Fireworks verarbeitet bis zu 524.288 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu Hy4-flash · Fireworks?
Ähnliche APIs im Katalog: Hy4-flash · DeepInfra, Hy4-flash · Pearl Research, Hy4 · Together, Hy4 · DeepInfra, Tencent: Hy4 flash.
Alternativen
- Hy4-flash · DeepInfra — Kostenpflichtig
- Hy4-flash · Pearl Research — 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