TensaHub › Hugging Face Inference

LFM3-1.7B · Liquid

API des Modells LiquidAI/LFM3-1.7B:liquid bei Hugging Face Inference, $0.08 / $0.2 pro Million Tokens, Kontext 262.144 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.

Im Katalog testen und bewerten

LiquidAI/LFM3-1.7B served by Liquid through the Hugging Face router.

Typ
Modell
Anbieter
Hugging Face Inference
Hosting
Liquid
Modell-ID
LiquidAI/LFM3-1.7B:liquid
Preis
Kostenpflichtig
Preis Eingabe / Ausgabe
$0.08 / $0.2 pro Million Tokens
Zugang ohne Schlüssel
Nein
Schlüsselvariable
HF_TOKEN
Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1
Kontext
262.144 Tokens
Eingaben
Text
Funktionen
Tool-Aufrufe, JSON-Ausgabe
Antwortzeit
Erstes Token 223 ms · 308 Tokens/s · Verfügbarkeit 100 %
Entwicklerbewertung
Noch nicht bewertet
Dokumentation
https://huggingface.co/LiquidAI/LFM3-1.7B

Codebeispiele

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"LiquidAI/LFM3-1.7B: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/LFM3-1.7B: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/LFM3-1.7B:liquid',
  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 LFM3-1.7B · Liquid kostenlos?

Nein: LFM3-1.7B · Liquid ist eine kostenpflichtige API ($0.08 / $0.2 pro Million Tokens).

Wie rufe ich LFM3-1.7B · Liquid aus meinem Code auf?

LFM3-1.7B · 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/LFM3-1.7B:liquid. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.

Wie groß ist das Kontextfenster von LFM3-1.7B · Liquid?

LFM3-1.7B · Liquid verarbeitet bis zu 262.144 Tokens Kontext (Nachricht und Verlauf).

Welche Alternativen gibt es zu LFM3-1.7B · Liquid?

Ähnliche APIs im Katalog: LFM2.5-24B-A2B · Liquid.

Alternativen