About this endpoint
What it does
Classifies an input text as positive or negative and returns the text, the predicted label, and a confidence score.
Request Body
| Parameter | Type | Description |
|---|---|---|
| text | String | Input text. Maximum length: 512 characters. |
Response
Returns a JSON object with text, label, and score fields. text is a string, label is a string enum with positive or negative, and score is a number between 0 and 1.
| Parameter | Type | Description |
|---|---|---|
| text | String | The text that was classified. |
| label | ENUM | The predicted sentiment label: positive or negative. |
| score | Number | Confidence score between 0 and 1. |



