NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Object Detector API

POST

Find and box people, cars, dogs and 77 other kinds of object in any image.

Object Detector finds the objects in an image, from people, cars and traffic lights to dogs, laptops and cups, and returns each one's label, a numeric confidence and its bounding box in pixels and as fractions of the image, plus a count per label. Filter by minimum confidence or by the labels you care about.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/objectdetector
image
Click or drag a file to upload.jpg, .jpeg, .png, .gif, .webp · max 400KB for live testing
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "imageWidth": 640,
    "imageHeight": 480,
    "objectCount": 5,
    "counts": {
      "cat": 2,
      "remote": 2,
      "couch": 1
    },
    "objects": [
      {
        "label": "cat",
        "confidence": 0.999,
        "box": {
          "x": 4,
          "y": 51,
          "width": 320,
          "height": 417
        },
        "normalizedBox": {
          "x": 0.0063,
          "y": 0.1062,
          "width": 0.5,
          "height": 0.8688
        }
      },
      {
        "label": "cat",
        "confidence": 0.9987,
        "box": {
          "x": 331,
          "y": 20,
          "width": 309,
          "height": 350
        },
        "normalizedBox": {
          "x": 0.5172,
          "y": 0.0417,
          "width": 0.4828,
          "height": 0.7292
        }
      },
      {
        "label": "remote",
        "confidence": 0.9984,
        "box": {
          "x": 329,
          "y": 67,
          "width": 42,
          "height": 128
        },
        "normalizedBox": {
          "x": 0.5141,
          "y": 0.1396,
          "width": 0.0656,
          "height": 0.2667
        }
      },
      {
        "label": "remote",
        "confidence": 0.9975,
        "box": {
          "x": 29,
          "y": 68,
          "width": 160,
          "height": 50
        },
        "normalizedBox": {
          "x": 0.0453,
          "y": 0.1417,
          "width": 0.25,
          "height": 0.1042
        }
      },
      {
        "label": "couch",
        "confidence": 0.9961,
        "box": {
          "x": 0,
          "y": 0,
          "width": 636,
          "height": 472
        },
        "normalizedBox": {
          "x": 0,
          "y": 0,
          "width": 0.9938,
          "height": 0.9833
        }
      }
    ],
    "minConfidence": 0.5,
    "labels": null
  }
}

About the Object Detector API

Detection runs DETR ResNet-50, an object detection model from Meta AI trained on the COCO dataset's 80 everyday object classes and released under the Apache 2.0 licence. APIVerve runs it on its own servers, so images are never sent to a third-party AI provider, and photos are turned upright from their EXIF orientation before detection so boxes match the image as it is displayed.

Each object has a confidence from 0 to 1, a pixel box (x, y, width, height from the top-left corner) and the same box as fractions of the image width and height, so you can draw it at any display size. counts gives the number of each label found, ready for inventory, traffic or occupancy counts.

How it works

Detection uses DETR (DEtection TRansformer) with a ResNet-50 backbone, trained by Meta AI on COCO 2017 and released under Apache 2.0, run as an 8-bit quantized ONNX model on APIVerve's servers. The image is decoded, turned upright from its EXIF orientation and, if larger, scaled so its longer side is at most 1,333 pixels, which is the most the model reads. DETR predicts 100 candidate objects per image directly, with no anchor boxes or non-maximum suppression; candidates below minConfidence are dropped and the rest are mapped back to the original image size.

confidence is the model's class probability, 0 to 1, rounded to 4 places. box is in pixels of the upright image: x and y are the top-left corner, measured from the top-left of the image. normalizedBox divides those by imageWidth and imageHeight. Objects are sorted by confidence, and counts tallies the returned objects by label, after the labels filter.

labels accepts the 80 COCO class names (traffic light, cell phone, dining table and so on), case-insensitive, with underscores or hyphens for spaces, simple plurals and common synonyms (sofa, television, phone, bike, motorbike, fridge). An unknown label returns 400 naming it. URLs are downloaded by APIVerve from public hosts only, with a 10 MB limit; the image service never fetches caller URLs itself.

What people use it for

Counting and Occupancy
Count people, cars or bicycles in camera snapshots to measure footfall, parking use or traffic.
Image Tagging
Tag uploaded photos with the objects they contain so they can be searched and filtered in a media library.
Content Checks
Confirm that listing photos actually show the item for sale, such as a car, bicycle or couch, before they are published.
Smart Cropping
Crop images around the main subject using its bounding box instead of the centre of the frame.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Object Detector

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Object Detector API.

Read the docs →
Which objects can it detect?
The 80 classes of the COCO dataset: person; vehicles such as bicycle, car, motorcycle, airplane, bus, train, truck and boat; street objects such as traffic light, stop sign and bench; animals from bird, cat and dog to elephant, zebra and giraffe; and everyday items including backpack, umbrella, bottle, cup, chair, couch, bed, dining table, tv, laptop, cell phone, book and clock.
How do I read the bounding boxes?
box gives x and y of the top-left corner plus width and height, in pixels of the upright image (imageWidth by imageHeight). On paid plans, normalizedBox gives the same values as fractions from 0 to 1, so multiply by any display size to draw the box.
Can I look for only some kinds of object?
Yes, on paid plans. Send labels as a comma-separated list, such as person,car,bicycle; common alternatives such as sofa, phone or bike are accepted. Raise minConfidence (default 0.5) to keep only the surest detections. On the Free plan every detected object is returned; minConfidence works on every plan.
Which model is used, and where does my image go?
DETR ResNet-50 from Meta AI, trained on COCO and released under the Apache 2.0 licence. APIVerve runs it on its own servers; images are not sent to OpenAI, Google or any other AI provider and are not stored.
How much does a detection cost?
Each image costs 10 credits. Starter covers 20,000 images a month, about $0.0015 per image, or $1.50 per 1,000. The Free plan includes 20 images a month.

Ready to build with Object Detector? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs