# SDXL Model

## 1 Call SDXL Model

Click the **GenAI** button, then click the **SDXL** button, and then send prompts to generate the desired image. You can also send an image and use the caption as prompts to generate a new image.

{% hint style="info" %}
You can use the **SDXL Model** directly by sending the */gen\_sdxl*  command.
{% endhint %}

<figure><img src="/files/XCHIwk9Az5dtBNFrhD1U" alt=""><figcaption><p>Call SDXL Model</p></figcaption></figure>

## 2 Settings

Click the **Settings** button, then click the **SDXL Settings** button to enter the setting page of the SDXL Model. You can set parameters such as **LoRA** and **LoRA Weight** for the SDXL Model to get a more appropriate output.

{% hint style="info" %}
You can enter the **Settings** page by sending the */settings*  command.
{% endhint %}

<figure><img src="/files/3sb8NAx6s4fSn9tftA3c" alt=""><figcaption><p>Parameter Settings for the SDXL Model</p></figcaption></figure>

### 2.1 LoRA

LoRA (Low-Rank Adaptation of Large Language Models) is a popular and lightweight training technique that significantly reduces the number of trainable parameters. Click the **LoRA** button and the bot will display the LoRA models that can be selected. You can also set a valid URL that can download the **SDXL 1.0** LoRA model by sending message.

{% hint style="info" %}
You can find LoRA models at <https://civitai.com/models>. Note that the LoRA version must be **SDXL 1.0**. You can send multiple lora model urls, please use ^\*^ to connect lora model urls.
{% endhint %}

<figure><img src="/files/lyA8n0lHHLjOaglsHCpr" alt=""><figcaption><p>Set Up LoRA Model</p></figcaption></figure>

### 2.2 LoRA Weight

LoRA weight represents the influence weight of the LoRA model. After the LoRA setting is completed, the corresponding LoRA weight needs to be set.&#x20;

{% hint style="info" %}
When setting multiple LoRAs, the number of LoRA weights and the number of LoRAs must be equal.
{% endhint %}

<figure><img src="/files/SKbkjOhXyrg7ZewJYSiG" alt=""><figcaption><p>Set Up LoRA Weight</p></figcaption></figure>

### 2.3 Negative Prompt

Negative prompts tell GenAI model what you do not want in the output. Click the **Negative Prompt** button and send a message to customize negative prompts.

<figure><img src="/files/MPMVbjJ5TRxwNVZ1FPDt" alt=""><figcaption><p>Custom Negative Prompts</p></figcaption></figure>

### 2.4 CFG Scale

The CFG scale is a number from 0 to 10, indicating the influence of prompts on the generated images.

<figure><img src="/files/QPTMDb0Wrak7M484oijr" alt=""><figcaption><p>Set Up CFG Scale</p></figcaption></figure>

### 2.5 Steps

The steps is a number from 0 to 50, indicating the number of denoising steps.&#x20;

<figure><img src="/files/MIqafpF6qN15akVfAxvD" alt=""><figcaption><p>Set Up Steps</p></figcaption></figure>

### 2.6 Seed

The seed is an integer greater than 0. With other parameters being the same, the same seed produces the same output image. The default value for seed is 0, which means a random value is used.

<figure><img src="/files/Ef0vjWeCgr8765EfoFlU" alt=""><figcaption><p>Set Up Seed</p></figcaption></figure>

## 3 Examples

### 3.1 Pre-provided LoRA Model

We provide multiple LoRA models for users to choose from. Here we take China\_Splashed\_Ink as an example to generate images.

<figure><img src="/files/J0gwPNq1Fquo2Z0I4Hn1" alt=""><figcaption><p>Set Up Pre-provided LoRA</p></figcaption></figure>

We send prompt to generate an ink drawing style image.

<figure><img src="/files/K9rqC19BSeSyhLkWUqok" alt=""><figcaption><p>Generate an Ink-style Image</p></figcaption></figure>

### 3.2 Image-to-Image

Let’s generate a boss battle style image using the pre-provided XL\_Boss\_Battle LoRA. We set the LoRA Weight to 0.9.

<figure><img src="/files/GOWlB7U7UeDHWusElOgg" alt=""><figcaption><p>Set Up Boss_Battle LoRA</p></figcaption></figure>

We use prompts to generate an image of fighting a T-Rex.

<figure><img src="/files/RzE8IwwaNL6evxNcK0Dd" alt=""><figcaption><p>Generate an Image of Fighting a T-Rex</p></figcaption></figure>

We use the generated image of fighting a T-Rex as the initial image to generate an image of fighting an alien.

<figure><img src="/files/JpKnqv9UoyOb6XXPHVjm" alt=""><figcaption><p>Image-to-Image example</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://genai-doc.phoenix.global/sdxl-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
