Skip to main content
POST
/
v1
/
zero-shot-classification
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]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.woolball.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Classify text into given categories without prior training.

Body

Text
string
required
Text to classify
CandidateLabels
array
required
List of possible labels for classification

Response

data
object
Classification results

Status Codes

200
object
OK - Successful request
400
object
Bad Request - Validation error occurred
401
object
Unauthorized - Authentication failed
402
object
Payment Required
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]
  }
}