Getting Started

ClicheFactory extracts structured data from documents using AI. Send a PDF, image, or office file with a JSON schema — get clean, validated JSON back.

Choose Your Path
Quick Start

Install the package and run your first extraction. Pick your preferred tool:

# Install
pip install clichefactory
clichefactory configure

# Extract
from clichefactory import factory

client = factory(api_key="cliche-...")
cliche = client.cliche({"type": "object", "properties": {"total": {"type": "number"}}})
result = cliche.extract(file="invoice.pdf")
print(result.total)
# Install and configure
pip install clichefactory
clichefactory configure

# Extract
clichefactory extract invoice.pdf --schema schema.json
curl -X POST "https://api.clichefactory.com/v1/extract" \
  -H "X-API-KEY: cliche-..." \
  -F "file=@invoice.pdf" \
  -F 'schema={"type":"object","properties":{"total":{"type":"number"}}}'

Sign in to create an API key and start extracting.