{"slug":"lfm-3-1.7b","name":"LFM3-1.7B","family":"liquid","family_name":"Liquid AI","developer":"Liquid AI","color":"#9900ff","status":"active","released":"2026-11-06","snapshot_of":null,"open":true,"context":262144,"max_output":8192,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"LiquidAI/LFM3-1.7B","speed":350,"latency":0.27,"short":"A small open-weight text model from Liquid AI, released November 2026, priced among the cheapest in the registry. It has no benchmark results in the registry, so its profile rests on specifications and price.","strengths":["Blended price of $0.11 per million tokens, 8th cheapest of 194","Context window of 262k tokens","Supports tool calling, reasoning mode and structured output","Open weights"],"weaknesses":["No benchmark results recorded, so capability cannot be compared","Available only through OpenRouter","Popularity rank of 162 of 194"],"best_for":"Low-cost, high-volume text tasks in agents that need tool calling or structured output and do not require verified benchmark performance.","long":"LFM3-1.7B is an open-weight text model from Liquid AI, released in November 2026. Its main appeal in this registry is price: a blended cost of $0.11 per million tokens places it 8th cheapest of 194 models, well below the registry median of about $1.01. Input costs $0.08 per million tokens and output costs $0.20 per million tokens.\n\nThe specifications are broader than the size of the model suggests. It accepts text only, offers a context window of 262k tokens and can return up to 8k tokens per response. It supports tool calling, reasoning mode and structured output. Its knowledge cutoff is not recorded.\n\nThe registry holds no benchmark results for this model, so its intelligence cannot be compared with other models. It is available only through OpenRouter and ranks 162 of 194 on popularity. Anyone choosing it should test it on their own task before relying on it.","described":true,"gateway":false,"byok":true,"string":"openrouter:liquid/lfm-3-1.7b","input":0.08,"output":0.2,"cache_read":0.02,"blended":0.11,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"liquid/lfm-3-1.7b","api":["openai"],"input":0.08,"output":0.2,"cache_read":0.02,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:liquid/lfm-3-1.7b","gateway_string":null}],"ranks":{"intelligence":null,"popularity":162,"efficiency":null,"speed":3,"price":8},"top_score":0.0667,"about":["A small open-weight text model from Liquid AI, released November 2026, priced among the cheapest in the registry. It has no benchmark results in the registry, so its profile rests on specifications and price.","LFM3-1.7B is an open-weight text model from Liquid AI, released in November 2026. Its main appeal in this registry is price: a blended cost of $0.11 per million tokens places it 8th cheapest of 194 models, well below the registry median of about $1.01. Input costs $0.08 per million tokens and output costs $0.20 per million tokens.","The specifications are broader than the size of the model suggests. It accepts text only, offers a context window of 262k tokens and can return up to 8k tokens per response. It supports tool calling, reasoning mode and structured output. Its knowledge cutoff is not recorded.","The registry holds no benchmark results for this model, so its intelligence cannot be compared with other models. It is available only through OpenRouter and ranks 162 of 194 on popularity. Anyone choosing it should test it on their own task before relying on it."],"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-3-1.7b', 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-3-1.7b', 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-3-1.7b',\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-3-1.7b')\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-3-1.7b'","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-3-1.7b'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'liquid/lfm-3-1.7b' \\\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-3-1.7b'),\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}}