About this endpoint
What it does
Uploads a file for explicit-content detection and routes the request to either the Azure or Google service based on requested_service. The response returns a JSON object with a data object that may include an azure result or a google result, depending on which service was requested.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | File to analyze for explicit-content detection. Binary upload. |
| azure_region | String | No | Azure region. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | Yes | Service to use for detection: azure or google. |
| azure_access_token | String | No | Azure access token. |
| google_credential_file | String | No | Google service account JSON file for Google routes. Binary upload. |
Response
Returns a JSON object with a required data object field. Inside data, the schema declares optional azure and google object fields; the relevant one is present based on the requested service.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. May include azure when requested_service is azure, or google when requested_service is google. |
| data.azure | Object | No | Present when requested_service is azure. Additional properties are allowed. |
| data.google | Object | No | Present when requested_service is google. Additional properties are allowed. |