{"slug":"lfm-2.5-24b-a2b","name":"LFM2.5-24B-A2B","family":"liquid","family_name":"Liquid AI","developer":"Liquid AI","color":"#9900ff","status":"active","released":"2026-10-13","snapshot_of":null,"open":true,"context":128000,"max_output":8192,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"LiquidAI/LFM2.5-24B-A2B","speed":170,"latency":0.15,"short":"A small, low-priced open-weight text model from Liquid AI with no benchmark results in the registry, so its profile rests on specifications and price.","strengths":["Input costs $0.05 per million tokens, a low price tier","Blended price $0.21 per million tokens, 29th of 194 by price","Supports tool calling, reasoning mode and structured output","Open weights, available through OpenRouter"],"weaknesses":["No benchmark results, so capability cannot be compared with the registry","Only one provider listed, OpenRouter","Popularity rank is 176 of 194"],"best_for":"Low-cost, text-only agent steps that need tool calling or structured output, where benchmark evidence is not required.","long":"LFM2.5-24B-A2B is an open-weight model from Liquid AI, released in October 2026, with a 128k token context window and responses up to 8192 tokens. It accepts text only and supports tool calling, reasoning mode and structured output. The registry holds no benchmark results for it, so any judgement of its capability has to come from its specifications and price rather than measured performance.\n\nPrice is the clearest point in its favour. Input costs $0.05 per million tokens and output $0.70 per million, giving a blended rate of about $0.21 per million tokens against a registry median near $1.01. That places it 29th of 194 on price rank. It is available only through OpenRouter, and its popularity rank is 176 of 194.\n\nA developer weighing it should test it on their own tasks before relying on it, since no measured results are available here.","described":true,"gateway":false,"byok":true,"string":"openrouter:liquid/lfm-2.5-24b-a2b","input":0.05,"output":0.7,"cache_read":0.025,"blended":0.2125,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"liquid/lfm-2.5-24b-a2b","api":["openai"],"input":0.05,"output":0.7,"cache_read":0.025,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":128000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:liquid/lfm-2.5-24b-a2b","gateway_string":null}],"ranks":{"intelligence":null,"popularity":176,"efficiency":null,"speed":11,"price":29},"top_score":0.0333,"about":["A small, low-priced open-weight text model from Liquid AI with no benchmark results in the registry, so its profile rests on specifications and price.","LFM2.5-24B-A2B is an open-weight model from Liquid AI, released in October 2026, with a 128k token context window and responses up to 8192 tokens. It accepts text only and supports tool calling, reasoning mode and structured output. The registry holds no benchmark results for it, so any judgement of its capability has to come from its specifications and price rather than measured performance.","Price is the clearest point in its favour. Input costs $0.05 per million tokens and output $0.70 per million, giving a blended rate of about $0.21 per million tokens against a registry median near $1.01. That places it 29th of 194 on price rank. It is available only through OpenRouter, and its popularity rank is 176 of 194.","A developer weighing it should test it on their own tasks before relying on it, since no measured results are available here."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:liquid/lfm-2.5-24b-a2b', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:liquid/lfm-2.5-24b-a2b', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:liquid/lfm-2.5-24b-a2b',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:liquid/lfm-2.5-24b-a2b')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:liquid/lfm-2.5-24b-a2b'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/liquid/lfm-2.5-24b-a2b'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'liquid/lfm-2.5-24b-a2b' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('liquid/lfm-2.5-24b-a2b'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}