added SD samplers endpoint

This commit is contained in:
Concedo 2024-03-04 14:26:49 +08:00
parent b8bc500a4b
commit d4a12133e7
2 changed files with 26 additions and 2 deletions

View file

@ -894,6 +894,25 @@
]
}
},
"/sdapi/v1/samplers": {
"get": {
"description": "Gets a list of supported samplers.",
"responses": {
"200": {
"content": {
"application/json": {
"example": [{"name":"Euler a","aliases":["k_euler_a","k_euler_ancestral"],"options":{}},{"name":"Euler","aliases":["k_euler"],"options":{}},{"name":"Heun","aliases":["k_heun"],"options":{}},{"name":"DPM2","aliases":["k_dpm_2"],"options":{}},{"name":"DPM++ 2M","aliases":["k_dpmpp_2m"],"options":{}}]
}
},
"description": "Successful request"
}
},
"summary": "Gets a list of supported samplers",
"tags": [
"sdapi/v1"
]
}
},
"/sdapi/v1/txt2img": {
"post": {
"description": "Generates an image from a text prompt, and returns a base64 encoded png.",
@ -1030,8 +1049,7 @@
}
]
};
</script>
</script>
<script>
//self destruct into json if requested