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

NameTypeDescription

X-API-Key*

string

<API-key>

Request Body

NameTypeDescription

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 (only available for Enterprise users with extra cost)

language

string

Response language e.g., "french"

tag

string

To filter results based on tag, e.g., "Books"

{
   "content": "This is the answer to your message or question",
   "docId": "abcd1234",
   "url": "https://cdn.openai.com/papers/gpt-4.pdf",
   "references": [
      {
         "pageNumber": 71,
         "fromLine": 41,
         "toLine": 48
      }
   ]
}

Last updated