I’m not a JS expert but you just need to take a look at what inference API takes as input for that specific task and put it in the request itself (the data part) I don’t know equivalent for vanilla JS of that function, but it’s anything that reads an image for object detection, I guess. (it’s only text in NLP anyway if you’re working on NLP)