POST
/
classify
Classify
curl --request POST \
  --url https://serving.app.predibase.com/tenant_id/deployments/v2/llms/deployment_name/classify \
  --header 'Content-Type: application/json' \
  --data '{
  "input": [
    "prompt 1"
  ],
  "model": "my-classification-adapter",
  "api_token": "<string>"
}'
{
  "api_token": "<string>",
  "id": "<string>",
  "object": "list",
  "created": 1755208477,
  "model": "my-classification-adapter",
  "data": [
    {
      "api_token": "<string>",
      "index": 0,
      "label": "<string>",
      "probs": [
        0.7,
        0.3
      ],
      "num_classes": 2
    }
  ],
  "usage": {
    "prompt_tokens": 123,
    "total_tokens": 123,
    "completion_tokens": 123
  }
}

Body

application/json

Response

200
application/json

Classification results

The response is of type object.