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

> 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 1. Presents an n8n form where a user uploads a single invoice page image (PNG/JPG). 2. Converts the uploaded file to a base64 string to embed it into an API request. 3. Sends the image to the DGX Spark LiteLLM chat completions endpoint using an OCR model to produce invoice text. 4. 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. 5. Parses the returned JSON and displays the extracted fields in an n8n form completion screen. Setup 1. Configure an OpenAI API credential in n8n that points to your DGX Spark LiteLLM server (base URL like http://<spark-ip:4000) and select it in both 

- **Domain**: `n8n-workflow-21011.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21011
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21011.n8n.io
- Documentation: https://n8n.io/workflows/21011
