v1/controlnet/detect
POSThttps://{endpoint}/v1/controlnet/detect
controlnet-detect
Request
- application/json
Body
required
controlnetModule stringrequired
the name of the controlnet preprocessor to use for detection. eg: openpose
resourceId stringrequired
resource id of the image to detect in the controlnet.
Responses
- 200
- 404
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
result object
{
"result": {
"id": "string",
"url": "string",
"expiredIn": "string",
"meta": {
"image": {
"format": "string",
"width": 0,
"height": 0
}
}
}
}
Not Found: img not found
- application/json
- Schema
Schema
- any
Default
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -g -X POST 'https://{endpoint}/v1/controlnet/detect' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"controlnetModule": "string",
"resourceId": "string"
}'
ResponseClear