POST
/
models
/
v2
/
AyoubChLin
/
DistilBERT_eco_ZeroShot
curl --request POST \
  --url https://api.bytez.com/models/v2/AyoubChLin/DistilBERT_eco_ZeroShot \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "candidate_labels": [
    "positive",
    "negative"
  ],
  "text": "Ninja turtles are cool"
}'
{
  "output": [
    {
      "score": 0.92,
      "label": "positive"
    }
  ]
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
candidate_labels
string[]
required

Labels for classification.

Example:
["positive", "negative"]
text
string
required

Text to classify.

Example:

"Ninja turtles are cool"

Response

200 - application/json
Successful response with classification results.
output
any[]

Classification results.