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.
- Submit an extraction task: Submit a structured field extraction task with a JSON schema and get a
biz_idfor asynchronous queries. - Query the extraction result: Query the task status and extraction result by
biz_id.
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.
Is this page helpful?