{
"document_type": {
"value": "invoice",
"quote": "Invoice INV/2023/03/0008",
"confidence": 0.9
},
"vendor": {
"name": {
"value": "Global Wholesaler",
"quote": "Global Wholesaler",
"confidence": 0.95
},
"address": {
"value": "Azure Interior 4557 De Silva St Fremont CA 94538 United States",
"quote": "Azure Interior 4557 De Silva St Fremont CA 94538 United States",
"confidence": 0.95
},
"vat_id": {
"value": null,
"quote": null,
"confidence": null
},
"email": {
"value": "[email protected]",
"quote": "[email protected]",
"confidence": 0.95
},
"phone": {
"value": "(870)-931-0505",
"quote": "(870)-931-0505",
"confidence": 0.95
},
"iban": {
"value": "US1234567890",
"quote": "US1234567890",
"confidence": 0.95
}
},
"customer": {
"name": {
"value": "YourCompany",
"quote": "YourCompany, Mitchell Admin",
"confidence": 0.95
},
"address": {
"value": "215 Vine St Scranton PA 18503 United States",
"quote": "215 Vine St Scranton PA 18503 United States",
"confidence": 0.95
},
"vat_id": {
"value": null,
"quote": null,
"confidence": null
}
},
"invoice_number": {
"value": "INV/2023/03/0008",
"quote": "Invoice INV/2023/03/0008",
"confidence": 0.95
},
"order_number": {
"value": "CUSTREF123",
"quote": "Reference:CUSTREF123",
"confidence": 0.95
},
"issue_date": {
"value": "2023-03-20",
"quote": "03/20/2023",
"confidence": 0.9
},
"due_date": {
"value": "2023-04-04",
"quote": "04/04/2023",
"confidence": 0.9
},
"currency": {
"value": "USD",
"quote": "$ 112.00",
"confidence": 0.9
},
"payment_terms": {
"value": "15 Days",
"quote": "Payment terms: 15 Days",
"confidence": 0.95
},
"totals": {
"subtotal": {
"value": 262.9,
"quote": "Subtotal $ 262.90",
"confidence": 0.98
},
"vat_total": {
"value": 16.94,
"quote": "Tax 15% on $ 112.90 $ 16.94",
"confidence": 0.98
},
"total": {
"value": 279.84,
"quote": "Total $ 279.84",
"confidence": 0.98
},
"amount_due": {
"value": null,
"quote": null,
"confidence": null
}
},
"vat_breakdown": [
{
"rate": 15,
"base": 112.9,
"amount": 16.94,
"quote": "$ 16.94",
"confidence": 0.85
}
],
"line_items": [
{
"description": "Beeswax XL",
"quantity": 1,
"unit_price": 42,
"amount": 42,
"vat_rate": 15,
"quote": "[17589684] Beeswax XL Acme beeswax 1.00 kg 42.00 0.00 15.00% $ 42.00",
"confidence": 0.85
},
{
"description": "Office Chair",
"quantity": 1,
"unit_price": 70,
"amount": 70,
"vat_rate": 15,
"quote": "[FURN_7777] Office Chair 1.00 Units 70.00 0.00 15.00% $ 70.00",
"confidence": 0.85
},
{
"description": "Olive Oil",
"quantity": 1,
"unit_price": 1,
"amount": 0.9,
"vat_rate": 15,
"quote": "*987123* Olive Oil 1.00 L 1.00 10.00 15.00% $ 0.90",
"confidence": 0.85
},
{
"description": "Luxury Truffles",
"quantity": 15,
"unit_price": 10,
"amount": 150,
"vat_rate": null,
"quote": "[LUX_TRF] Luxury Truffles 15.00 g 10.00 0.00 $ 150.00",
"confidence": 0.85
}
],
"checks": {
"subtotal_plus_vat_equals_total": true,
"line_items_sum_equals_subtotal_or_total": true,
"vat_breakdown_sum_equals_vat_total": true,
"due_date_not_before_issue_date": true
},
"overall_confidence": 0.94,
"missing": [
"vendor_vat_id",
"customer_vat_id",
"amount_due"
],
"pages": 1,
"billed_usd": 0.0075,
"input": "pdf",
"text_chars": 1036,
"model": "@cf/mistralai/mistral-small-3.1-24b-instruct",
"timing_ms": {
"pdf_text_ms": 826,
"extract_ms": 14828,
"total": 15654
},
"confidence_method": "Per field: 0.6 if the quote is found verbatim in the document text (+0.3 if the value matches the quote; 0.35 base if the quote is not verbatim), then +0.08/-0.15 from the arithmetic checks for totals. Values with confidence < 0.6 should be reviewed.",
"limits": "LLM extraction can misread layouts; check important values (quotes make that quick). Scanned PDFs need image input. Documents are not stored.",
"sources": [
{
"name": "Cloudflare Workers AI: toMarkdown (PDF text layer), Mistral Small 3.1 24B (OCR of images + field extraction; fallback Llama 3.3 70B / Llama 4 Scout / Gemma 3 12B)",
"url": "https://developers.cloudflare.com/workers-ai/",
"note": "Documents are processed in memory and not stored or logged. No third-party LLM API."
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14523/invoice+and+text+to+json+extraction+api/37076/invoice+to+json?url=https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/AzureInterior.pdf' --header 'Authorization: Bearer YOUR_API_KEY'
{
"document_type": {
"value": "invoice",
"quote": "Invoice INV/2023/03/0008",
"confidence": 0.9
},
"vendor": {
"name": {
"value": "Global Wholesaler",
"quote": "Global Wholesaler",
"confidence": 0.95
},
"address": {
"value": "Azure Interior 4557 De Silva St Fremont CA 94538 United States",
"quote": "Azure Interior 4557 De Silva St Fremont CA 94538 United States",
"confidence": 0.95
},
"vat_id": {
"value": null,
"quote": null,
"confidence": null
},
"email": {
"value": "[email protected]",
"quote": "[email protected]",
"confidence": 0.95
},
"phone": {
"value": "(870)-931-0505",
"quote": "(870)-931-0505",
"confidence": 0.95
},
"iban": {
"value": "US1234567890",
"quote": "US1234567890",
"confidence": 0.95
}
},
"customer": {
"name": {
"value": "YourCompany",
"quote": "YourCompany, Mitchell Admin",
"confidence": 0.95
},
"address": {
"value": "215 Vine St Scranton PA 18503 United States",
"quote": "215 Vine St Scranton PA 18503 United States",
"confidence": 0.95
},
"vat_id": {
"value": null,
"quote": null,
"confidence": null
}
},
"invoice_number": {
"value": "INV/2023/03/0008",
"quote": "Invoice INV/2023/03/0008",
"confidence": 0.95
},
"order_number": {
"value": "CUSTREF123",
"quote": "Reference:CUSTREF123",
"confidence": 0.95
},
"issue_date": {
"value": "2023-03-20",
"quote": "03/20/2023",
"confidence": 0.9
},
"due_date": {
"value": "2023-04-04",
"quote": "04/04/2023",
"confidence": 0.9
},
"currency": {
"value": "USD",
"quote": "$ 112.00",
"confidence": 0.9
},
"payment_terms": {
"value": "15 Days",
"quote": "Payment terms: 15 Days",
"confidence": 0.95
},
"totals": {
"subtotal": {
"value": 262.9,
"quote": "$ 262.90",
"confidence": 0.98
},
"vat_total": {
"value": 16.94,
"quote": "$ 16.94",
"confidence": 0.98
},
"total": {
"value": 279.84,
"quote": "$ 279.84",
"confidence": 0.98
},
"amount_due": {
"value": null,
"quote": null,
"confidence": null
}
},
"vat_breakdown": [
{
"rate": 15,
"base": 112.9,
"amount": 16.94,
"quote": "$ 16.94",
"confidence": 0.85
}
],
"line_items": [
{
"description": "Beeswax XL",
"quantity": 1,
"unit_price": 42,
"amount": 42,
"vat_rate": 15,
"quote": "[17589684] Beeswax XL Acme beeswax 1.00 kg 42.00 0.00 15.00% $ 42.00",
"confidence": 0.85
},
{
"description": "Office Chair",
"quantity": 1,
"unit_price": 70,
"amount": 70,
"vat_rate": 15,
"quote": "[FURN_7777] Office Chair 1.00 Units 70.00 0.00 15.00% $ 70.00",
"confidence": 0.85
},
{
"description": "Olive Oil",
"quantity": 1,
"unit_price": 1,
"amount": 0.9,
"vat_rate": 15,
"quote": "*987123* Olive Oil 1.00 L 1.00 10.00 15.00% $ 0.90",
"confidence": 0.85
},
{
"description": "Luxury Truffles",
"quantity": 15,
"unit_price": 10,
"amount": 150,
"vat_rate": null,
"quote": "[LUX_TRF] Luxury Truffles 15.00 g 10.00 0.00 $ 150.00",
"confidence": 0.85
}
],
"checks": {
"subtotal_plus_vat_equals_total": true,
"line_items_sum_equals_subtotal_or_total": true,
"vat_breakdown_sum_equals_vat_total": true,
"due_date_not_before_issue_date": true
},
"overall_confidence": 0.94,
"missing": [
"vendor_vat_id",
"customer_vat_id",
"amount_due"
],
"pages": 1,
"billed_usd": 0.0075,
"input": "pdf",
"text_chars": 1036,
"model": "@cf/mistralai/mistral-small-3.1-24b-instruct",
"timing_ms": {
"pdf_text_ms": 719,
"extract_ms": 17579,
"total": 18298
},
"confidence_method": "Per field: 0.6 if the quote is found verbatim in the document text (+0.3 if the value matches the quote; 0.35 base if the quote is not verbatim), then +0.08/-0.15 from the arithmetic checks for totals. Values with confidence < 0.6 should be reviewed.",
"limits": "LLM extraction can misread layouts; check important values (quotes make that quick). Scanned PDFs need image input. Documents are not stored.",
"sources": [
{
"name": "Cloudflare Workers AI: toMarkdown (PDF text layer), Mistral Small 3.1 24B (OCR of images + field extraction; fallback Llama 3.3 70B / Llama 4 Scout / Gemma 3 12B)",
"url": "https://developers.cloudflare.com/workers-ai/",
"note": "Documents are processed in memory and not stored or logged. No third-party LLM API."
}
]
}
curl --location --request POST 'https://zylalabs.com/api/14523/invoice+and+text+to+json+extraction+api/37077/invoice+to+json+post' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"url":"https://raw.githubusercontent.com/invoice-x/invoice2data/master/tests/compare/AzureInterior.pdf"}'
{
"data": {
"order_id": "4471",
"company": "ACME GmbH",
"total": 1299,
"currency": "EUR",
"due_date": "2026-11-30",
"email": "[email protected]"
},
"method": "workers-ai",
"model": "@cf/meta/llama-3.1-8b-instruct-fp8-fast",
"missing": [],
"not_verbatim_in_text": [],
"limits": "Small-model / heuristic extraction; check important values. Text is not stored.",
"sources": [
{
"name": "Cloudflare Workers AI (Llama 3.1 8B fp8-fast, fallback Llama 3.3 70B / Mistral Small 3.1, JSON mode)",
"url": "https://developers.cloudflare.com/workers-ai/"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14523/invoice+and+text+to+json+extraction+api/37078/text+to+json?text=Order #4471 from ACME GmbH, total EUR 1.299,00, due 2026-11-30, contact [email protected]&schema={"type":"object","properties":{"order_id":{"type":"string"},"company":{"type":"string"},"total":{"type":"number"},"currency":{"type":"string"},"due_date":{"type":"string","format":"date"},"email":{"type":"string","format":"email"}}}' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"order_id": "4471",
"total": 1299
},
"method": "workers-ai",
"model": "@cf/meta/llama-3.1-8b-instruct-fp8-fast",
"missing": [],
"not_verbatim_in_text": [],
"limits": "Small-model / heuristic extraction; check important values. Text is not stored.",
"sources": [
{
"name": "Cloudflare Workers AI (Llama 3.1 8B fp8-fast, fallback Llama 3.3 70B / Mistral Small 3.1, JSON mode)",
"url": "https://developers.cloudflare.com/workers-ai/"
}
]
}
curl --location --request POST 'https://zylalabs.com/api/14523/invoice+and+text+to+json+extraction+api/37079/text+to+json+post' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"text":"Order ID: 4471, Total: EUR 1.299,00","schema":{"type":"object","properties":{"order_id":{"type":"string"},"total":{"type":"number"}}}}'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए चालान और पाठ को JSON निष्कर्षण API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
इनवॉइस से JSON अंत बिंदु इनवॉइस और रसीदों से संरचित JSON डेटा लौटाते हैं जिसमें विक्रेता विवरण ग्राहक जानकारी इनवॉइस नंबर और वित्तीय कुल होते हैं टेक्स्ट से JSON अंत बिंदु गंदे टेक्स्ट इनपुट के आधार पर साफ JSON लौटाते हैं जो उपयोगकर्ता-परिभाषित स्कीमा के अनुसार संरचित होते हैं
चालान से JSON प्रतिक्रिया में प्रमुख क्षेत्रों में विक्रेता का नाम, पता, VAT आईडी, ईमेल, फोन, चालान संख्या,_issue_date, मुद्रा, उप-योग, VAT कुल और लाइन आइटम शामिल हैं टेक्स्ट से JSON के लिए प्रमुख क्षेत्र प्रदान की गई स्कीमा पर निर्भर करते हैं जैसे आदेश आईडी, कुल और देय तिथि
वापसी डेटा JSON प्रारूप में है, जो कुंजी-मूल्य जोड़ों के साथ संरचित है। चालानों के लिए, यह विक्रेता और ग्राहक विवरण के लिए नेस्टेड ऑब्जेक्ट्स के साथ एक निर्धारित स्कीमा का पालन करता है। टेक्स्ट से JSON प्रतिक्रियाएं उपयोगकर्ता-परिभाषित स्कीमा के आधार पर संरचित होती हैं, जिससे प्रकार की निरंतरता सुनिश्चित होती है
इंवॉइस से JSON अंत बिंदु विस्तृत इनवॉइस और रसीद जानकारी प्रदान करते हैं जिसमें विक्रेता और ग्राहक डेटा वित्तीय कुल और लाइन आइटम शामिल हैं टेक्स्ट से JSON अंत बिंदु निर्दिष्ट स्कीमा के आधार पर असंरचित टेक्स्ट से प्रासंगिक डेटा निकालते हैं
उपयोगकर्ता इनवॉइस के लिए JSON अंत बिंदुओं पर {url}, {file_base64, mime_type}, या {text} जैसे पैरामीटर भेज सकते हैं टेक्स्ट से JSON के लिए उपयोगकर्ता गंदे टेक्स्ट और एक JSONschema प्रदान करते हैं GET अनुरोध भी ?url= या ?text= पैरामीटर का उपयोग कर सकते हैं
प्रतिक्रिया डेटा को संरचित JSON वस्तुओं में व्यवस्थित किया गया है प्रत्येक कुंजी क्षेत्र में एक मान होता है जो स्रोत से शब्दशः उद्धरण होता है और एक विश्वास स्कोर होता है यह संगठन उपयोगकर्ताओं को निकाली गई जानकारी को आसानी से पहुंचने और व्याख्या करने की अनुमति देता है
डाटा की सटीकता को प्रत्येक निकाले गए फील्ड के लिए आत्मविश्वास स्कोर के माध्यम से बनाए रखा जाता है जो जानकारी की विश्वसनीयता को दर्शाता है अंकगणितीय जांच यह सुनिश्चित करती है कि कुल मिलें और उन्नत एआई मॉडल के उपयोग से निकासी की गुणवत्ता बढ़ती है
सामान्य उपयोग के मामलों में चालान प्रसंस्करण को स्वचालित करना रसीदों से प्रमुख जानकारी को निकालना और विश्लेषण के लिए असंरचित पाठ को संरचित डेटा में रूपांतरित करना शामिल है उपयोगकर्ता डेटा प्रविष्टि को सरल बना सकते हैं और वित्तीय रिकॉर्ड में सटीकता में सुधार कर सकते हैं