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.
Extractive answer span with confidence, offsets, and is_confident flag.
POST {question, context}. Response is {answer, score, start, end, is_confident}.
/v1/proxy/text-qaQuestion answering (sync)
| Name | Type | Required | Description |
|---|---|---|---|
question | string | required | The question |
context | string | required | Context passage containing the answer |
{
"status": "success",
"data": {
"answer": "Cupertino California",
"score": 0.9666,
"start": 26,
"end": 46,
"is_confident": true
}
}
For QA over your own knowledge base with retrieval, see the Chatbot service — it handles retrieval + generation in one call.