Skip to main content

Using the REST API

If you want to call our API directly, we offer a REST endpoint that you can hit.

Predicting with image file

If you have an image file, you can hit our REST API with the following request:

curl --location --request POST 'https://api.dragoneye.ai/predict' \
--header 'Authorization: Bearer [AuthToken]' \
--form 'model_name="dragoneye/fashion"' \
--form 'image_file=@"[ImageFilePath]"'

Predicting with image URL

If your image is available at a publicly accessible URL, you can hit our REST API with the following request:

curl --location --request POST 'https://api.dragoneye.ai/predict' \
--header 'Authorization: Bearer [AuthToken]' \
--form 'model_name="dragoneye/fashion"' \
--form 'image_url="[ImageURL]"'

API Reference

The following is the detailed API specification for our REST API that you can use as a reference.