Overview
The Extract endpoint combines document parsing with schema-based data extraction. Define a JSON schema describing the data you need, and Aifano extracts it from any document. Credits: 2 credits per pageBasic Usage
Response
Schema Design Tips
Use descriptive property names
Use descriptive property names
Property names guide the extraction model.
invoice_number works better than id.Add descriptions to properties
Add descriptions to properties
Use arrays for repeating data
Use arrays for repeating data
Line items, table rows, and lists should use
array type with items schema.Use enums for known values
Use enums for known values
Custom System Prompt
Guide the extraction model with a custom system prompt:Reusing Parsed Results
If you’ve already parsed a document, pass thejob_id to skip re-parsing: