Skip to content

Inference

Inference

POST /tasks/inference

Run inference task

Example:

{
  "modelId": 1,
  "source": {
    "project": 2,
    "dataset": null
  },
  "settings": {
    "title": "inf_supervisely_test_model",
    "nodeId": 1,
    "config": {
      "out_class_suffix": "bbox",
      "save_source_obj": false,
      "src_type": "image",
      "allowed_model_classes": "__all__",
      "min_score_threshold": 0.7,
      "gpu_device": 0
    }
  }
}

Response:

{ "taskId": 103 }