LFM2.5-24B-A2B API

liquid/lfm-2.5-24b-a2b
A 24B-parameter MoE reasoning model with 2B active parameters, suited to fast on-device agents
Context
128K tokens
Input
$0.13754 / 1M tokens
Output
$1.3754 / 1M tokens
Released
Oct 13, 2026

Overview

What Is LFM2.5-24B-A2B API?

LFM2.5-24B-A2B is an open-weight Mixture-of-Experts reasoning model developed by Liquid AI for fast, private agents running on-device.

The model always produces an explicit reasoning trace before its final answer and is post-trained for tool calling and multi-step agentic tasks.

Technical Reference

DeveloperLiquidAI
Model IDliquid/lfm-2.5-24b-a2b
Release DateOctober 13, 2026
Context Window128,000 tokens (~128K)
Max Output Tokens8,192 tokens
ModalitiesText → Text
Capabilitiesreasoning, streaming, structured (JSON schema) output, tool/function calling

What LFM2.5-24B-A2B Brings to the Table

Sparse MoE design
The model has 24B total parameters with 2B active parameters per token.

Explicit reasoning
LFM2.5-24B-A2B always thinks before answering, using a <think> tag in its chat template.

Tool calling
The model supports tool calling and can interpret tool outputs before producing a final answer.

Open weights
The base and post-trained model versions are open-weight and available through Hugging Face and Liquid AI's Playground.

API Pricing

  • Input: $0.13754 / 1M tokens
  • Output: $1.3754 / 1M tokens
  • Cached input: $0.06877 / 1M tokens

Where LFM2.5-24B-A2B Makes the Most Sense

On-device agents
Its sparse architecture and on-device focus make it suitable for private agents running on local hardware.

Multi-step automation
The model is post-trained for tool calling and multi-step agentic tasks.

Structured tool workflows
It can generate function calls, execute tool-assisted workflows, and return a final response based on tool output.

Sources: https://www.liquid.ai/blog/lfm2-5-24b-a2b · https://docs.liquid.ai/lfm/models/lfm25-24b-a2b · https://huggingface.co/LiquidAI/LFM2.5-24B-A2B

Use cases

Fast, private on-device agents that reason through multi-step tasks and call tools reliably, including agents running continuously on local hardware.

Knowledge-heavy applications that combine the model with retrieval or web search.

Local document-processing workflows, such as extracting text, comparing documents, and generating PDFs.

Security and compliance workflows, including scanning files for leaked credentials or personal data and producing audit trails for tool calls.

How to use LFM2.5-24B-A2B API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to liquid/lfm-2.5-24b-a2b.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "liquid/lfm-2.5-24b-a2b",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "liquid/lfm-2.5-24b-a2b",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"liquid/lfm-2.5-24b-a2b","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

LFM2.5-24B-A2B API Pricing

TypePrice
Input
$0.13754 / 1M tokens
Output
$1.3754 / 1M tokens
Cached input
$0.06877 / 1M tokens

Liquid Console offers $2 in signup credit, and cached input is billed at a lower rate than uncached input.

LFM2.5-24B-A2B Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
AutomationBench
27.69
Completion of routine automation workflowsSourceOctober 13, 2026
GPQA Diamond
74.42
Google-proof graduate science questions (hardest subset)SourceOctober 13, 2026

The primary published source is Liquid AI’s official announcement, “LFM2.5-24B-A2B: Built for Fast On-Device Agents.”[1 Source: https://www.liquid.ai/blog/lfm2-5-24b-a2b

Frequently asked questions

No items found.

Start building with LFM2.5-24B-A2B

Get API Key
1000+ models, one API.