AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
140.38k stars 26.57k forks source link

[Feature Request]: API Docs view only #4964

Open Spaceginner opened 1 year ago

Spaceginner commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

By adding some flag as the starting argument, the webui will launch in api docs view mode only, which will allow to only view API docs.

Proposed workflow

  1. Go to webui-user.bat or webui-user.sh
  2. Add flag --api-docs-only to the starting argument
  3. Launch it

Additional information

This will be useful, as sometimes I need only to view API docs and not to interact with AI models itself and loading times are quite long. As an implementation, it can just redirect from http://127.0.0.1:7860/ to http://127.0.0.1:7860/docs

Kilvoctu commented 1 year ago

As someone who has work with this API a lot, I can see how this could have some use. 😌