PDF Parsing
Uploads a PDF file and extracts the text inside it. Uses multipart/form-data.
POST/v1/parse/pdf
Form fields
| Field | Type | Required | Description |
|---|---|---|---|
model | string | ✓ | PDF parsing model |
file | file | ✓ | PDF file to parse |
Example
bash
curl https://app.qevron.ai/v1/parse/pdf \
-H "Authorization: Bearer $QEVRON_API_KEY" \
-F "model=<pdf-model>" \
-F "file=@document.pdf"python
import httpx
with open("document.pdf", "rb") as f:
resp = httpx.post(
"https://app.qevron.ai/v1/parse/pdf",
headers={"Authorization": f"Bearer {API_KEY}"},
data={"model": "<pdf-model>"},
files={"file": ("document.pdf", f, "application/pdf")},
)
print(resp.json())Response
The response contains the extracted text (and page/structure info if available):
json
{
"text": "All text extracted from the document...",
"pages": [
{ "page": 1, "text": "Text of the first page..." }
]
}TIP
To use this endpoint, your deployment must have a PDF parsing model/channel defined (e.g. Doc2x). Check available models with /v1/models.