POST
/
models
/
v2
/
AdamCodd
/
distilbert-base-uncased-finetuned-sentiment-amazon
curl --request POST \
  --url https://api.bytez.com/models/v2/AdamCodd/distilbert-base-uncased-finetuned-sentiment-amazon \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "The Eiffel Tower is amazing."
}'
{
  "output": "positive"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
text
string
required

Input text to classify.

Example:

"The Eiffel Tower is amazing."

Response

200 - application/json
Successful response with the classification.
output
string

Classification label.