Overview
Cookbooks are practical, end-to-end examples that show how to solve real-world document processing tasks with the Aifano API. Each cookbook includes complete code samples you can copy and adapt.Available Cookbooks
Invoice Processing
Extract line items, totals, vendor details, and payment terms from invoices. Includes batch processing for multiple invoices.
Contract Analysis
Parse contracts, extract key clauses, dates, and parties. Split multi-section agreements into individual components.
Multi-Document Pipelines
Build end-to-end pipelines that split, parse, and extract data from bundled document packages.
What You’ll Learn
Each cookbook covers:- Problem definition — What document processing challenge we’re solving
- API setup — Authentication and configuration
- Step-by-step implementation — Complete code in Python, JavaScript, and cURL
- Output handling — How to process and use the structured results
- Production tips — Error handling, async processing, and optimization
Prerequisites
Before starting any cookbook, make sure you have:- An Aifano API key (get one here)
- A basic understanding of the Parse and Extract endpoints
- Python 3.8+ or Node.js 18+ installed