About this endpoint
What it does
Uploads an image file and runs common visual object detection against the selected service. The response returns a JSON object with a data object containing service-specific result objects for azure, apyhub, and google.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary image file to analyze. |
| azure_key | String | No | Azure key. |
| google_key | String | No | Google key. |
| azure_region | String | No | Azure region. |
| azure_endpoint | String | No | Azure endpoint URL. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | No | Service to use for detection. Allowed values: azure, google, apyhub. Default: apyhub. |
| azure_access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. The data object may include azure, apyhub, and google object fields, each representing the corresponding service's response object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Container for service-specific detection results. |
| data.azure | Object | No | Response object from Microsoft Azure Computer Vision. |
| data.apyhub | Object | No | Response object from ApyHub Vision detector. |
| data.google | Object | No | Response object from Google Cloud Vision. |