---
title: LFM2 24B A2B API | Text Generation | ModelsLab
description: Build with LFM2 24B A2B API by LiquidAI. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/liquidai-lfm2-24b-a2b.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/liquidai-lfm2-24b-a2b.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T10:35:54.693270Z
---

LFM2-24B-A2B
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/LiquidAI-LFM2-24B-A2B/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/LiquidAI/LiquidAI-LFM2-24B-A2B.md)

LiquidAI-LFM2-24B-A2B LiquidAI Closed Source Model $0.075000 / call

LFM2-24B-A2B
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### LFM2-24B-A2B

LiquidAI LiquidAI-LFM2-24B-A2B

Copy model ID

PricingInput $0.03 / 1M tokens

Output $0.12 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[G4](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-4.7)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [GLM 4.7 Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/zai-org-GLM-4.7)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-8b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 8B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-8b)

[Q7](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-72B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen2.5 72B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen2.5-72B)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-search-preview)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4o Search Preview

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-search-preview)

[NH](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Nous Hermes 2 Mixtral 8X7B Dpo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO)

[MK](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-k2)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [MoonshotAI: Kimi K2 0711

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-k2)

[II](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/inflection-inflection-3-pi)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Inflection: Inflection 3 Pi

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/inflection-inflection-3-pi)

[BS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/bytedance-seed-seed-2.0-lite)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [ByteDance Seed: Seed-2.0-Lite

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/bytedance-seed-seed-2.0-lite)

[MW](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mancer-weaver)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Mancer: Weaver (alpha)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mancer-weaver)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [DeepSeek: R1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1)

[SL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/sao10k-l3.1-euryale-70b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Sao10K: Llama 3.1 Euryale 70B v2.2

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/sao10k-l3.1-euryale-70b)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.5-plus-02-15)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3.5 Plus 2026-02-15

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.5-plus-02-15)

[SM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/sarvamai-sarvam-m)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Sarvam M

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/sarvamai-sarvam-m)

[N3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nvidia-nemotron-3-nano-omni-30b-a3b-reasoning-fp8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Nemotron 3 Nano Omni 30B A3b Reasoning Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nvidia-nemotron-3-nano-omni-30b-a3b-reasoning-fp8)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-30b-a3b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 30B A3B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-30b-a3b)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m2.1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [MiniMax: MiniMax M2.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m2.1)

[GG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-31b-it)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Gemma 4 31B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemma-4-31b-it)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4-turbo)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4 Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4-turbo)

About LFM2-24B-A2B
---

LFM2-24B-A2B is a text generation AI model by LiquidAI available on ModelsLab. Access LFM2-24B-A2B through our API with pay-per-use pricing and no minimum commitments.

### Technical Specifications

Model IDLiquidAI-LFM2-24B-A2BCategoryLLM ModelsTaskText GenerationPrice$0.075000 per million tokensAddedApril 4, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate LFM2-24B-A2B into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "LiquidAI-LFM2-24B-A2B",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/LiquidAI/LiquidAI-LFM2-24B-A2B/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

LFM2-24B-A2B API costs $0.075000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from LiquidAI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

LFM2-24B-A2B FAQ
---

### What is LFM2-24B-A2B?

LFM2-24B-A2B is a text generation AI model by LiquidAI available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.

### How do I use the LFM2-24B-A2B API?

You can integrate LFM2-24B-A2B into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "LiquidAI-LFM2-24B-A2B" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does LFM2-24B-A2B cost?

LFM2-24B-A2B costs $0.075000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the LFM2-24B-A2B model ID?

The model ID for LFM2-24B-A2B is "LiquidAI-LFM2-24B-A2B". Use this ID in your API requests to specify this model.

### Does LFM2-24B-A2B have a free tier?

Yes, ModelsLab offers a free tier that lets you try LFM2-24B-A2B and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-13*