POST
/
ai
/
prediction
/
classification
/
{MODEL_ID}
Classification use case
curl --request POST \
  --url https://application_id.applications.lucidworks.com/ai/prediction/classification/{MODEL_ID} \
  --header 'Content-Type: application/json' \
  --data '{
  "batch": [
    {
      "text": "Not all those who wander are lost."
    }
  ],
  "useCaseConfig": {
    "labels": [
      "<string>"
    ],
    "topK": 10,
    "similarityCutoff": 1
  }
}'
[
  {
    "predictions": [
      {
        "tokensUsed": {
          "inputTokens": 11,
          "labelTokens": 14
        },
        "labels": "<string>"
      }
    ]
  }
]

Headers

Authorization: Bearer ACCESS_TOKEN
string

The authentication and authorization access token.

Content-Type
string

application/json

Example:

"application/json"

Path Parameters

MODEL_ID
string
required

Unique identifier for the model.

Example:

"6a092bd4-5098-466c-94aa-40bf6829430\""

Body

application/json

Response

200 - application/json

OK

The response is of type object[].