Ask any question about any invoice and get a precise answer with the exact coordinates where it was found. Works on the first call, no setup required.
Start buildingHow it works
POST the PDF to our API. We accept any invoice format — scanned, digital, multi-page.
Send natural language questions like "What is the total amount due?" or "List all line items with quantities and unit prices."
Receive a JSON response with the extracted values plus exact page coordinates showing where each answer was found.
API example
curl -X POST https://api.ninjadoc.ai/grounded-qa \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "pdf=@invoice.pdf" \
-F "questions=What is the total amount due?" \
-F "questions=What is the vendor name?" \
-F "questions=What is the invoice date?"
# Response
{
"job_id": "01JVABCXYZ",
"page_count": 2,
"questions": [
{
"index": 0,
"question": "What is the total amount due?",
"answer": "$4,250.00",
"confidence": 0.99,
"evidence": [
{
"page_index": 0,
"evidence_texts": ["Total Amount Due: $4,250.00"],
"located": [
{
"boxes": [
{
"normalized": { "x1": 680, "y1": 820, "x2": 890, "y2": 850 },
"pixel": { "x1": 420, "y1": 680, "x2": 540, "y2": 700 }
}
]
}
]
}
]
}
],
"timing": { "total_ms": 1843 }
}What you get
Works with
FAQ
Related use cases
Build contract review agents that extract obligations, dates, parties, and clauses with bounding boxes and citation URLs for legal review.
Read moreCollect compliance evidence from policies, forms, reports, and control documents with citation URLs, bounding boxes, and audit-ready JSON.
Read moreExtract KYC and financial document fields with bounding boxes, citation URLs, confidence scores, and audit-ready evidence for review workflows.
Read morePay per page. Credits never expire. No monthly fees.
Start building