WebUI API Parameter Configuration Guide
After local deployment, you can access localhost:7860/docs. However, if it’s inaccessible, you can check GitHub or other documents directly. I wrote this article to record the txt2img API parameter types I use in my work.
Since I focus more on architectural exterior rendering, I don’t need many details related to characters, so fewer settings are required.
For more details, you can refer to this article: Comprehensive Stable Diffusion WebUI API Call Example, Including ControlNet and Segment Anything APIs (with JSON examples)
Online Base64 Viewer: https://www.lddgo.net/convert/base64-to-image
Online Image to Base64 Converter: https://www.lddgo.net/convert/imagebasesix
SD API GitHub Introduction: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API
ControlNet GitHub API Introduction: https://github.com/Mikubill/sd-webui-controlnet/wiki/API
I use HuiShi UI
Because of the Chinese interface and being new to SD development, some API parameters were not very clear. The ControlNet GitHub introduction is quite detailed with parameter examples which helps in quick understanding.
Below is my basic SD configuration. I first manually test the overall output effect, and developers can synchronize the configuration.
Based on the configuration above, the parameters in SD can be translated to the following JSON:
1 | { |


