---
title: "Image detection"
method: POST
path: "/image/detection"
tags: ["Plugin API/Model/Image"]
---

# Image detection

`POST /image/detection`

This API integrates your Image object detection model into BasicAI. This API only works with Image datasets.

## Headers

- `Authorization` string

## Request body

- object
  - `data` ImageModelData, required
    - `id` integer, required — ID
    - `url` string, required — URL

## Response `200`

Successful

- object
  - `code` string, required — Error code, OK indicates success, while others indicate failure
  - `message` string, required — Error message
  - `data` object, required — Null, if there is none
    - `objects` ImageModelBoundingBoxObject[], required — An array of the detected objects，will be null or an empty array if there is none
      - `score` number, required — Confidence score，range [0, 1]
      - `label` string, required — Label or Class, case sensitive
      - `contour` object, required — Contour infomation of bbox，If empty, related QA will not be supported.
        - `xmin` number, required — Minimum value on the X-axis.
        - `xmax` number, required — Maximum value on the X-axis
        - `ymin` number, required — Minimum value on the Y-axis
        - `ymax` number, required — Maximum value on the Y-axis
      - `area` number — The number of included pixels.

---

[API](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api.md) · [All operations](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/basic/basicai-cloud-open-plugin-api/revisions/f6b5a226c6da/schema)
