# 4nima_pencil-XL - v1.0.1 >

# Tools

# Checkpoints

# Recipe

  1. Merge using sd-mecha for ComfyUI.

# sd-mecha format recipe
model "sdxl\anima_pencil-XL-v5.0.0.safetensors" "sdxl" "base"
model "sdxl\neta_noob_v1.safetensors" "sdxl" "base"
model "sdxl\animagine-xl-4.0.safetensors" "sdxl" "base"
model "sdxl\sd_xl_base_1.0.safetensors" "sdxl" "base"
merge "train_difference" &0 &2 &3 alpha=1.0
merge "add_cosine_b" &2 &4 alpha=0.55
dict sdxl_unet_default=1.0 sdxl_txt2_default=0.0 sdxl_txt_default=0.0
merge "weighted_sum" &2 &5 alpha=&6
dict sdxl_unet_default=0.2 sdxl_txt2_default=0.0 sdxl_txt_default=0.0
merge "clamped_add_opposite" &7 &0 &3 alpha=&8
merge "add_cosine_a" &1 &9 alpha=0.65
merge "add_cosine_a" &0 &10 alpha=0.35000000000000003
merge "clamped_add_opposite" &11 &0 &3 alpha=4.0
merge "add_cosine_b" &12 &9 alpha=0.25
model "sdxl\illustrious_pencil-XL-v2.0.0.safetensors" "sdxl" "base"
merge "add_cosine_a" &14 &9 alpha=0.25
merge "add_cosine_a" &13 &15 alpha=0.6
merge "add_cosine_a" &16 &3 alpha=0.0
dict sdxl_unet_default=0.0 sdxl_txt2_default=0.5 sdxl_txt_default=1.0
merge "weighted_sum" &17 &9 alpha=&18
dict sdxl_unet_default=0.35000000000000003 sdxl_txt2_default=2.0 sdxl_txt_default=0.0
merge "clamped_add_opposite" &19 &2 &3 alpha=&20
merge "add_cosine_a" &21 &2 alpha=0.0
  1. Create and Merge Concept Sliders

  2. Merge

model "sdxl\animagine-xl-4.0.safetensors" "sdxl" "base"
model "1.safetensors" "sdxl" "base"
merge "add_cosine_b" &0 &1 alpha=0.9500000000000001
dict sdxl_unet_default=0.0 sdxl_txt_default=1.0 sdxl_txt2_default=1.0
merge "weighted_sum" &2 &1 alpha=&3
merge "slerp" &1 &3 alpha=0.05
dict sdxl_unet_default=0.0 sdxl_txt2_default=1.0 sdxl_txt_default=1.0
merge "weighted_sum" &4 &1 alpha=&6
## Overview - **Model ID**: `4nima-pencil-xl-v1-0-1` - **Category**: stable diffusion xl - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/aa9554e6-5cdd-448f-bf8b-94aab443ce65/width=1536/55105351.jpeg` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/images/text2img` - **Method**: POST ### Parameters - **`prompt`** (required): prompt help in image generation - Type: textarea - Example: Enter prompt - **`model_id`** (required): Enter model_id that can help in image generation - Type: text - Example: Enter model_id here - **`lora_model`** (required): - Type: multiple_models - **`width`** (required): width of the image - Type: number (range: 512-1024) - **`height`** (required): height of the image - Type: number (range: 512-1024) - **`negative_prompt`** (optional): Negative prompt help in avoid things that you do not want in image - Type: textarea - Example: Enter negative prompt that you do not want see in image - **`scheduler`** (optional): - Type: select (options: DPM++ 2M, DPM++ SDE, Euler, Euler a) - **`guidance_scale`** (optional): - Type: number (range: 1-10) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/images/text2img \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "4nima-pencil-xl-v1-0-1", "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", "width": "1024", "height": "1024", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/images/text2img", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "4nima-pencil-xl-v1-0-1", "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", "width": "1024", "height": "1024", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/images/text2img", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "4nima-pencil-xl-v1-0-1", "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", "width": "1024", "height": "1024", "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), (jpeg artifacts), (blurry), (duplicate), (morbid), (mutilated), (out of frame), (extra limbs), (bad anatomy), (disfigured), (deformed), (cross-eye), (glitch), (oversaturated), (overexposed), (underexposed), (bad proportions), (bad hands), (bad feet), (cloned face), (long neck), (missing arms), (missing legs), (extra fingers), (fused fingers), (poorly drawn hands), (poorly drawn face), (mutation), (deformed eyes), watermark, text, logo, signature, grainy, tiling, censored, nsfw, ugly, blurry eyes, noisy image, bad lighting, unnatural skin, asymmetry", "scheduler": "DPMSolverMultistepScheduler", "guidance_scale": "7.5" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/community-model/4nima-pencil-xl-v1-0-1) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)