Skip to main content
POST
/
parse
/
pdf
/
Parse Pdf
curl --request POST \
  --url https://rag-prod.studio.lyzr.ai/v3/parse/pdf/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form data_parser=llmsherpa \
  --form chunk_size=1000 \
  --form chunk_overlap=100 \
  --form 'extra_info={}' \
  --form file=@example-file
"<string>"

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
file
file
required

The PDF file to upload.

data_parser
string | null

The parser engine to use (e.g., 'llmsherpa').

Example:

"llmsherpa"

chunk_size
integer | null

Size of the chunks for text splitting.

Example:

1000

chunk_overlap
integer | null

Overlap between consecutive text chunks.

Example:

100

extra_info
string

Optional JSON string of extra metadata to associate with the parsed documents.

Example:

"{}"

Response

PDF file successfully parsed and documents returned.

Placeholder for a list of processed documents.