Extract invoice details from images with DGX Spark OCR and Qwen3.6

Go to Workflow
1 views
Built by Jamie Madden Jamie Madden
Created on October 15, 2026

Description

Quick overview
This workflow lets you upload an invoice image via an n8n form, runs OCR and field extraction against a DGX Spark-hosted LiteLLM OpenAI-compatible endpoint (OCR model + Qwen3.6), and returns the parsed supplier, invoice number, date, total, and currency in a completion page.

How it works
Presents an n8n form where a user uploads a single invoice page image (PNG/JPG).
Converts the uploaded file to a base64 string to embed it into an API request.
Sends the image to the DGX Spark LiteLLM chat completions endpoint using an OCR model to produce invoice text.
Sends the OCR text back to the same endpoint using the Qwen3.6 model to extract supplier name, invoice number, invoice date, total amount, and currency as JSON.
Parses the returned JSON and displays the extracted fields in an n8n form completion screen.

Setup
Configure an OpenAI API credential in n8n that points to your DGX Spark LiteLLM server (base URL like http://:4000) and select it in both HTTP Request steps.
Replace in the two request URLs with your DGX Spark host/IP (and ensure the /v1/chat/completions endpoint is reachable from n8n).
Verify the LiteLLM server exposes the models used by this workflow (model names ocr and qwen3.6) and adjust them if your deployment uses different identifiers.
Run the workflow once to get the form URL, then open it to upload an invoice image and test the extraction output.

This workflow was created by Jamie Madden and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (1)

HTTP Request
n8n-nodes-base.httpRequest