Liquid: LFM2.5 24B A2B

lfm-2.5-24b-a2b

Liquid AI's text-only mixture-of-experts model for reasoning and tool-using agents, with 24B total and 2.45B active parameters. It always thinks before answering and supports structured output. Pair it with retrieval for knowledge-heavy tasks. Open weights use the LFM Open License v1.0, with a $10M annual-revenue commercial threshold; hosted API use is subject to separate service terms that permit retention and use of prompts and responses for model training.

模态

文本 → 文本

输入 / 输出价

$0.065 / $0.910 每 1M

上下文

128K · 最长输出 8K

能力

思考工具调用

价格

按实际 token 计费,从余额中扣除。人民币按 1 美元 ≈ 7.2 元折算,仅供参考。

计费项美元 / 1M token人民币参考
输入$0.065¥0.47
输出$0.910¥6.55
缓存命中(输入)$0.0325¥0.23

试算

拖动滑块估算这个模型的花费。

单次
$0.00092
每天
$0.4615
每月(30 天)
$13.85≈ ¥100

LFM2.5 24B A2B:输入 $0.065/M · 输出 $0.91/M · 缓存命中 $0.0325/M

按这个配置调用
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "lfm-2.5-24b-a2b", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

接入代码

兼容 OpenAI 接口。把 Base URL 换成 https://api.geniusrelaygpt.com/v1,模型名填 lfm-2.5-24b-a2b。

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "lfm-2.5-24b-a2b",
    "stream": true,
    "messages": [{"role": "user", "content": "你好"}]
  }'

在客户端里用:Cursor · Cline · 酒馆 · Codex

支持的参数

常用 OpenAI 参数都可以直接传。

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

常见问题

LFM2.5 24B A2B 怎么计费?
输入 $0.065、输出 $0.910 每百万 token,命中缓存的输入按 $0.0325 计。每次请求的扣费都能在控制台使用日志里查到。
上下文有多长?
128K token。长对话每一轮都会按全部输入 token 计费,注意控制历史长度。
支持流式输出吗?
支持。请求里加 "stream": true,返回 SSE,格式与 OpenAI 一致。