Skip to content

Extract Overview

Extract

Extract structured data from Spanish invoices using AI.

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
FormatInputNotes
PDFFile uploadBest quality
PNGFile uploadHigh resolution preferred
JPEGFile uploadMin 300 DPI
Base64JSON payloadFor inline processing
  1. Upload — Send invoice image or PDF
  2. AI Processing — Anthropic Claude or Groq vision models
  3. Validation — NIF checksums, date formats
  4. Response — Structured JSON
Terminal window
POST /extract/v1/invoices
Content-Type: multipart/form-data
file: invoice.pdf
{
"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": [...]
}
}

Extract includes a compliance_score indicating how well the invoice matches VeriFactu requirements.