Answer questions based on provided context. The AI extracts answers ONLY from the given context - no external knowledge is used. Supports single or multiple questions.
$0.10 per requestPOST /api/qa
{
"text": "Python is a high-level programming language created by Guido van Rossum...",
"options": {
"questions": ["Who created Python?", "When was it released?"]
}
}
{
"result": {
"answers": [
{ "question": "Who created Python?", "answer": "Guido van Rossum", "success": true },
{ "question": "When was it released?", "answer": "1991", "success": true }
],
"total": 2,
"successful": 2,
"context_length": 234
},
"tokens_used": { "prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0 }
}
question or questions must be provided