0
--

Run with API

See our complete quickstart for how to get started with our API in minutes.


from clarifai.client.model import Model

image_url = "https://s3.amazonaws.com/samples.clarifai.com/people_walking2.jpeg"

model_url = "https://clarifai.com/1991-1991/my-first-application-475psf/models/STAR"
model_prediction = Model(url=model_url,pat="YOUR_PAT_HERE").predict_by_url(image_url)

print(model_prediction.outputs[0].data.regions)