PDF content parsing operator, supports visual model parsing of PDF files and structured Markdown output.
output_tos_path parameter. The parsing artifacts will be stored in the user-specified TOS path.Billing standards
Subitems | Billing standards description |
|---|---|
Billing item | Usage is calculated based on the number of pages of the PDF/image to be parsed and billed accordingly. |
Billing type | Usage-based billing, unit: |
Unit price | Depends on the selected PDF parsing mode. |
Billing details
Billing formula: Total cost = unit price * usage
Subscenario | Unit price |
|---|---|
| 0.02 CNY/page |
| 0.04 CNY/page |
Details | Caution and prerequisites |
|---|---|
Costs | Before calling an operator, you need to understand the model invocation costs associated with using the operator. For details, see Large model invocation billing. |
Authentication (API Key) | Before calling an operator, you need to generate an API Key for operator invocation. It is recommended to configure the API Key as an environment variable to ensure safer operator calls. For details, see Obtain and configure API Key. |
BaseURL | Before calling an operator, you need to determine the BaseURL for operator invocation based on the region where your current LAS service is deployed. This is used to configure the path parameter values for operator calls. |
LAS provides you with the capability for an "online experience" and offers a certain amount of free trial quota. No configuration is required, and you can directly experience the data processing capabilities of the LAS operator online.
warning
The current operator online experience allows you to parse up to 50 pages of PDF documents for free. Any pages beyond this limit will be charged according to the operator's billing items. For details on each operator's billing items and billing logic, please refer to Large model invocation billing.
After logging in and entering the LAS Console LAS Console, locate the card for the current operator, hover your mouse over the operator card, and click the “online experience” button.
Invoke PDF document parsing (Doubao) to perform PDF content parsing. Supports visual model parsing of PDF source files from the public network, Volcano Engine intranet, or TOS, and outputs Markdown or structured output.
Parameter name | Type | Required | Example | Description |
|---|---|---|---|---|
operator_id | string | Yes | las_pdf_parse_doubao | Operator ID |
operator_version | string | Yes | v1 | Operator version |
data | PdfParseUserReqParams | Yes | PDF parsing request parameters |
Parameter name | Type | Example | Description |
|---|---|---|---|
metadata | metadata | Request metadata |
curl --location "https://operator.las.ap-southeast-1.volces.com/api/v1/submit" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $LAS_API_KEY" \ --data '{ "operator_id": "las_pdf_parse_doubao", "operator_version": "v1", "data": { "url": "https://las-ai-cn-beijing-baseline.tos-cn-beijing.volces.com/operator_cards_serving/public/baseline/las_pdf_parse_doubao/v1/pdf-sample.pdf" } }'
{ "metadata": { "task_id": "task-20251125163544-abc123", "task_status": "PENDING", "business_code": "200", "error_msg": "" } }
HttpCode | Error codes | Error message | Note |
|---|---|---|---|
400 | Model.InvalidName | The model name is invalid. | Model name is invalid |
401 | Authorization.Missing | Missing Authorization. | Missing authentication |
401 | ApiKey.InValid | The api key is invalid. | API is invalid |
Query the execution status and result of the PDF parsing task.
Parameters | Type | Required | Example value | Note |
|---|---|---|---|---|
operator_id | string | Is | las_pdf_parse_doubao | Operator ID |
operator_version | string | Is | v1 | Operator version |
task_id | string | is | task-xxx | Task ID |
Parameter name | Type | Example | Description |
|---|---|---|---|
metadata | metadata | Request meta information | |
data | PdfParseResponse | Returned data |
curl --location "https://operator.las.ap-southeast-1.volces.com/api/v1/poll" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $LAS_API_KEY" \ --data '{ "operator_id": "las_pdf_parse_doubao", "operator_version": "v1", "task_id": "task-20251125163544-abc123" }'
{ "metadata": { "task_id": "task-20251125163544-abc123", "task_status": "COMPLETED", "submit_time": "2026-07-21T16:04:06+08:00", "end_time": "2026-07-21T16:04:06+08:00", "business_code": "200", "error_msg": "" }, "data": { "markdown": "", "detail": [ { "page_id": 1, "page_md": "", "page_image_hw": { "h": 3508, "w": 2480 }, "text_blocks": [ { "text": "", "label": "text", "box": { "x0": 100, "y0": 200, "x1": 400, "y1": 650 }, "norm_box": [ 0.1, 0.2, 0.4, 0.65 ] } ] } ], "artifacts": { "markdown_tos_path": "", "image_tos_path": "", "detail_tos_path": "", "result_preview_url": "https://las-bucket.tos-cn-beijing.volces.com/path/to/result_preview.md?X-Amz-Expires=259200&..." }, "num_pages": 1 } } }
HttpCode | Error code | Error message | Note |
|---|---|---|---|
400 | Model.InvalidName | The model name is invalid. | The model name is not valid |
401 | Authorization.Missing | Missing Authorization. | Authorization is missing |
401 | ApiKey.InValid | The api key is invalid. | The API key is not valid |
400 | Url.Invalid | The url is invalid. | The document link is not valid |
400 | Pdf.Invalid | The pdf file is invalid. | The PDF file is not valid |
400 | Pdf.RenderFailed | PDF render failed. | PDF rendering failed |
400 | Pdf.ModelFailed | VLM call failed. | Visual model call failed |
400 | Pdf.Timeout | Pdf parse timeout. | PDF parsing timed out |
400 | Pdf.PagesExceeded | PDF pages exceeded maximum limit of 400. | PDF page count exceeds the maximum limit |
400 | Pdf.PageRangeInvalid | Requested page range is out of bounds. | The requested page range exceeds the total number of pages in the document |
400 | Pdf.FileTooLarge | PDF file size exceeds maximum limit of 1GB. | The PDF file size exceeds the limit |
403 | Tos.AccessFailed | Failed to access TOS path. | Failed to access the TOS path. Please check access_key and secret_key permissions |