An api for classifying images