Skip to main content
In this quickstart, we’ll:
  • Set up our environment
  • Get an image
  • Run inference of MechaNet.

Set up your environment variables

Generate a .env file with the following environment variables in your local development setting.
.env

Set up your environment

Install the required dependencies to make an API request.

Download a test image

Make an API Request

Make an API request by passing the image to our API.

Make an API request with additional information

In addition to the image, you may want to pass auxiliary information such as the indication for the scan, and potentially past reports for the same patient. In this case, you can optionally pass this data to the inputs body as dictionaries. You can pass both, or either data to the body of the request.
The PAST_REPORTS_DATES_TIMES data type is list of tuples, each of length 5, where the first element is the report text (string) and the remaining four elements represent the time delta from the current date in the format (YYYY, DD, HH, MM) - years, days, hours, and minutes ago respectively.