POST
/stable-diffusion/image2canny
curl \
-X POST http://api.trentaml.com/stable-diffusion/image2canny \
-H "Content-Type: multipart/form-data" \
-H "token: DuFCaWVGaYuTUrVTMigC" \
-F 'data={"low_threshold":100,"high_threshold":200}' \
-F "init_image=@file"
Request example
# Headers
token: DuFCaWVGaYuTUrVTMigC
# Payload
{
"data": {
"low_threshold": 100,
"high_threshold": 200
},
"init_image": "@file"
}
Request examples
# Headers
token: DuFCaWVGaYuTUrVTMigC
# Payload
{
"data": {
"low_threshold": 100,
"high_threshold": 200
},
"init_image": "@file"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}