stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Feature Request]: API to get a list of VAE
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
I want an API GET method similar to /sdapi/v1/sd-models
that lists all the VAE.
Similar to whatever is used to populate this dropdown in Auto's UI:
But without having to use the indecipherable /predict/run
method.
Proposed workflow
Add
self.add_api_route("/sdapi/v1/sd-vae", self.get_sd_vae, methods=["GET"], response_model=List[SDVaeItem])
to api.py
or similar.
Additional information
Related: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4982
Is there any progress on this API requirements?