Parsing Invoices
Extract structured data from invoices.
Getting Started
VLM-1 can extract structured data from invoices in PDF or image format. Here’s a step-by-step guide on how to parse an invoice:
Upload Invoice
Use the /v1/files
endpoint to upload the invoice you want to parse.
You should see a response like this:
Submit the Invoice Parsing Job
Submit the uploaded file (via its file_id
) to the /v1/document/generate
endpoint to start the invoice parsing job. This endpoint supports PDF files and images, and submits the job to a queue for processing (batch=True
).
You should see a response like this:
Fetch the Results
Use the /v1/document/{request_id}
endpoint to fetch the results of the invoice parsing job. The results of the extraction job will be in JSON format under the response
field.
Illustrative Examples
Here is an example of the structured JSON output that VLM-1 can extract from an invoice:
Parsing an invoice with VLM-1
You should see a response like this:
As you can see, VLM-1 can extract a wide range of detailed information from the invoice, including vendor and customer details, line items, payment terms, and more. This structured data can be easily integrated into various financial systems, accounting software, or used for automated invoice processing.
Get Started with our Document -> JSON API
Head over to our Document -> JSON to start building your own document processing pipeline with VLM-1. Sign-up for access to our API here.