# Liquid AI: lfm-3-1.7b

LFM3-1.7B is Liquid AI's text-only model for local agents and specialized applications, with about 1.7 billion parameters. It is post-trained for agentic harnesses, runs on phones and laptops at 4-bit precision, and can be fine-tuned for specific domains and tools.

- **Model id:** `opencheap/lfm-3-1.7b`
- **Price per 1M tokens:** $0.084 input / $0.21 output
- **Cached input:** $0.021 per 1M tokens
- **Context:** 262K tokens

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/lfm-3-1.7b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/lfm-3-1.7b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/lfm-3-1.7b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/lfm-3-1.7b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About lfm-3-1.7b

lfm-3-1.7b costs $0.084 per 1M input tokens and $0.21 per 1M output tokens on OpenCheap, with cached input at $0.021 per 1M tokens. Its list price is $0.08 per 1M input tokens and $0.20 per 1M output tokens; on a typical 1 : 3 input-to-output mix it costs 5 % more here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.001, and 1,000 such requests about $1.05. Prices as of 2026-12-04 12:01 UTC.

Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

lfm-3-1.7b is one of [7 Liquid AI models](https://opencheap.si/models/lab/liquid-ai) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the lfm-3-1.7b API cost per 1M tokens?

lfm-3-1.7b costs $0.084 per 1M input tokens and $0.21 per 1M output tokens on OpenCheap, with cached input at $0.021 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one lfm-3-1.7b request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.001, and 1,000 such requests about $1.05. Every answer reports its own cost in usage.cost.

### Is lfm-3-1.7b cheaper on OpenCheap than its list price?

Its list price is $0.08 per 1M input tokens and $0.20 per 1M output tokens; on a typical 1 : 3 input-to-output mix it costs 5 % more here.

### What is the context window of lfm-3-1.7b?

Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

### How do I call the lfm-3-1.7b API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/lfm-3-1.7b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Liquid AI

- [LFM2.5 2.6B](https://opencheap.si/models/lfm-2.5-2.6b) (`lfm-2.5-2.6b`): $0.10 / $0.20 per 1M · 8.1K context
- [LFM2.5 24B A2B](https://opencheap.si/models/lfm-2.5-24b-a2b) (`lfm-2.5-24b-a2b`): $0.047 / $0.66 per 1M · 128K context
- [d1-ultra](https://opencheap.si/models/d1-ultra) (`d1-ultra`): $0.048 per 1M input · 32K context
- [d1.2](https://opencheap.si/models/d1.2) (`d1.2`): $0.023 per 1M input · 65K context
- [d1.2-ultra](https://opencheap.si/models/d1.2-ultra) (`d1.2-ultra`): $0.048 per 1M input · 65K context
- [d1.3-ultra](https://opencheap.si/models/d1.3-ultra) (`d1.3-ultra`): $0.048 per 1M input · 65K context

[All 7 Liquid AI models](https://opencheap.si/models/lab/liquid-ai)

## Similar models

- [GLM 4.6](https://opencheap.si/models/glm-4.6): Zhipu · 202K context · $0.044 / $0.18 per 1M, 18 % cheaper · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-glm-4.6)
- [GLM 4.7](https://opencheap.si/models/glm-4.7): Zhipu · 202K context · $0.032 / $0.14 per 1M, 37 % cheaper · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-glm-4.7)
- [Hy3](https://opencheap.si/models/hy3): Tencent · 262K context · $0.066 / $0.26 per 1M · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-hy3)
- [lfm3-1.7b](https://opencheap.si/models/lfm3-1.7b): Other labs · 262K context · $0.08 / $0.20 per 1M · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-lfm3-1.7b)
- [Laguna Xs 2.1](https://opencheap.si/models/laguna-xs-2.1): Poolside · 262K context · $0.10 / $0.20 per 1M · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-laguna-xs-2.1)
- [DeepSeek V3.2](https://opencheap.si/models/deepseek-v3.2): DeepSeek · 163K context · $0.22 / $0.34 per 1M · [Compare with lfm-3-1.7b](https://opencheap.si/compare/lfm-3-1.7b-vs-deepseek-v3.2)

[Compare lfm-3-1.7b with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/lfm-3-1.7b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
