---
title: | 2   AnimagineXL 4.0opt API | Text to Image | ModelsLab
description: Generate images from text with | 2   AnimagineXL 4.0opt. High-resolution AI image generation. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/2-animaginexl-4-0opt/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/2-animaginexl-4-0opt/api.md
type: product
component: Playground/Endpoint/Index
generated_at: 2026-04-06T20:04:28.498969Z
---

[![| 2 - AnimagineXL 4.0opt thumbnail](https://modelslab.com/images/logo-favicon.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)| 2 - AnimagineXL 4.0opt
---

[by ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)Generate photorealistic and imaginative images from text prompts with advanced detail, inpainting, and image-to-image translation features, ideal for creatives and marketers.

`2-animaginexl-4-0opt`

Open Source Model [Unlimited Usage](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/2-animaginexl-4-0opt/llms.txt)

[API Playground](/models/modelslab/2-animaginexl-4-0opt) [API Documentation](/models/modelslab/2-animaginexl-4-0opt/api)Vibe CodeRelated ModelsDeveloper SupportModel SpecsEnterprise Deployment

Input
---

prompt 

R3alisticF, hauntingly beautiful oriental necromancer, long flowing brown hair, bangs, darkly tanned skin, earrings, bone necklaces, dark eyeshadow, red lips, vibrant, front-laced transparent, filmy silk blouse, cleavage, holding skull, in a sandstone room lit by candles, High Detail, Perfect Composition, high contrast, silhouetted, chiascuro

Model 

lora Model 

2-animaginexl-4-0opt

Width 

Height 

Advanced Settings Customize your input with more control.

Configure

Add FundsLogin to Generate

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

Output
---

Idle

Unknown content type

Related Models
---

Discover similar models you might be interested in

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

[![Object Showcase Collection of 60 Items [XL] - 02 Laptop Showcase](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/afbf0967-d9e3-4d8f-babd-292de1779c10/width=1024/17445410.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/objectshowcasecollectionof60itemsxl-02laptopshowcase)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Object Showcase Collection of 60 Items \[XL\] - 02 Laptop Showcase

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/objectshowcasecollectionof60itemsxl-02laptopshowcase)

[![Elhaym van Houten / - Xenogears / - Animagine XL 3.1 + IllustriousXL - v1.0 - AnimagineXL3.1](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/562bb4b0-82d1-477d-b0f5-0beb7ef7cd17/width=1800/15167515.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/elhaym-van-houten-xenogears-animagine-xl-3-1-illustriousxl-v1-0-animaginexl3-1)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Elhaym van Houten / - Xenogears / - Animagine XL 3.1 + IllustriousXL - v1.0 - AnimagineXL3.1

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/elhaym-van-houten-xenogears-animagine-xl-3-1-illustriousxl-v1-0-animaginexl3-1)

[![Object Showcase Collection of 60 Items [XL] - 14 Glasses Showcase](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/fb3c2dbe-2e62-46bd-92a5-3dd36bd47373/width=1024/17478329.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/objectshowcasecollectionof60itemsxl-14glassesshowcase)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Object Showcase Collection of 60 Items \[XL\] - 14 Glasses Showcase

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/objectshowcasecollectionof60itemsxl-14glassesshowcase)

[![- v1.1-pretrained](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/d9e73ce1-781e-4381-8f46-73bf8433005d/width=832/20081569.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/v11pretrained)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [\- v1.1-pretrained

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/v11pretrained)

[![Guns (Lots Of Guns) XL + F1D (Choose from list) - 1921A Thompson 1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/987fc36b-94ac-459a-a808-8bb8cf358f57/width=96/EauDeNoire.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/guns-lots-of-guns-xl-f1d-choose-from-list-1921a-thompson-1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Guns (Lots Of Guns) XL + F1D (Choose from list) - 1921A Thompson 1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/guns-lots-of-guns-xl-f1d-choose-from-list-1921a-thompson-1-0)

[![Aesthetic Quality Modifiers - Complete - v2.0 [noobai-v-pred-1]](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/600dd1f5-725d-46ca-a2d2-9fa8a6840667/width=1664/49703084.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/aesthetic-quality-modifiers-complete-v2-0-noobai-v-pred-1)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Aesthetic Quality Modifiers - Complete - v2.0 \[noobai-v-pred-1\]

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/aesthetic-quality-modifiers-complete-v2-0-noobai-v-pred-1)

[![GhostSkelleton - SDXL-v1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/34a6a9c0-dbd5-493d-a3a2-0cc4845e7aac/original=true/37510571.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/ghostskelleton-sdxl-v1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [GhostSkelleton - SDXL-v1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/ghostskelleton-sdxl-v1-0)

[![AstolfoMix-XL - DGMLA-216](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/4ef90d1d-6abb-47f3-8ddd-c806e9a00abc/width=1152/45659552.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/astolfomix-xl-dgmla-216)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [AstolfoMix-XL - DGMLA-216

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/astolfomix-xl-dgmla-216)

[![BreakDomainXL - _V01f](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/e3532cd4-7640-4968-abc3-42163ae7ecb0/width=1152/1962496.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/breakdomainxl-v01f)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [BreakDomainXL - \_V01f

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/breakdomainxl-v01f)

[![JJ's Architecture - Rowhouse - XL 1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/7868a80f-f422-47b3-ac74-ca1d01897c2a/width=1152/6902410.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/jj-s-architecture-rowhouse-xl-1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [JJ's Architecture - Rowhouse - XL 1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/jj-s-architecture-rowhouse-xl-1-0)

[![Alma Judikhali/ - The Most Notorious "Talker" Runs the World's Greatest Clan/ - AnimagineXL3.1+Illus](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/213e2031-b14a-4f25-9b4e-7a9871848c60/width=96/Madafada1991.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/alma-judikhali-the-most-notorious-talker-runs-the-world-s-grea-clan-animaginexl3)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Alma Judikhali/ - The Most Notorious "Talker" Runs the World's Greatest Clan/ - AnimagineXL3.1+Illus

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/alma-judikhali-the-most-notorious-talker-runs-the-world-s-grea-clan-animaginexl3)

[![Cinematic Volumetric (God Rays) Lighting Style XL + F1D + Illu + Pony - Volumetric xl v1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/ae49f2a5-fb89-472a-996a-9cc409a89393/width=1024/6262145.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/cinematic-volumetric-god-rays-lighting-style-xl-f1d-illu-pony-volumetric-xl-v1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Cinematic Volumetric (God Rays) Lighting Style XL + F1D + Illu + Pony - Volumetric xl v1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/cinematic-volumetric-god-rays-lighting-style-xl-f1d-illu-pony-volumetric-xl-v1-0)

[![neon_mecha_girls - V1](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9cec283f-e831-40db-b925-f3fcba104d4d/width=1032/86461602.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/neonmechagirls-v1)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [neon\_mecha\_girls - V1

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/neonmechagirls-v1)

[![Ath_ ink-style - XL1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/d44f530e-33d2-4be3-a6fb-5767231189b2/width=1152/7973786.jpeg)Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/ath-ink-style-xl1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Ath\_ ink-style - XL1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/ath-ink-style-xl1-0)

[![Shoe Locker (getabako) IL SDXL - SDXL](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/229a9dfb-420a-4126-9df5-0b5c33230cc6/width=1024/61250796.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/shoe-locker-getabako-il-sdxl-sdxl)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Shoe Locker (getabako) IL SDXL - SDXL

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/shoe-locker-getabako-il-sdxl-sdxl)

[![SURREALISMQ - SDXL_v1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/e27962b9-5c3e-4e47-8306-baa6ffedc1bf/width=1024/37158757.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/surrealismq-sdxl-v1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [SURREALISMQ - SDXL\_v1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/surrealismq-sdxl-v1-0)

[![Disco Diffusion LoRA - DD_DSCD_STYLE_SDXL_v1](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/c78173ac-9262-4abc-80cd-8ca68bfeca41/width=768/43641661.mp4)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/disco-diffusion-lora-dd-dscd-style-sdxl-v1)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Disco Diffusion LoRA - DD\_DSCD\_STYLE\_SDXL\_v1

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/disco-diffusion-lora-dd-dscd-style-sdxl-v1)

[![trainer_(umamusume)_noobxl_eps_1.0 - v1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9581149c-8415-4461-93da-f1691d45c59e/width=768/54772113.jpeg)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/trainer-umamusume-noobxl-eps-1-0-v1-0)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [trainer\_(umamusume)\_noobxl\_eps\_1.0 - v1.0

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/trainer-umamusume-noobxl-eps-1-0-v1-0)

| 2 - AnimagineXL 4.0opt Readme
---

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

---

*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-07*