Skip to main content

Prediction API

We make our Prediction API directly accessible. To manage access, you need a token that authenticates you with the API. You obtain your API token on your user profile page with the New Token button. To predict on a particular image, you use a POST request to send this image to our servers and will get back a JSON response. As an example, here is a request with the command line tool curl:

curl \
-H "Authorization: token your-api-token" \
-X POST -F 'input=@your-image.jpeg' \
https://api.structuredai.com/prediction/svenkreiss/decouple