Field Extraction API

Updated at:

Field Extraction API: submit extraction tasks and query extraction results.

The Field Extraction API extracts specified fields from image and text materials according to a JSON schema and returns structured results. Calls are asynchronous: submit an extraction task to obtain a biz_id, then poll the extraction result until the task succeeds or fails.

ImportantYou can also complete the same flow with the Bailian CLI in your terminal: bl parsex extract submit --workspace-id <workspace-id> --file-url "https://example.com/document.pdf" --schema-file schema.json --output json, then query results with bl parsex extract result --biz-id <biz-id> --follow. See Use the CLI.