mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-05 03:59:00 +08:00
Updated API (markdown)
parent
6dd3ecdf12
commit
7a1534f387
4
API.md
4
API.md
@ -4,9 +4,11 @@
|
||||
- example in your "webui-user.bat": `set COMMANDLINE_ARGS=--api`
|
||||
- This enables the api which can be reviewed at http://127.0.0.1:7860/docs (or whever the URL is + /docs)
|
||||
The basic ones I'm interested in are these two. Let's just focus only on ` /sdapi/v1/txt2img`
|
||||
|
||||

|
||||
|
||||
- When you expand that tab, it gives an example of a payload to send to the API. I used this often as reference.
|
||||
|
||||

|
||||
|
||||
------
|
||||
@ -80,7 +82,7 @@ for i in r['images']:
|
||||
- define a plugin to add png info, then add the png info I defined into it
|
||||
- at the end here, save the image with the png info
|
||||
|
||||
This is as of this [commit](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/e7254746bbfbff45099db44a8d4d25dd6181877d)
|
||||
This is as of commit [e725474](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/e7254746bbfbff45099db44a8d4d25dd6181877d)
|
||||
|
||||
For a more complete implementation of a frontend, my Discord bot is [here](https://github.com/Kilvoctu/aiyabot) if anyone wants to look at it as an example. Most of the action happens in stablecog.py. There are many comments explaining what each code does.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user