Loading API Reference...
CN8 is an AI gateway: a single proxy layer that gives you access to AI capabilities — chatbots with RAG, multi-agent orchestration, LLM completions, dubbing, TTS, media generation, and production-grade video/audio processing — all through one consistent API with unified auth, billing, and usage tracking.
Detect sentiment for a single text. Body is a texts array (1 element).
/v1/proxy/text-sentimentAnalyze sentiment (sync)
| Name | Type | Required | Description |
|---|---|---|---|
texts | array<string> | required | Array of texts. Send exactly 1 element — multi-text triggers an upstream bug. |
{
"status": "success",
"data": {
"results": [
{
"label": "positive",
"score": 0.9366,
"stars": "5 stars",
"is_positive": true,
"polarity": 1.0,
"language": "en",
"scores": null
}
]
}
}
Sending 2+ items in texts returns 'invalid literal for int() with base 10' — keep batch size at 1 until upstream is fixed.