Create extraction application
Create a standard or high-speed custom extraction application, and configure labels, fields, and extraction settings. Standard applications support parse_mode, source locations, PDF text first, stamp recognition, and related parsing settings. To create a high-speed custom extraction application, set ai_function to 1425 and provide field_key for fields and table sub-fields. High-speed applications do not support standard parsing settings.
Authorizations
Production OpenAPI Accessor access_key. You can find it in My API in the ADP platform. If the key is disabled, expired, or does not belong to the production environment, the API returns Accessor not found.
Path Parameters
Tenant name. Default: laiye.
Body
- Create standard custom extraction application
- Create high-speed extraction application
Set ai_function first. Use the standard custom extraction application parameters when ai_function is 1406. Use the high-speed custom extraction application parameters when ai_function is 1425.
Application type. Use 1406 to create a standard custom extraction application. If omitted, the API handles the request as 1406 by default.
1406 Application name.
1 - 100Extraction field configuration list. Up to 20 fields.
20Parsing mode. Required for standard custom extraction applications. Mode capabilities match the Web parsing configuration:
- standard: Standard parsing for clear digital documents. Supports source locations, PDF text first, and stamp recognition.
- advance: Enhanced parsing 1.0 for documents with stamps, signatures, multiple tables, or moderately complex layouts. Source locations are not supported.
- fast_vlm: Enhanced parsing 2.0 for complex layouts, scanned files, and multi-table documents. Supports source locations, PDF text first, and stamp recognition.
- agentic: Smart parsing that combines multiple models for complex documents. Supports source locations, PDF text first, and stamp recognition.
standard, advance, fast_vlm, agentic Application labels. Up to 5 labels.
5Whether to include source locations. Pass 1 to enable or 0 to disable. Supported by standard, fast_vlm, and agentic. Not supported by advance.
0, 1 Whether to prefer PDF text extraction. Use this for digital PDFs with selectable text to improve processing speed and text stability.
When PDF text extraction is enabled, whether to run secondary parsing on images inside the PDF.
Whether to enable stamp recognition. The service attempts to recognize stamp information in the document. Stamp recognition capability must be enabled.
Whether to enable extracted value translation. Disabled by default.
Whether to enable long document support.
Long document configuration. Used only when enable_long_doc is true.
5