/// EXTRACT
2 credits

Ask a PDF API — question answering with verified citations

Ask a question in plain English; get an answer with page-level citations that are checked against the real page text before they're returned.

/// Quick answer

Ask a PDF answers a natural-language question by first selecting the most relevant pages (a lexical overlap score against the question, not a full vector index) and sending only those to an LLM, which keeps cost and latency down on long documents. Every citation the model returns is independently checked as a real substring of the page text it claims to come from — a citation that doesn't actually appear on that page is dropped, and the response's confidence score is reduced for each one dropped, rather than passing through an unverifiable quote.

Try Ask a PDF API — free →Read the docs

Free account. No card required.

How does the Ask a PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/pdf-ask \
  -H "X-API-Key: ash_live_..." \
  -F "file=@document.pdf" \
  -F 'options={"question":"What is the total amount due?"}'

Common use cases

RELATED TOOLS