Model reference · open weights
animagine-xl-4.0 is an open-weight image model from cagliostrolab, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
Animagine XL 4.0 Overview Animagine XL 4.0, also stylized as Anim4gine, is the ultimate anime-themed finetuned SDXL model and the latest installment of Animagine XL series. Despite being a continuation, the model was retrained from Stable Diffusion XL 1.0 with a massive dataset of 8.4M diverse anime-style images from various sources with the knowledge cut-off of January 7th 2025 and finetuned for approximately 2650 GPU hours. Similar to the previous version, this model was trained using tag ordering method for the identity and style training. With the release of Animagine XL 4.0 Opt (Optimized), the model has been further refined with an additional dataset, improving stability, anatomy accuracy, noise reduction, color saturation, and overall color accuracy. These enhancements make Animagine XL 4.0 Opt more consistent and visually appealing while maintaining the signature quality of the series. Changelog - 2025-02-13 – Added Animagine XL 4.0 Opt - Better stability for more consistent outputs - Enhanced anatomy with more accurate proportions - Reduced noise and artifacts in generations - Fixed low saturation issues, resulting in richer colors - Improved color accuracy for more visually appealing results - 2025-01-24 – Initial release Model Details - Developed by: Cagliostro Research Lab - Model type: Diffusion-based text-to-image generative model - License: CreativeML Open RAIL++-M - Model Description: This is a model that can be used to generate and modify specifically anime-themed images based on text prompt - Fine-tuned from: Stable Diffusion XL 1.0 Downstream Use 1. Use this model in our Hugging Face Spaces 2. Use it in ComfyUI or Stable Diffusion Webui 3. Use it with 🧨 diffusers 🧨 Diffusers Installation 1. Install Required Libraries 2. Example Code The example below uses lpwstablediffusionxl pipeline which enables better handling of long, weighted and detailed prompts. The model is already uploaded in FP16 format, so there's no need to specify variant="fp16" in the frompretrained call. Usage Guidelines The summary can be seen in the image for the prompt guideline. 1. Prompt Structure The model was trained with tag-based captions and the tag-ordering method. U
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | cagliostrolab |
|---|---|
| Type | Image models |
| Parameters (lead) | 2.6B |
| Variants | 1 |
| Runs with | diffusers |
| Based on | stabilityai/stable-diffusion-xl-base-1.0 |
| Released | 2025-01-10 |
| Popularity | 296k downloads / month |
| Likes | 490 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| animagine-xl-4.0 | 2.6B | BF16 | ~5.9 GB | ✓ | Weights ↗ |
Using it via the API
Once AxForge deploys animagine-xl-4-0 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (animagine-xl-4-0 below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/images/generations \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"animagine-xl-4-0","prompt":"a red bicycle","size":"1024x1024"}'
Details
Languages
Tags
Licence
Open weights under openrail++ — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗