Inference Request APIs

July 21, 2022 ยท View on GitHub

The inference endpoint provides a RESTful interface for triggering a new inference request that is compatible with the ACR DSI API.

Warning

This API is a work in progress and may change between releases.

Note

The inference API is extended based on the draft created by the ACR (American College of Radiology). Please refer to ACR's Platform-Model Communication for AI for more information.

POST /inference

Triggers a new inference job using the specified DICOM dataset from the specified data sources.

Important

For input and output connections that require credentials, ensure that all the connections are secured and encrypted.

Parameters

See the InferenceRequest class definition for examples.

Request Content Type: JSON

NameTypeDescription
transactionIDstring(Required) A user-provided transaction ID for correlating an inference request.
prioritynumberThe valid range is 0-255. Please refer to Monai.Deploy.InformaticsGateway.Api.Rest.InferenceRequest.Priority for details.
inputMetadatainputMetadata object(Required) The dataset associated with the inference request.
inputResourcesarray of inputResource objects(Required) Data sources from which to retrieve the specified dataset. MONAI Deploy Only: Must include one interface that is type of Algorithm.
outputResourcesarray of inputResource objects(Required) Output destinations where results are exported to

Responses

Response Content Type: JSON - InferenceRequestResponse.

CodeDescription
200Inference request received and scheduled for processing.
409A request with the same transaction ID already exists. The response will be a Problem details object with server error details.
422Request contains invalid data or is missing required fields. The response will be a Problem details object with server error details.
500Server error. The response will be a Problem details object with server error details.

GET /inference/status/{transactionId}

Returns the status of an inference request.

Parameters

NameTypeDescription
transactionIdstringThe transactionId of the original inference request

Responses

Response Content Type: JSON - InferenceStatusResponse.

CodeDescription
200Inference request status is available.
404Inference request not found.
500Server error. The response will be a Problem details object with server error details.