This API runs automatically if your webpage has images that do not have an ALT tag. It performs deep learning-based image recognition and automatically adds the relevant caption as an ALT tag and aria-label to the image.
The parameter required for this function is an object of type img. This means that you can query your element and pass it as the parameter, for example:
<img src="/path/to/image.png" onload="agastya.altTags(this)">
<!-- or --> 
<script> agastya.autoAlt(document.querySelector("img:not([alt])")); </script>
When the API is ready, the following is performed on your page automatically:
var images = document.querySelectorAll("img");
for (var i = 0; i < images.length; i++) { // Find all images
Note that AutoALT™ is only available in custom-designed plans for an extra charge and is not currently part of the free or premium plans.