stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: API to get a list of VAE

Open mnpenner opened this issue 2 years ago • 1 comments

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:

image

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

mnpenner avatar Dec 30 '22 21:12 mnpenner

Is there any progress on this API requirements?

Hfutsora avatar Mar 19 '23 15:03 Hfutsora