---
title: LOFI V2.1 API – Run Online | SD 1.5 Checkpoint
description: LOFI V2.1 is an SD 1.5 Checkpoint. Run it online with the API & playground. $0.0047 per image.
url: https://modelslab.com/models/modelslab/lofi-v21.md
canonical: https://modelslab.com/models/modelslab/lofi-v21
type: product
component: Playground/Endpoint/Index
generated_at: 2026-11-16T06:58:06.719994Z
---

[![LOFI - V2.1 thumbnail](https://assets.modelslab.ai/api-logos/01KPMZY676ZM0Z7YJWBM9C78QP.png)](https://modelslab.com/models/modelslab)LOFI - V2.1
---

Hosted on ModelsLab

Generate photorealistic and imaginative images from text prompts with advanced detail, inpainting, and image-to-image translation features, ideal for creatives and marketers.

`lofi-v21`

Open Source Model [Unlimited Usage](https://modelslab.com/pricing) [LLMs.txt](https://modelslab.com/models/modelslab/lofi-v21/llms.txt)

[API Playground](/models/modelslab/lofi-v21)API DocumentationVibe CodeRelated ModelsDeveloper SupportModel SpecsEnterprise Deployment

Input
---

Prompt 

a cozy wooden cabin beside a calm mountain lake at sunrise, pine forest, soft golden light, mist over the water, highly detailed, sharp focus, professional photography

Model 

LoRA Model 

HuggingFaceLibrary

Select models...

Width 

Height 

Advanced Settings Customize your input with more control.

**$0.0047** per image generation

Login to Generate

Output
---

Sample

![Generated Content](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/47978501-be91-4712-e452-299f7f834000/width=512/491392.jpeg)

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

![Nano Banana Pro API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/5ee72f26-dfa9-4d26-a546-7d496ef71be7.webp)

[Google](/models/google)

 [Nano Banana Pro](/models/google/nano-banana-pro?config=nano-banana-pro-text2image)Closed Source Model

![Flux 3 Klein Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/eeded1dc-53f1-4aab-972b-8c9a4a8304b4.webp)

[ModelsLab](/models/modelslab) Popular

 [Flux 3 Klein Text To Image](/models/modelslab/flux-3-klein)Open Source Model

![Gen4 Text to Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b656bfe5-c402-456b-9980-f7447198887d.webp)

[Runway ML](/models/runway_ml)

 [Gen4 Text to Image](/models/runway_ml/gen4_image)Closed Source Model

![Grok Imagine Image 2.0 Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/36454d6f-dd19-4a92-b618-d9332263045f.webp)

[xAI](/models/xai)

 [Grok Imagine Image 2.0 Text To Image](/models/x-ai/grok-imagine-image-2.0-t2i)Closed Source Model

![Seedream 5.0 Pro Text To Image  API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/280db637-e26a-4621-a7ea-572ca88c7876.png)

[BytePlus](/models/byteplus)

 [Seedream 5.0 Pro Text To Image](/models/byteplus/seedream-5.0-pro-t2i)Closed Source Model

![Nano Banana 2.1 Text To Image  API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/f44e6b5c-f64c-456a-b63f-8fae5728b0f1.webp
)

[Google](/models/google)

 [Nano Banana 2.1 Text To Image](/models/google/gemini-nano-banana-2.1-t2i)Closed Source Model

### Faster Generation

Built for speed when you are iterating on a prompt.

![Grok Imagine Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/77fe7302-eee2-45bd-baae-45d2a822b52f.webp)

[xAI](/models/xai)

 [Grok Imagine Text To Image](/models/xai/grok-imagine-image-t2i)

![Wan 2.7 Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/aba76d25-b19c-4fee-9123-4cbb29e71646.webp)

[Alibaba](/models/alibaba_cloud)

 [Wan 2.7 Text To Image](/models/alibaba_cloud/wan-2.7-t2i)

Related Models
---

Discover similar models you might be interested in

 [View all Models](https://modelslab.com/models)

![Kazamatsuri Ren | Shadowverse Flame | シャドウバース フレイム - v1.0 API](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/2b284fa3-156f-45af-8553-94cf2fe210e0/width=512/80011324.jpeg)

[ModelsLab](/models/modelslab)

 [Kazamatsuri Ren | Shadowverse Flame | シャドウバース フレイム - v1.0](/models/modelslab/kazamatsurirenshadowverseflame-v10)

![M&D_4.0 API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/484985dc-4b21-4a25-9d7c-6c8782f061b7-0.png)

[ModelsLab](/models/modelslab)

 [M&D\_4.0](/models/modelslab/md40)

![Romeo Guro Dresses - v1.0 API](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/24bd71c5-ef81-4648-970d-024ee13d799d/width=1024/6500159.jpeg)

[ModelsLab](/models/modelslab)

 [Romeo Guro Dresses - v1.0](/models/modelslab/romeo-guro-dresses-v1-0)

![baka2 API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/3f3ef8fc-64d8-46bf-8db4-07703e294807-0.png)

[ModelsLab](/models/modelslab)

 [baka2](/models/modelslab/baka2)

![Skin & Hands (male/female) from Polyhedron API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/0619c1b3-6793-44f3-9524-2ef4f4b5c734-0.png)

[ModelsLab](/models/modelslab)

 [Skin & Hands (male/female) from Polyhedron](/models/modelslab/skin-hands-malefemale-fro)

![Instant Photo Lora API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fdd16bd7-fe75-47af-9f1f-53f6848024d5-0.png)

[ModelsLab](/models/modelslab)

 [Instant Photo Lora](/models/modelslab/instant-photo-lora)

View all 18 related models

About LOFI - V2.1
---

LOFI - V2.1 is an SD 1.5 Checkpoint, available on ModelsLab through the API and the playground above. API access starts at $21/month, and open-source models are unlimited on the $149/month plan.

### LOFI - V2.1 facts

Base modelSD 1.5

TypeCheckpoint

Price$0.0047 per image

Added to ModelsLabMay 22, 2025

Model IDlofi-v21

### Quick Start

Integrate LOFI - V2.1 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<div>import requests</div>
<div>import json</div>
<div>
</div>
<div>url = "https://modelslab.com/api/v6/images/text2img"</div>
<div>
</div>
<div>headers = {</div>
<div>    "Content-Type": "application/json"</div>
<div>}</div>
<div>
</div>
<div>data = {</div>
<div>        "model_id": "lofi-v21",</div>
<div>        "prompt": "a cozy wooden cabin beside a calm mountain lake at sunrise, pine forest, soft golden light, mist over the water, highly detailed, sharp focus, professional photography",</div>
<div>        "key": "YOUR_API_KEY"</div>
<div>    }</div>
<div>
</div>
<div>try:</div>
<div>    response = requests.post(url, headers=headers, json=data)</div>
<div>    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)</div>
<div>    result = response.json()</div>
<div>    print("API Response:")</div>
<div>    print(json.dumps(result, indent=2))</div>
<div>except requests.exceptions.HTTPError as http_err:</div>
<div>    print(f"HTTP error occurred: {http_err} - {response.text}")</div>
<div>except Exception as err:</div>
<div>    print(f"Other error occurred: {err}")</div>
```

const requestBody = {

 "model_id": "lofi-v21",

 "prompt": "a cozy wooden cabin beside a calm mountain lake at sunrise, pine forest, soft golden light, mist over the water, highly detailed, sharp focus, professional photography",

 "key": "YOUR_API_KEY"

 };

async function makeApiRequest() {

 try {

 const response = await fetch(endpointUrl, {

 method: 'POST',

 headers: {

 'Content-Type': 'application/json',

 },

 body: JSON.stringify(requestBody)

 });

 if (!response.ok) {

 let errorResult;

 try {

 errorResult = await response.json();

 } catch (e) {

 errorResult = { error: { message: await response.text() } };

 }

 throw new Error(`API Error (${response.status}): ${errorResult.error?.message || response.statusText || 'Unknown error'}`);

 }

 const result = await response.json();

 console.log('API Response:', result);

 return result;

 } catch (error) {

 console.error('Error making API request:', error.message);

 throw error;

 }

}

makeApiRequest();

 -H "Content-Type: application/json" \

 -d '{

 "model_id": "lofi-v21",

 "prompt": "a cozy wooden cabin beside a calm mountain lake at sunrise, pine forest, soft golden light, mist over the water, highly detailed, sharp focus, professional photography",

 "key": "YOUR_API_KEY"

}'

$url = 'https://modelslab.com/api/v6/images/text2img';

$headers = [

 'Content-Type: application/json'

];

$data = [

 'model_id' => 'lofi-v21',

 'prompt' => 'a cozy wooden cabin beside a calm mountain lake at sunrise, pine forest, soft golden light, mist over the water, highly detailed, sharp focus, professional photography',

 'key' => 'YOUR_API_KEY',

];

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

$response = curl_exec($ch);

$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

$curlError = curl_error($ch);

if ($curlError) {

 echo 'Curl error: ' . $curlError;

} else {

 echo "HTTP Status Code: " . $httpCode . "\n";

 $result = json_decode($response, true);

 if (json_last_error() !== JSON_ERROR_NONE) {

 echo "Error decoding JSON: " . json_last_error_msg() . "\n";

 echo "Raw response: " . $response . "\n";

 } else {

 echo "API Response:\n";

 print_r($result);

 }

}

?>

### Pricing

LOFI - V2.1 API costs $0.0047 per API call. Plans start at $21/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

[Browse All Models](https://modelslab.com/models) [More from ModelsLab](https://modelslab.com/models/modelslab) [View Pricing](https://modelslab.com/pricing)

LOFI - V2.1 FAQ
---

### What is LOFI - V2.1?

LOFI - V2.1 is an SD 1.5 Checkpoint, available on ModelsLab through the API and the playground above.

### How do I use the LOFI - V2.1 API?

You can integrate LOFI - V2.1 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "lofi-v21" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does LOFI - V2.1 cost?

LOFI - V2.1 costs $0.0047 per image. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

### What is the LOFI - V2.1 model ID?

The model ID for LOFI - V2.1 is "lofi-v21". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use LOFI - V2.1?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*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-11-16*