Models

Run model inference

Changed on

Runs inference on an image or video using a trained model. Depth models accept images only.

post/api/models/{owner}/{project}/{model}/predict

Request

  • Base URL
    https://platform.ultralytics.com
  • Auth
    • none
    • or HTTP bearer

Path parameters

ownerstring required
Example:ultralytics

Project owner

projectstring required
Example:yolo26

Project name

modelstring required
Example:yolo26n

Model name

Request body multipart/form-data

OR

Example request

{
  "conf": 0.25,
  "iou": 0.7,
  "imgsz": 640,
  "decimals": 5,
  "vid_stride": 1
}

Response

Inference results

Changes

    • warning

      removed the optional property / from the response with the status

    • breaking

      removed subschema #1 subschema #2 from the request body anyOf list

    • info

      added subschema #1 subschema #2 to the request body anyOf list