Base URL: https://api.optii.eu
Include your API key in the X-API-Key or Authorization: Bearer header.
curl https://api.optii.eu/ocr/extract \ -H "X-API-Key: optii_sk_your_key" \ -F "file=@document.pdf"
Extract raw text from an image or PDF.
{
"success": true,
"text": "DUMONT & FILS SPRL\nTVA: BE0202239951...",
"lines": [
{ "text": "DUMONT & FILS SPRL", "confidence": 0.9912, "bbox": [...] }
],
"confidence": 0.9847,
"processing_time_ms": 342,
"file_hash": "a3b2c1d4"
} Extract structured invoice fields.
{
"success": true,
"supplier_name": "DUMONT & FILS SPRL",
"supplier_vat": "BE0202239951",
"invoice_number": "2024-0847",
"invoice_date": "15/03/2024",
"total_excl_vat": "1250.00",
"total_incl_vat": "1512.50",
"vat_amount": "262.50",
"currency": "EUR"
} PNG, JPG, JPEG, TIFF, BMP, WebP, PDF
French, Dutch, German, English
| Code | Meaning |
|---|---|
| 400 | Unsupported file type |
| 401 | Invalid API key |
| 413 | File too large |
| 429 | Rate limit / quota exceeded |
| 500 | Processing error |