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.
Token-level precision / recall / F1 between aligned candidate / reference text lists.
POST {candidates: [...], references: [...]} (same length). Response is {results: [{precision, recall, f1}, ...]} in the same order.
/v1/proxy/text-similarityCompute text similarity (sync)
| Name | Type | Required | Description |
|---|---|---|---|
candidates | array<string> | required | Candidate texts |
references | array<string> | required | Reference texts (same length as candidates) |
{
"status": "success",
"data": {
"results": [
{ "precision": 0.9589, "recall": 0.9589, "f1": 0.9589 }
]
}
}