Extract Overview
Extract
Extract Overview
Section titled “Extract Overview”Extract structured data from Spanish invoices using AI.
What is Extract?
Section titled “What is Extract?”Kreyo Extract uses AI to parse invoice images and PDFs, returning structured data:
- Invoice metadata — Number, date, total
- Parties — Seller and buyer NIFs and names
- Line items — Products, quantities, prices
- Taxes — VAT breakdown
- Compliance — VeriFactu-ready output
Supported Formats
Section titled “Supported Formats”| Format | Input | Notes |
|---|---|---|
| File upload | Best quality | |
| PNG | File upload | High resolution preferred |
| JPEG | File upload | Min 300 DPI |
| Base64 | JSON payload | For inline processing |
How It Works
Section titled “How It Works”- Upload — Send invoice image or PDF
- AI Processing — Anthropic Claude or Groq vision models
- Validation — NIF checksums, date formats
- Response — Structured JSON
Example Request
Section titled “Example Request”POST /extract/v1/invoicesContent-Type: multipart/form-data
file: invoice.pdfExample Response
Section titled “Example Response”{ "success": true, "data": { "invoice_number": "F-2024-001", "date": "2024-01-15", "seller": { "nif": "B12345678", "name": "Empresa SL" }, "total": 1210.00, "vat_total": 210.00, "lines": [...] }}Compliance Scoring
Section titled “Compliance Scoring”Extract includes a compliance_score indicating how well the invoice matches VeriFactu requirements.