API for the model LiquidAI/LFM2.5-24B-A2B:liquid at Hugging Face Inference, $0.05 / $0.7 per million tokens, context 128,000 tokens. curl, Python and JavaScript samples, live testing.
LiquidAI/LFM2.5-24B-A2B served by Liquid through the Hugging Face router.
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- Liquid
- Model ID
LiquidAI/LFM2.5-24B-A2B:liquid- Pricing
- Paid
- Input / output price
- $0.05 / $0.7 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 128,000 tokens
- Inputs
- Text
- Features
- Tool calling, JSON output
- Response time
- First token 183 ms · 410.5 tokens/s · uptime 100%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/LiquidAI/LFM2.5-24B-A2B
Code samples
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":"Hello, introduce yourself in one sentence."}]}'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": "Hello, introduce yourself in one sentence."}],
)
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: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the LFM2.5-24B-A2B · Liquid API free?
No: LFM2.5-24B-A2B · Liquid is a paid API ($0.05 / $0.7 per million tokens).
How do I call LFM2.5-24B-A2B · Liquid from my code?
LFM2.5-24B-A2B · Liquid exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: LiquidAI/LFM2.5-24B-A2B:liquid. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of LFM2.5-24B-A2B · Liquid?
LFM2.5-24B-A2B · Liquid accepts up to 128,000 tokens of context (prompt and history).
What are the alternatives to LFM2.5-24B-A2B · Liquid?
Similar APIs listed in the catalog: LFM3-1.7B · Liquid.
Alternatives
- LFM3-1.7B · Liquid — Paid