Back to models
LFM2.5-8B-A1B
Liquid AI's hybrid Mixture-of-Experts model with 8.3B total and 1.5B active parameters, combining gated convolution and attention layers for fast 128K-context on-device reasoning and multi-step tool calling.
What you can do
- Multi-step agentic tool orchestration
- Low-latency structured JSON extraction
- Long-document summarization and QA
Input & output
- Input
- Multilingual text prompts and JSON tool schemas (up to 128K context)
- Output
- Text responses, multi-step reasoning, structured JSON, and tool invocations
Try a prompt like this
Extract all invoice line items, tax rates, and payment deadlines from the following procurement email thread into a validated JSON array.
Things to know
Requires ~17GB VRAM in BF16 or ~6GB in Q4 GGUF; governed by LFM Open License v1.0 (free commercial use only for organizations under $10M USD annual revenue).
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
LiquidAI/LFM2.5-8B-A1B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="LiquidAI/LFM2.5-8B-A1B",
messages=[{"role": "user", "content": "Extract all invoice line items, tax rates, and payment deadlines from the following procurement email thread into a validated JSON array."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide