---
title:   V4.0 API Docs | Text to Image | ModelsLab
description: API documentation, code examples, and SDKs for   V4.0. Integrate AI into your app with Python, JavaScript, cURL, and CLI. Pay-per-use pricing.
url: https://modelslab.com/models/modelslab/v40/api
canonical: https://modelslab.com/models/modelslab/v40/api
type: product
component: Playground/Endpoint/Index
generated_at: 2026-04-05T20:31:56.345266Z
---

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

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

**Navigation**: [Home](https://modelslab.com) > [Models](https://modelslab.com/models) > [ModelsLab](https://modelslab.com/models/modelslab) > [  V4.0](https://modelslab.com/models/modelslab/v40/api) > API Documentation

## Model

### [- v4.0](https://modelslab.com/models/modelslab/v40)

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

Tags: concept, sword, armor, fantasy, weapon, xl

## 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.com/models/modelslab/v40/llms.txt)

## Related Models

### [Chiori - Chiori_V1.1[Style_Lora]](https://modelslab.com/models/modelslab/chiori-chiori-v1-1-style-lora)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Ratatoskr (Animal, Creature and Furry ) - v2.0](https://modelslab.com/models/modelslab/ratatoskr-animal-creature-and-furry-v2-0)
Category: Stable Diffusion Xl | Provider: Modelslab

### [- v0.2.1](https://modelslab.com/models/modelslab/v021)
Category: Stable Diffusion Xl | Provider: Modelslab

### [ - 卡罗尔-Carol](https://modelslab.com/models/modelslab/carol)
Category: Stable Diffusion Xl | Provider: Modelslab

### [Belldandy OVA style [SDXL&SD] / - v1.1](https://modelslab.com/models/modelslab/belldandy-ova-style-sdxl-sd-v1-1)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [SakushiMix_SDXL - SakushiMix_SDXL](https://modelslab.com/models/modelslab/sakushimix-sdxl-sakushimix-sdxl)
Category: Stable Diffusion Xl | Provider: Modelslab

### [yae_miko_noobxl_eps_1.0 - v1.0](https://modelslab.com/models/modelslab/yae-miko-noobxl-eps-1-0-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Medieval Worlds - Dark Elves Part 3](https://modelslab.com/models/modelslab/medieval-worlds-dark-elves-part-3-1752088541)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [AnyNoobAI(for LoRA Training) - 0.5_v-prediction](https://modelslab.com/models/modelslab/anynoobai-for-lora-training-0-5-v-prediction)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [kaku_seiga_noobxl_eps_1.0 - v1.0](https://modelslab.com/models/modelslab/kaku-seiga-noobxl-eps-1-0-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Maybe Better Pose Lora XL - v2.0-rank32](https://modelslab.com/models/modelslab/maybe-better-pose-lora-xl-v2-0-rank32)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Animagine XL Realistic or Stylistic - v5](https://modelslab.com/models/modelslab/animagine-xl-realistic-or-stylistic-v5)
Category: Stable Diffusion Xl | Provider: Modelslab

### [blue_pencil-XL - v0.3.1](https://modelslab.com/models/modelslab/bluepencilxl-v031)
Category: Stable Diffusion Xl | Provider: Modelslab

### [Higuchi Madoka - The Idolm@ster Shiny Colors - Animagine XL 3.1 - v1.0](https://modelslab.com/models/modelslab/higuchi-madoka-the-idolm-ster-shiny-colors-animagine-xl-3-1-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [SDXL model of Shiho AI character - v1.0](https://modelslab.com/models/modelslab/sdxl-model-of-shiho-ai-character-v1-0)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Aesthetic Quality Modifiers - Complete - v3.0 [animagine v4]](https://modelslab.com/models/modelslab/aesthetic-quality-modifiers-complete-v3-0-animagine-v4)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [1930s Glamour Style - SDXL](https://modelslab.com/models/modelslab/1930s-glamour-style-sdxl)
Category: Stable Diffusion Xl | Type: Lora | Provider: Modelslab

### [Kusanagi Nene (Brandnew Style) / Project SEKAI - AnimagineXL V3.1](https://modelslab.com/models/modelslab/kusanagi-nene-brandnew-style-project-sekai-animaginexl-v3-1)
Category: Stable Diffusion Xl | Type: Lora | 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-06*