You need to enable JavaScript to run this app.
Lake AI Service

Lake AI Service

Copy page
Download PDF
Document analysis
PDF document parsing (Doubao)
Copy page
Download PDF
PDF document parsing (Doubao)

Operator introduction

Description

PDF content parsing operator, supports visual model parsing of PDF files and structured Markdown output.

Limitations

  • Requires access to the PDF source file (public network, Volcano Engine intranet, or TOS).
  • Only processes renderable page content; if the page contains complex dynamic objects or protected content, it cannot be processed.
  • For documents with extremely high resolution or a large number of pages, parsing time and resource consumption will increase significantly.
  • Supports PDF documents with up to 400 pages. For documents exceeding 400 pages, it is recommended to use the start_page and num_pages parameters to request parsing in multiple batches.

Key features

  • Supports PDF page rendering and visual model parsing, outputs high-fidelity Markdown, and fully restores the original structure (heading hierarchy, tables, formulas, image regions).
  • Automatically identifies image regions and returns bounding box information and pre-signed image URLs.
  • Supports per-page and full-book Markdown aggregation for subsequent content processing and display.
  • Supports custom artifact storage location: Specify the TOS output directory via the output_tos_path parameter. The parsing artifacts will be stored in the user-specified TOS path.

Performance notes

  • Total processing time depends on the number of pages and the network environment.
  • It is recommended to access the TOS source and write TOS results within the Volcano Engine intranet environment for more stable network performance.

Billing
  • 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: CNY/page, billed hourly based on actual usage.

    Unit price

    Depends on the selected PDF parsing mode.

  • Billing details
    Billing formula: Total cost = unit price * usage

    Subscenario
    Unit price
    • PDF parsing mode: normal mode

    0.02 CNY/page

    • PDF parsing mode: detail mode

    0.04 CNY/page

Caution and prerequisites

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.
For details, see Obtain the Base URL. The Examples below are for reference only; when making actual calls, replace the path values with those corresponding to your region.

Online experience

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.

Online experience entry point

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.
Image

Online experience operation demonstration

  • LAS provides several sample data documents for you. You can also delete sample documents and manually upload documents.
  • During the online experience, you can flexibly configure the operator's processing parameters.

API invocation

Submit

Interface description

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.

Request parameters

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

Response parameters

Parameter name
Type
Example
Description
metadata
metadata
Request metadata

Example

Request example

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"
    }
}'

Response example

{
    "metadata": {
        "task_id": "task-20251125163544-abc123",
        "task_status": "PENDING",
        "business_code": "200",
        "error_msg": ""
    }
}

Error codes

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

Poll

Interface description

Query the execution status and result of the PDF parsing task.

Request parameters

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

Response parameters

Parameter name
Type
Example
Description
metadata
metadata
Request meta information
data
PdfParseResponse
Returned data

Example

Request example

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"
}'

Response example

{
    "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
  }
    }
}

Error codes

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

Last updated: 2026.07.28 16:12:24