New APIs for Google's ML Kit will let developers plug into the on-device AI model.