Last updated
Last updated
To chat with all PDFs you just need to have at least one PDF uploaded using the API endpoint.
Using the save_chat
option you can save chat all history and can find the same in PDF.ai/documents/chat/all
POST
https://pdf.ai/api/v1/chat-all
Ask questions to get responses from any PDF
X-API-Key*
string
<API-key>
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