For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chat with all PDFs

To chat with all PDFs you just need to have at least one PDF uploaded using the upload API endpoint.

Using the save_chat option you can save chat all history and can find the same in PDF.ai/documents/chat/all

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

Name
Type
Description

X-API-Key*

string

<API-key>

Request Body

Name
Type
Description

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

Last updated

Was this helpful?