Chat with all PDFs
To chat with all PDFs you just need to have at least one PDF uploaded using the upload API endpoint.
Chat with all PDFs
Chat with all PDFs
POST
https://pdf.ai/api/v1/chat-all
Ask questions to get responses from any PDF
Headers
X-API-Key*
string
<API-key>
Request Body
save_chat
boolean
Option to save chat history
message*
string
Message or question you want to get answer from PDF
use_gpt4
boolean
To get response using GPT-4 model. Default model: gpt-4-turbo
model
string
To choose GPT-4 model "gpt-4o" or "gpt-4-turbo"(default). gpt-4o message costs 2 credits, gpt-4-turbo message costs 4 credits.
language
string
Response language e.g., "french"
tag
string
To filter results based on tag, e.g., "Books"
topMatches
number
Max number of relevant or best-matched documents to consider for answering the query Default: 10
sys_prompt
string
Customized system prompt
{
"content": "This is the answer to your message or question",
"references": [
{
"pageNumber": 71,
"fromLine": 41,
"toLine": 48,
"docId": "abcd1234",
"url": "https://cdn.openai.com/papers/gpt-4.pdf",
}
]
}
Last updated
Was this helpful?