Authorizations
Your unique API key for authentication.
Get your API key here: https://va.landing.ai/settings/api-key.
If using the EU endpoint, get your API key here: https://va.eu-west-1.landing.ai/settings/api-key.
Query Parameters
Which pages to process, separated by commas and starting from 0. For example, to process the first 3 pages, use '0,1,2'.
Body
A PDF file to be analyzed (50 pages max). Either this parameter or the image
parameter must be provided.
An image representing the document to analyse (50MB max). The image must be a valid image file (PNG, JPEG, etc.). Either this parameter or pdf
parameter must be provided.
Whether to include marginalia (headers, footers, notes in margins, etc.) in the response.
Whether to include metadata in the Markdown output.
JSON schema for field extraction from the document. This schema extracts structured data from the document. If provided, the response includes an extracted_schema
object with the extracted data and an extraction_metadata
object with the visual grounding metadata. The schema must be a valid JSON object and will be validated before processing the document.
Enable automatic rotation detection and correction for document pages. When enabled, the system will detect if pages are rotated and automatically correct text and table chunks for better extraction accuracy.