POST
/
predict
/
classify
/
{model_id}
/
curl --request POST \
  --url https://api.epigos.ai/predict/classify/{model_id}/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "image": "base64"
}'
{
  "category": "cat",
  "confidence": 0.854,
  "predictions": [
    {
      "category": "cat",
      "confidence": 0.854
    },
    {
      "category": "dog",
      "confidence": 0.146
    }
  ]
}

Authorizations

X-API-Key
string
headerrequired

Your API key (obtained via your workspace API settings page)

Path Parameters

model_id
string
required

The unique ID of your model deployed on Epigos AI. You can find it in the web dashboard by viewing the model details.

Body

application/json
confidence
number

The confidence threshold used to filter out predictions

image
string
required

Image path to run predictions on. It can be base64 encoded string or URL to the image.

Response

200 - application/json
category
string
required

Predicted category of the image

confidence
number
required

highest predicted confidence score

predictions
object[]

collection of all predicted classes and their associated confidence values for the prediction