Emotion Detection
text-emotionCategorical emotion classification. Temporarily unavailable — see the workaround.
Temporarily unavailable
This endpoint is offline while we finish work on it. Use Sentiment Analysis plus Zero-Shot Classification (with your own emotion labels) as a workaround. Calls are not billed while it is unavailable.
POST
/v1/proxy/text-emotionDetect emotions (sync) — temporarily unavailable
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
texts | array<string> | required | Array of texts to analyze. |
curl -X POST https://api.cn8.io/v1/proxy/text-emotion \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"texts":["your text here"]}'Response
{
"status": "success",
"data": {
"results": [
{ "label": "joy", "score": 0.97 }
]
}
}