About this endpoint
What it does
Uploads a PDF and a natural-language question about that document, then returns the model’s answer. The request body includes the PDF file and the query text.
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. Max length: 2000 characters. |
Response
Returns a JSON object with an answer string field. The shape is based on the LLM response, but the response always includes answer.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| answer | String | No | The model’s answer to the question. |