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.
Question Answering
text-qa
Extract the exact answer span from a passage, with a confidence score, character offsets, and an is_confident flag.
POST a question and a context passage. The response is {answer, score, start, end, is_confident}.
POST/v1/proxy/text-qa
Question answering (synchronous)
Parameters
Name
Type
Required
Description
question
string
required
The question to answer.
context
string
required
The passage containing the answer.
curl -X POST https://api.cn8.io/v1/proxy/text-qa \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"question":"value","context":"your text here"}'