---
title: Midnight   V4.0 API Docs | Text to Image | ModelsLab
description: API documentation, code examples, and SDKs for Midnight   V4.0. Integrate AI into your app with Python, JavaScript, cURL, and CLI. Pay-per-use pricing.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/midnight-v40/api
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/midnight-v40/api
type: product
component: Playground/Endpoint/Index
generated_at: 2026-04-01T16:17:50.775886Z
---

# Midnight   V4.0 API Docs | Text to Image | ModelsLab

> API documentation, code examples, and SDKs for Midnight   V4.0. Integrate AI into your app with Python, JavaScript, cURL, and CLI. Pay-per-use pricing.

**Navigation**: [Home](https://modelslab-frontend-v2-927501783998.us-east4.run.app) > [Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models) > [ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab) > [Midnight   V4.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/midnight-v40/api) > API Documentation

## Model

### [Midnight - v4.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/midnight-v40)

**Model ID:** midnight-v40
**Category:** Stable Diffusion Xl
**Provider:** Modelslab

Сontinue to experiment with settings and merges.

Tags: photorealistic, art, base model, photography, portraits, painting, sdxl, macro photo

## Endpoint

### Text to Image Community Model

**Endpoint:** `v6/images/text2img`
**Provider:** Modelslab
**Category:** Image

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

Per image generation will cost 0.0047$ 
For premium plan image generation will cost 0.00$ i.e Free.

## API Docs

- [API Docs](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/midnight-v40/llms.txt)

## Related Models

### [City - CityScape - Skyline](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/city-cityscape-skyline)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Azusawa Kohane (Brandnew Style) / Project SEKAI - AnimagineXL V3.1](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/azusawa-kohane-brandnew-style-project-sekai-animaginexl-v3-1)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Medkil' - 1.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/medkil-1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Hon Kitsune Ai - VTuber - SDXL 1.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/hon-kitsune-ai-vtuber-sdxl-1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Xilonen (SD1.5 XL Pony) - v1.0-SDXL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/xilonen-sd1-5-xl-pony-v1-0-sdxl)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [hanfu-song-lora](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/hanfu-song-lora)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [McQueen FW09](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/mcqueen-fw09)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [[ /vtuber] / AzumaSeren for pony a31 - a31](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/vtuber-azumaseren-for-pony-a31-a31)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [- 30-70](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/3070)
Category: Stable Diffusion Xl | Provider: Modelslab

### [Real3D MySentientAI - Lila 1.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/real3d-mysentientai-lila-1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Playing (and trading) cards - V1](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/playing-and-trading-cards-v1)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [- v5.3_trained](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/v53trained)
Category: Stable Diffusion Xl | Provider: Modelslab

### [Watches LoRA [Flux/SDXL/SD15] - SDXL_v2](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/watches-lora-flux-sdxl-sd15-sdxl-v2)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Adjust details AND photorealism (XL/PONY+FLUX) - SDXL v7.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/adjust-details-and-photorealism-xl-pony-flux-sdxl-v7-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Mechanical insects - sdxl_v1.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/mechanical-insects-sdxl-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [- v5](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/v5)
Category: Stable Diffusion Xl | Provider: Modelslab

### [airi_kanna_noobxl_eps_1.0 - v1.0](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/airi-kanna-noobxl-eps-1-0-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [- VXI-aBEAST](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/vxiabeast)
Category: Stable Diffusion Xl | Provider: Modelslab


---

*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-04-01*