The Cerviray AI API allows developers to integrate our cutting-edge cervical cancer diagnostic technology into their applications. Each request is subject to a usage limitation from your account.
My License Key:
The API supports both GET and POST requests to http://cervirayai.aidot.ai/api/request. Use your license_key in all requests.
Parameters:
Example:
http://cervirayai.aidot.ai/api/request?license_key=YOUR_LICENSE_KEY&file_url=http://example.com/image.jpg
The POST request uses multipart/form-data to upload an image file directly.
Parameters:
Request Format:
multipart/form-datalicense_key=YOUR_LICENSE_KEYfile with the image file as the valueThe API returns a JSON object with the following fields:
"TD0": "Unsatisfactory (Not a cervix image)""TD1": "Unsatisfactory (Out of focus)""TD2": "Unsatisfactory (Too dark)""TD3": "Unsatisfactory (Cervix not clear)""TD4": "Unsatisfactory (Taken from too far)""OK0": "Satisfactory (Well-captured actual cervix image)""OK1": "Satisfactory (Photo of paper or monitor)""OK2": "Satisfactory (Slightly blurred image)"Example:
{
"satisfactory": "OK0",
"result": "CIN1",
"score": "0.6786764860153198",
"detection": [
{ "label": "abnormal", "x1": "1320", "y1": "84", "x2": "2198", "y2": "1294" },
{ "label": "abnormal", "x1": "769", "y1": "1126", "x2": "1340", "y2": "2133" },
{ "label": "abnormal", "x1": "1626", "y1": "1882", "x2": "2017", "y2": "2145" },
{ "label": "abnormal", "x1": "1765", "y1": "1594", "x2": "1947", "y2": "1881" }
]
}
Note: If the result is "Normal", the detection array will be empty.
The API may return the following error codes:
license_key, invalid file_url, or non-image file).license_key.Example Error:
{
"detail": "Insufficient tokens: 0 available. Next recharge in 01:23:45"
}
The API response speed depends on network conditions and server load. Our data processing servers are currently located in South Korea. If desired, we can collaborate to establish a local AI server in your region for faster processing and enhanced data privacy. For collaboration inquiries, please contact us at marketing@aidot.ai.