Multi-image Filter Urban
1 credit / imagePOST /v1/batch-filter-urbanFilter up to 10 urban or human-modified images in one request and flag images with an animal, human, or vehicle.
Processing images regularly or at large scale?
Use this real-time endpoint for first tests, debugging, and small workflows. For steady pipelines, larger files, or bursty camera-fleet uploads, approved customers can use Batch Processing.
Open Batch ProcessingExamples
const form = new FormData()
form.append('images', firstFile)
form.append('images', secondFile)
form.append('threshold', '0.2')
form.append('metadata', 'true')
const response = await fetch('https://api.animaldetect.com/v1/batch-filter-urban', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.ANIMAL_DETECT_API_KEY,
},
body: form,
})
const data = await response.json(){
"id": "6be17806-c5cf-4416-9865-529e6d8ac08c",
"expires_at": "2026-03-12T09:44:20.954Z",
"results": [
{
"index": 0,
"filename": "street-1.jpg",
"detections": [],
"metadata": {
"image_width": 4000,
"image_height": 3000,
"file_size": 2456789
},
"info": {
"processing_time_ms": 297,
"model_version": "mdv5",
"model_id": "mdv5",
"threshold_applied": 0.2
}
}
],
"info": {
"total_processed": 1,
"total_time_ms": 297,
"model_version": "mdv5",
"model_id": "mdv5",
"threshold_applied": 0.2
}
}Parameters
Required
Array of 1-10 images. Combined upload request body limit is 20MB; combined raw image budget is 10MB.
Optional
Optional shared geofencing hint (CCA2/CCA3/full country name).
Confidence threshold between 0.01 and 0.99. Default: 0.2.
Set to `true` to include available image metadata on each batch result item.
Request Notes
Send multipart/form-data with repeated `images` fields or JSON with a base64 image array. Limits: 20MB request body and 10MB combined raw image data. Billing: 1 credit per image.
Status Codes
Notes
- `metadata=true` includes metadata only for fields found in each image.