Skip to main content

Overview

The Edit endpoint fills forms and modifies documents based on natural language instructions. Provide a document and describe what to change — Aifano handles field detection, text placement, and formatting automatically. Credits: 4 credits per page

Basic Usage

Response

The document_url is a presigned download link valid for 24 hours. The form_schema describes detected fields and can be reused for the same form type.

Edit Options

Customize the editing behavior:

Form Schema

For repeatable form filling, provide a form_schema with predefined field locations. This improves speed and consistency when processing the same form type multiple times:
The first time you edit a PDF form, the response includes a form_schema with detected fields. Save this schema and reuse it for subsequent edits of the same form type to improve accuracy and speed.

Supported Formats

Async Processing

For large documents, use the async variant:
See Async Processing for details on polling and webhooks.

Common Use Cases

Tax Forms

Auto-fill W-2s, 1099s, and other tax documents with employee or contractor data.

Insurance Claims

Complete claim forms with policyholder information and incident details.

Government Applications

Fill permit applications, license renewals, and regulatory filings.

HR Onboarding

Pre-fill employment contracts, NDAs, and benefits enrollment forms.