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.
Score user-defined labels against a text via NLI.
POST {text, labels:[...]}. Response is {label, score, all_scores} where all_scores is a label→score object.
/v1/proxy/text-classifyZero-shot classification (sync)
| Name | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to classify |
labels | array<string> | required | Candidate labels |
{
"status": "success",
"data": {
"label": "technology",
"score": 0.7642,
"all_scores": {
"technology": 0.7642,
"sports": 0.0023,
"food": 0.0001
}
}
}