Classify text into given categories without prior training.
Body
List of possible labels for classification
Response
Classification results
Corresponding confidence scores for each label
Status Codes
Bad Request - Validation error occurred
Unauthorized - Authentication failed
curl -X POST https://api.woolball.xyz/v1/zero-shot-classification \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"Text": "The movie was great, I really enjoyed it!",
"CandidateLabels": ["positive", "negative", "neutral"]
}'
{
"data": {
"labels": ["positive", "negative", "neutral"],
"scores": [0.92, 0.05, 0.03]
}
}