If I want a model to be able to detect 4 different types of images to analyze, how do I do that

I am trying to have the model figure out what type of image it is then analyze it. What exactly do I do for that?

Train a classification model that can tell you which of the 4 types of image it is, and then conditionally run whatever other analysis you want to do after.

If you want to run 2 different object detection models depending on the type of image you classify, you could set up a workflow like this:

Is it possible to automate inputting images into it? Like through another website API that I can integrate it into the input then export the output into my python program.