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.
Zero-Shot Classification
text-classify
Score your own labels against a text and return the best match.
POST {text, labels:[...]}. The response is {label, score, all_scores}, where all_scores maps each label to its score.
POST/v1/proxy/text-classify
Zero-shot classification (sync)
Parameters
Name
Type
Required
Description
text
string
required
The text to classify.
labels
array<string>
required
Candidate labels.
curl -X POST https://api.cn8.io/v1/proxy/text-classify \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"text":"your text here","labels":["value"]}'