# Setting a custom VAE

It's super easy to load custom VAE's with Auto 1111 SDK. You can find a list of VAE's to choose from Civit AI here: <https://civitai.com/models>. To load a custom VAE in Auto 1111 SDK:

1. Initialize your pipeline

```python
from auto1111sdk import StableDiffusionPipeline

pipe = StableDiffusionPipeline("PATH TO YOUR MODEL SAFETENSORS FILE")
```

2. Set the VAE

<pre class="language-python"><code class="lang-python"><strong>pipe.set_vae("PATH TO YOUR VAE SAFETENSORS FILE") # path to your vae safetensors file
</strong></code></pre>

And that's it! Once you change the VAE as per your specification, you shall see the changes.


---

# 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://flush-ai.gitbook.io/automatic-1111-sdk/pipelines/setting-a-custom-vae.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.
