About this endpoint
What it does
Uploads a PDF file and a natural-language question, then returns a generated answer based on the document content.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | PDF file to query. Maximum 10 MB. Must be a valid, non-password-protected PDF. |
| query | String | Yes | Natural-language question about the document content. Maximum length: 2000 characters. |
Response
Returns a JSON object with an answer string field. The response shape is described as depending on the LLM output, but it always includes answer.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| answer | String | No | The generated answer to the question. |