Skip to main content

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:
  1. An Aifano API key (get one here)
  2. A basic understanding of the Parse and Extract endpoints
  3. Python 3.8+ or Node.js 18+ installed

Suggest a Cookbook

Have a use case you’d like to see covered? Email us at support@aifano.com with your suggestion.