Qa
Q&A over a document — answer + confidence + source quote. Core RAG building block.
$0.02
per call
POST /qa
AI Processing
Try It
This tool requires an API key. Get one from $1 to try it.
curl Example
curl -X POST https://api.aipaygen.com/qa \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"context": "string",
"question": "string"
}'
Python Example
import requests
resp = requests.post(
"https://api.aipaygen.com/qa",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"context": "string",
"question": "string"
}
)
print(resp.json())
Response Format
{
"result": "<Qa output>",
"_meta": {
"endpoint": "/qa",
"model": "claude-sonnet-4-20250514",
"cost_usd": 0.02
}
}
Related Tools
Get API Key — From $1
$0.25 trial credits free. ~40 AI calls. No subscription.
Get StartedOr install via MCP: pip install aipaygen-mcp