API Documentation
...
AISpectra
Automated RedTeaming for AI/ML
<POST> Model Registration
4min
post /api/ais/v1 5/model registration/upload request body ic mea { "task type" "image classification", "analysis type" "extraction" } ic eva { "task type" "image classification", "analysis type" "evasion" } ic pos { "task type" "image classification", "analysis type" "data poisoning" } is mea { "task type" "image segmentation", "analysis type" "extraction" } tc mea { "task type" "tabular classification", "analysis type" "extraction" } tc eva { "task type" "tabular classification", "analysis type" "evasion" } tsf mea { "task type" "timeseries forecasting", "analysis type" "extraction" } nlp mea { "task type" "nlp classification", "analysis type" "extraction" } ts mea { "task type" "timeseries forecasting", "analysis type" "extraction" } od eva { "task type" "object detection", "analysis type" "evasion" } the request body is a json object with the following fields task type the name of the task type possible values are ic (image classification, is (image segmentation), tc (tabular classification), tsf (time series forecasting), text (nlp classification) analysis type the name of the analysis type possible values are mea (model extraction attack), eva (model evasion attack), and data poisoning or poisoning for (data poisoning) and model poisoning for (model poisoning) model upload option post /ais/v1 5/model registration/upload after receiving the unique model id and urls from the vulnerability analysis api, users can upload the required data and track the progress further note all files uploaded to the specified url should be in zipped format this only needs to be done once for any model and multiple analyses can be performed check image classification docid 6deiimjnkl5d0cdwstckb , image segmentation docid\ zgifjwp4yrvb4uog5 qvh tabular classification docid\ mvtlctnkashpx9mzjvb62 , time series forecasting docid\ kdsa2hzsaxo0wcqicddc4 & text recommendation (alpha release) docid\ pf0 v4ug62 akwbxclkoz , object detection docid\ u3g1wca wl4wed67bysah to know the file upload format note the model, data, and label must be uploaded to the given link within ten minutes for image classification poisoning addition, two clean models are required the model id must be saved by the user for future use for using nodejs sample code, install npm package request given ample code for python is tested for python version 3 7 given sample code for nodejs and javascript is tested for node v20lts