Document Parsing API
Updated at:
Document Parsing API: submit parsing tasks and query parsing results.
The Document Parsing API parses documents, images, and audio/video files into readable structured content. Calls are asynchronous: submit a parsing task to obtain a biz_id, then poll the parsing result until the task succeeds or fails.
- Submit a parsing task: Submit a document or audio/video parsing task and get a
biz_idfor asynchronous queries. - Query the parsing result: Query the task status and parsing result by
biz_id.
ImportantYou can also complete the same flow with the Bailian CLI in your terminal: bl parsex parse submit --workspace-id <workspace-id> --file-url "https://example.com/document.pdf" --output json, then query results with bl parsex parse result --biz-id <biz-id> --follow. See Use the CLI.
Is this page helpful?