Skip to main content
Document Extraction is a compute goal. Give it documents and a field list. It can extract, check other tools and ask you about unresolved fields before returning its result.

Upload and create a goal

Upload each PDF or image and keep its document_id. Delete an upload you no longer need. Create a goal through the normal quote/payment flow:
Field types are string, number and boolean. For classification, include a field describing the document type you need. Field names are unique ASCII identifiers starting with a letter. Each document uses the same field list. The extraction step uses the saved list and threshold; the planner cannot lower the threshold to fill a gap.

Results and unresolved fields

Read the goal’s outputs. Each extraction writes results/document-extraction/{task_id}.json, including pages_processed, cost_usdc and fields:
Page numbers start at 1; an image is one page. A region uses normalized left, top, width, height coordinates in [0,1]. Every resolved field has a page and either quoted text or a region. Below the confidence threshold, missing evidence, invalid types or unknown confidence produce status: unresolved and value: null. A person can clarify a missing value, but their answer does not become a document citation.

Price and limits

Extraction is charged per page (see Pricing), drawn from the compute budget. The page count comes from the uploaded file. Repeat extraction steps process and charge those pages again. Orchestration and any other tools are additional. Limits: 10 documents per goal and 50 scalar fields. Size, page and upload limits are on Upload a document. Extracted results and receipts remain with the goal. Upload again if a long-running goal needs an expired document.