Status: broken
Upstream raises 'list object has no attribute items' on every valid request. No bill on failure.
Detect categorical emotions in text — currently broken upstream
Designed to classify text into emotion categories (joy, sadness, anger, fear, surprise, disgust, etc.). The Pydantic schema accepts a texts array of strings; however the upstream handler currently iterates `texts.items()` (treating it as a dict) and therefore raises before producing a result. Both the legacy `text` (string) form and the documented `texts` (array) form fail. Until the upstream is patched, this endpoint returns `status:error` for every call. The gateway does not bill failed calls, so probing the endpoint costs nothing.
Upstream raises 'list object has no attribute items' on every valid request. No bill on failure.
Categorical emotion scoring (joy, sadness, anger, fear, surprise, disgust, …) with a top label.
Standard CN8 Gateway auth — apk_ key with text-emotion in allowed_services.
$0.002 per request.
Flag angry or frustrated customers for faster response.
Measure emotional tone across reviews, social posts, or survey responses.
Input
texts: array<string> (per Pydantic schema)
Output
Currently always status:error from upstream
Prerequisites
POST a texts array. The upstream is broken and will return an error envelope. Documented for completeness; do not depend on this endpoint until the changelog says it is fixed.
{
"texts": ["I am so happy and excited!"]
}Response
{
"status": "error",
"data": {
"detail": "'list' object has no attribute 'items'"
},
"gateway": {
"service": "text-emotion"
},
"cost": { "units": 0.0, "tokens": 0.0 },
"message": "Upstream service error"
}Failed calls are not billed (worker drop-on-error rule).
Categorical emotion classifier — currently non-functional at upstream.
/v1/proxy/text-emotion
Billed per request when functional. No charge for failed calls today.
| Service | Unit | Price |
|---|---|---|
| Emotion Detection | item | $0.002/request |
A: Not today. Use the Sentiment + Zero-Shot Classification workaround above until the changelog confirms the upstream is fixed.
A: No. The gateway's worker drops billing for upstream-error responses.
1.2 (2026-04-29)
1.1 (2026-02-23)
1.0 (2026-01-26)