[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [LFM3-1.7B](https://spiral.ai/integrations/gemini/lfm3-1-7b)

# How to Use LFM3-1.7B in Gemini

LFM3-1.7B suits focused text tasks, tool calling, and structured output with a 256K-token context window. Liquid AI advises against using it for agentic coding or complex multistep reasoning.

|  |  |
| --- | --- |
| Model | LFM3-1.7B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001069 per run at the default inputs. $0.104 per 1M input tokens, $0.26 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with LFM3-1.7B in Gemini

- Use LFM3-1.7B to classify the messages I provide as cancellation, delivery question, product question, or uncertain. Return one category and a supporting quote for each message.
- Use LFM3-1.7B to extract the customer name, order number, requested action, and stated deadline from the text I provide. Return JSON and use null for missing details.
- Use LFM3-1.7B to answer my question using only the reference excerpts I provide. Keep the answer under 150 words, quote the supporting passage, and identify anything the excerpts do not establish.
- Use LFM3-1.7B to label the intent of the English and Spanish customer messages I provide. Use billing, delivery, cancellation, or uncertain, and preserve the original text beside each label.
- Use LFM3-1.7B with temperature set to 0.1 to extract commitments from the conversation text I provide. List the person, promised action, and stated deadline; mark missing details as unknown.

## How to set up LFM3-1.7B in Gemini

Pick the way that suits you. Each takes about two minutes.

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run LFM3-1.7B**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openrouter",
    "model": "liquid/lfm-3-1.7b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Gemini finds LFM3-1.7B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## LFM3-1.7B tools and prices

- [LiquidAI: LFM3-1.7B](https://spiral.ai/tools/openrouter/liquid/lfm-3-1.7b) (OpenRouter): Up to $0.001069 per run at the default inputs. $0.104 per 1M input tokens, $0.26 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |

## What can you do with LFM3-1.7B in Gemini?

Turn messages and reference excerpts into labeled records or concise answers with LFM3-1.7B. Supply the relevant text and define the result you need.

### Support request triage

Ask LFM3-1.7B to label each request using your queue definitions and quote the words that justify the label.

### Structured record extraction

Turn order messages or intake notes into JSON with LFM3-1.7B. Specify the required fields and use null for missing information.

### Answers from supplied reference text

Give LFM3-1.7B relevant help-center excerpts and ask for a short answer with supporting passages and any information still missing.

### Tool selection for routine lookups

Ask LFM3-1.7B to select a lookup tool for an order or inventory question, then explain the returned result.

### Issue labeling

Have LFM3-1.7B classify issue descriptions against a fixed taxonomy, returning an uncertainty label when the text does not establish a category.

### Multilingual message routing

Use LFM3-1.7B to label intent in messages written in its supported languages, keeping the original wording beside each classification for review.

### Log detail extraction

Ask LFM3-1.7B to extract timestamps, error codes, and affected services from log text into records without inferring a root cause.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## LFM3-1.7B in other agents

- [Amp](https://spiral.ai/integrations/amp/lfm3-1-7b)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/lfm3-1-7b)
- [Claude](https://spiral.ai/integrations/claude-desktop/lfm3-1-7b)
- [Claude Code](https://spiral.ai/integrations/claude-code/lfm3-1-7b)
- [Cline](https://spiral.ai/integrations/cline/lfm3-1-7b)
- [Codex](https://spiral.ai/integrations/codex/lfm3-1-7b)
- [Cursor](https://spiral.ai/integrations/cursor/lfm3-1-7b)
- [Devin](https://spiral.ai/integrations/devin/lfm3-1-7b)
- [dots](https://spiral.ai/integrations/dots/lfm3-1-7b)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/lfm3-1-7b)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/lfm3-1-7b)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/lfm3-1-7b)
- [goose](https://spiral.ai/integrations/goose/lfm3-1-7b)
- [Grok](https://spiral.ai/integrations/grok/lfm3-1-7b)
- [Grok Build](https://spiral.ai/integrations/grok-build/lfm3-1-7b)
- [Hermes](https://spiral.ai/integrations/hermes/lfm3-1-7b)
- [Instinct](https://spiral.ai/integrations/instinct/lfm3-1-7b)
- [Manus](https://spiral.ai/integrations/manus/lfm3-1-7b)
- [Muse](https://spiral.ai/integrations/muse/lfm3-1-7b)
- [Muse Code](https://spiral.ai/integrations/muse-code/lfm3-1-7b)
- [n8n](https://spiral.ai/integrations/n8n/lfm3-1-7b)
- [Notion](https://spiral.ai/integrations/notion/lfm3-1-7b)
- [OpenClaw](https://spiral.ai/integrations/openclaw/lfm3-1-7b)
- [opencode](https://spiral.ai/integrations/opencode/lfm3-1-7b)
- [Perplexity](https://spiral.ai/integrations/perplexity/lfm3-1-7b)
- [Raycast](https://spiral.ai/integrations/raycast/lfm3-1-7b)
- [VS Code](https://spiral.ai/integrations/vscode/lfm3-1-7b)
- [Windsurf](https://spiral.ai/integrations/windsurf/lfm3-1-7b)
- [Zapier](https://spiral.ai/integrations/zapier/lfm3-1-7b)

## More Gemini guides

- [LFM2.5-24B-A2B](https://spiral.ai/integrations/gemini/lfm2-5-24b-a2b)
- [Ling 3.0 Flash](https://spiral.ai/integrations/gemini/ling-3-0-flash)
- [Kimi Latest](https://spiral.ai/integrations/gemini/kimi-latest)
- [Ling 3.0 Flash VL](https://spiral.ai/integrations/gemini/ling-3-0-flash-vl)
- [Kimi K3.1 Pro (batch)](https://spiral.ai/integrations/gemini/kimi-k3-1-pro-batch)
- [Ling 3.0 Tiny](https://spiral.ai/integrations/gemini/ling-3-0-tiny)

## Questions about LFM3-1.7B in Gemini

**Can Gemini use LFM3-1.7B?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run LFM3-1.7B like any built-in tool.

**How much does LFM3-1.7B cost in Gemini?**

Up to $0.001069 per run at the default inputs. $0.104 per 1M input tokens, $0.26 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.

**Do I need an OpenRouter account to use LFM3-1.7B in Gemini?**

No. Spiral runs LFM3-1.7B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up LFM3-1.7B in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while LFM3-1.7B runs?**

LFM3-1.7B runs in the background. Gemini starts the run, checks on it and gives you the text, json when it's ready.

**What is LFM3-1.7B best suited to?**

Use it for focused tasks such as extracting records, labeling requests, producing structured output, and selecting tools. Give it a clear task and a specific result to return.

**How much text can LFM3-1.7B handle?**

Its context window holds 256K tokens across input and output combined. Leave room for the response when supplying long text.

**Which languages does LFM3-1.7B support?**

Liquid AI lists English, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian, and Polish. Test your own terminology and examples before using it for a language-specific workflow.

**Is LFM3-1.7B suitable for autonomous coding?**

Liquid AI advises against agentic coding and complex multistep reasoning. In a coding assistant, keep requests bounded, such as extracting details from logs or classifying issues against supplied rules.

**Which sampling settings should I start with?**

Liquid AI's generation example uses temperature 0.1 and top-k 50. Start there for focused text tasks, then compare results against examples you have already checked.

