# Introduction

## What you can do with stable-diffusion-for-unity

Currently(April 2023) You can do bellow

* Image assets generation by Image generation AI (StableDiffusion)

<div><figure><img src="/files/miPKoTiYvAU8OpMRHKo4" alt=""><figcaption></figcaption></figure> <figure><img src="/files/6WtRh4ENLmjP9yhHomc8" alt=""><figcaption></figcaption></figure></div>

Following components are available, and you can see how to use it from the tile link.

<table><thead><tr><th width="169.33333333333331">Title</th><th width="381">Summary</th><th>Component title</th></tr></thead><tbody><tr><td>Text to Image</td><td>Image generation with text prompt</td><td>Text2Img.cs</td></tr><tr><td>Image to Image</td><td><p>Image generation with </p><ul><li>external Image input </li><li>Image from camera in Unity</li></ul></td><td>Img2Img.cs</td></tr><tr><td>Depth to Image</td><td>Image generation using Depth information acquired from camera in Unity</td><td>Depth2Img.cs</td></tr></tbody></table>

Also you can switch trained models/Lora for each image generation to enable consistent image generation

## Recommended Environment

We have tested the following environment. Required specs vary depending on which function you use.

* OS: Windows
* VRAM: 8GB\~
* Unity version:  Unity2021.3.18f1\~  Unity 2021 ※There are some issues on 2022\~&#x20;
  * RenderPipeline: URP

## About System configuration and OSS

This system installs and uses code from a [repository](https://github.com/witchpot-studio/stable-diffusion-webui) which fork from Stable Diffusion web UI.

If you modify these repository, please apply the GPL v3 license.

The main repository of this project, stable-diffusion-for-unity, is communicated via API and is available under the MIT license.


---

# 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://docs.witchpot.com/english/basic-info/introduction.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.
