Perform document extraction inference on the service
- POST /_inference/document_extraction/{inference_id}
Extract the content of documents, such as PDFs or images of documents, into a textual format.
Required privileges
- Cluster privileges monitor_inference
Request body
-
inputunion oneOfrequired -
The documents to extract the content from. Either a
contentobject or an array ofcontentobjects.contentobject example:"input": { "content": { "type": "pdf", "format": "base64", "value": "data:application/pdf;base64,..." } }contentobject array example:"input": [ { "content": { "type": "pdf", "format": "base64", "value": "data:application/pdf;base64,..." } }, { "content": { "type": "image", "format": "url", "value": "https://example.com/scanned-page.png" } } ] -
objectorobject[]
Response
application/json