cURL
Use portrait image detection to check whether an input image meets the portrait image requirements of
wan2.2-s2v. Run it before generating a digital human video to filter out images that would fail.
Supported regions: China North 2 (Beijing) only. Use an API key created in that region and the https://cn-beijing.maas.qwencloudapi.com endpoint. See Regions and endpoints.
The response returns check_pass and humanoid:
check_pass—trueif the image meets the requirements ofwan2.2-s2v.humanoid—trueif a human portrait is detected in the image.
code and message describe the reason.Authorizations
string
header
required
QwenCloud API key. See Get an API key.