LFM2.5-2.6B API

liquid/lfm-2.5-2.6b
This chat model from Liquid AI utilizes a reasoning-first approach to support complex workflows and data processing tasks.
Context
128K tokens
Input
$0.3703 / 1M
Output
$0.529 / 1M
Released
Aug 11, 2026

Overview

What Is LFM2.5-2.6B API?

LFM2.5-2.6B is a compact chat model developed by Liquid AI. It is engineered to perform reasoning before providing answers to ensure accuracy in complex tasks.

The model supports text to text modalities and is built to handle extensive information through its large context window. It is well suited for specialized data processing and retrieval tasks.

What LFM2.5-2.6B Brings to the Table

Reasoning First

The model consistently reasons before answering to improve output quality.

Large Context Window

It supports a context window of 128K tokens for processing long documents.

Structured Output

The model is capable of generating structured data for integration into workflows.

Tool Integration

It supports tools and streaming to enhance interactive performance.

Use cases

Automating complex agent workflows.

Extracting data from large documents.

Enhancing retrieval augmented generation systems.

Processing long-context information.

How to use LFM2.5-2.6B API

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

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "liquid/lfm-2.5-2.6b",
      "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-2.6b",
    "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-2.6b","messages":[{"role":"user","content":"Hello!"}]}'

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

LFM2.5-2.6B API Pricing

TypePrice
Input
$0.3703 / 1M
Output
$0.529 / 1M
Cached input
$0.04232 / 1M

Billed per token: $0.3703 / 1M input tokens, $0.04232 / 1M cached input tokens and $0.529 / 1M output tokens. Reasoning tokens are billed as output.

Use cases

Automating complex agent workflows.

Extracting data from large documents.

Enhancing retrieval augmented generation systems.

Processing long-context information.

LFM2.5-2.6B vs other models

ModelInputOutputContextBest for
LFM2.5-2.6B
This page
$0.3703 / 1M
$0.529 / 1M
128K tokens
Reasoning tasks and long-context data processing
Varies — the answering model's rate
Varies — the answering model's rate
1.05M tokens
Cutting LLM spend without picking a model
$0.07935 / 1M tokens
$0.529 / 1M tokens
256K tokens
Agentic workflows and structured output
$0.3174 / 1M tokens
$0.529 / 1M tokens
128K tokens
Reasoning + agents
$0.13225 / 1M tokens
$0.529 / 1M tokens
198K tokens
Reasoning + agents

Frequently asked questions

LFM2.5-2.6B costs $0.3703 / 1M for input and $0.529 / 1M for output on AI/ML API. Cached input is billed at $0.04232 / 1M.

The model focuses on reasoning before answering to support complex workflows.

Liquid AI advises against using this model for agentic coding.

The model features a context window of 128K tokens.

LFM2.5-2.6B supports text to text modalities.

Start building with LFM2.5-2.6B

Get API Key
1000+ models, one API.