API des Modells LiquidAI/LFM2.5-24B-A2B:liquid bei Hugging Face Inference, $0.05 / $0.7 pro Million Tokens, Kontext 128.000 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
LiquidAI/LFM2.5-24B-A2B served by Liquid through the Hugging Face router.
- Typ
- Modell
- Anbieter
- Hugging Face Inference
- Hosting
- Liquid
- Modell-ID
LiquidAI/LFM2.5-24B-A2B:liquid- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $0.05 / $0.7 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
HF_TOKEN- Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1- Kontext
- 128.000 Tokens
- Eingaben
- Text
- Funktionen
- Tool-Aufrufe, JSON-Ausgabe
- Antwortzeit
- Erstes Token 183 ms · 410.5 Tokens/s · Verfügbarkeit 100 %
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://huggingface.co/LiquidAI/LFM2.5-24B-A2B
Codebeispiele
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"LiquidAI/LFM2.5-24B-A2B:liquid","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="LiquidAI/LFM2.5-24B-A2B:liquid",
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: 'LiquidAI/LFM2.5-24B-A2B:liquid',
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 LFM2.5-24B-A2B · Liquid kostenlos?
Nein: LFM2.5-24B-A2B · Liquid ist eine kostenpflichtige API ($0.05 / $0.7 pro Million Tokens).
Wie rufe ich LFM2.5-24B-A2B · Liquid aus meinem Code auf?
LFM2.5-24B-A2B · Liquid bietet eine OpenAI-kompatible API unter https://router.huggingface.co/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: LiquidAI/LFM2.5-24B-A2B:liquid. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von LFM2.5-24B-A2B · Liquid?
LFM2.5-24B-A2B · Liquid verarbeitet bis zu 128.000 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu LFM2.5-24B-A2B · Liquid?
Ähnliche APIs im Katalog: LFM3-1.7B · Liquid.
Alternativen
- LFM3-1.7B · Liquid — Kostenpflichtig