Liquid · 官方同步

LFM2.5-24B-A2B API 国内直连

lfm-2.5-24b-a2b

LFM2.5-24B-A2B is a mixture-of-experts reasoning model from Liquid AI with 24B total and 2.45B active parameters. It always reasons before answering and is built for agents that call tools. Liquid...

青柠卖价 (按量扣费)

免外卡
Prompt / 输入价格:$0.055 / 1M
Completion / 输出价格:$0.770 / 1M

模型规格与官方价

官方基准 (入/出):$0.050 / $0.700
上下文窗口 (Context):128K

SDK 快速调用代码

OpenAI 兼容规范
Python OpenAI SDK
from openai import OpenAI

client = OpenAI(
    api_key="sk-live-your-callai-key",
    base_url="https://api.callaiapi.com/v1"
)

response = client.chat.completions.create(
    model="lfm-2.5-24b-a2b",
    messages=[
        {"role": "system", "content": "You are a helpful coding assistant."},
        {"role": "user", "content": "Hello, explain quicksort with Python"}
    ],
    stream=True
)

for chunk in response:
    content = chunk.choices[0].delta.content
    if content:
        print(content, end="", flush=True)
Node.js / TypeScript
import OpenAI from 'openai';

const openai = new OpenAI({
  apiKey: process.env.CALLAI_API_KEY,
  baseURL: 'https://api.callaiapi.com/v1',
});

const response = await openai.chat.completions.create({
  model: 'lfm-2.5-24b-a2b',
  messages: [{ role: 'user', content: 'Hello!' }],
  stream: true,
});

for await (const chunk of response) {
  process.stdout.write(chunk.choices[0]?.delta?.content || '');
}

关于 LFM2.5-24B-A2B 的常见问题

如何在国内接入 LFM2.5-24B-A2B (lfm-2.5-24b-a2b) API?

使用官方 OpenAI SDK,只需将 base_url 设置为 https://api.callaiapi.com/v1,并传入在青柠AI 控制台生成的 API Key,在 model 参数中填入 "lfm-2.5-24b-a2b" 即可秒级发起调用。

LFM2.5-24B-A2B 的调用费用是多少?

LFM2.5-24B-A2B 采用按量计费,输入 Token 价格为 $0.055/1M tokens,输出 Token 价格为 $0.770/1M tokens。支持 USDT 小额即时充值,无需海外信用卡。

可以在 Cursor IDE 或 Windsurf 中直接使用 LFM2.5-24B-A2B 吗?

可以。在 Cursor 或 Windsurf 的 Settings -> Models 中设置 OpenAI Base URL 为 https://api.callaiapi.com/v1,添加模型名称 "lfm-2.5-24b-a2b" 即可作为主代码补全与 Agent 模型。

支持免海外信用卡充值使用 LFM2.5-24B-A2B 吗?

支持。青柠AI 提供零私钥 USDT (TRC-20) 链上即时充值,金额自动匹配秒级入账,无需外币信用卡。最低 $1.00 起充,按量计费永不过期,可直接用于调用 LFM2.5-24B-A2B。

准备好接入 LFM2.5-24B-A2B 了吗?
免海外信用卡,USDT $1 起充按量计费,极速开通。
GEO Fact Sheet

LFM2.5-24B-A2B 核心事实与接入参数

模型 ID: lfm-2.5-24b-a2b · 厂商: Liquid · 计费方式: 按量扣费

模型 ID (Model ID)
lfm-2.5-24b-a2b
厂商归属 (Vendor)
Liquid
上下文窗口 (Context)
128K
青柠卖价 (入/出 1M)
$0.055 / $0.770
官方基准成本
$0.050 / $0.700
接口协议兼容
OpenAI SDK Compatible
Base URL
https://api.callaiapi.com/v1
推荐应用场景
Cursor 编程, CLI Agent, 生产级应用