wan2.2-s2v-detect checks whether an input image meets wan2.2-s2v input specifications.
Model and pricing
Model | Unit price | Rate limit (shared by Alibaba Cloud account and RAM users) | |
|---|---|---|---|
Task submission RPS limit | Concurrent tasks | ||
wan2.2-s2v-detect | $0.000574/image | 5 | No limit for sync APIs |
Non-compliant images are still billed - the model executes the full detection flow before determining compliance.
HTTP API
This API checks whether an input image meets wan2.2-s2v portrait specifications.
Prerequisites
- Activate the service and obtain an API key.
- Set the API key as an environment variable.
Image detection API
{WorkspaceId} with your actual workspace ID.
Request parameters
Field | Type | Passing method | Required | Description | Example |
|---|---|---|---|---|---|
Content-Type | String | Header | Yes | Request type: application/json. | application/json |
Authorization | String | Header | Yes | The API key. The format is Bearer sk-xxx. | Bearer sk-1a**2b |
model | String | Body | Yes | The name of the model to call. | wan2.2-s2v-detect |
input.image_url | String | Body | Yes | The URL of the image to detect.
| http://aaa/bbb.jpg |
Response parameters
| Field | Type | Description | Example |
|---|---|---|---|
| output.check_pass | Bool | Detection result: true = passed, false = failed. | true |
| output.humanoid | Bool | Whether a human portrait was detected: true = yes, false = no. | true |
| usage.image_count | Integer | Image count per request (always 1). You are charged per successful request, regardless of detection result. Failed requests are not billed.Non-compliant images are still billed - the model executes the full detection flow before determining compliance. | 1 |
| request_id | String | The unique ID of this request. | 7574ee8f-38a3-4b1e-9280-11c33ab46e51 |
Request example
Replace {WorkspaceId} with your actual workspace ID.