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

Lake AI Service

Copy page
Download PDF
Video Restoration
Subtitle erase Pro
Copy page
Download PDF
Subtitle erase Pro

The Subtitle Erase Pro operator automatically detects and removes embedded hard subtitles from video frames, and outputs the video file after erasure. This operator is suitable for erasing subtitles in videos with vertical white subtitles. Compared to the standard edition, it delivers better results after erasure, does not leave noticeable blur, accurately reconstructs background textures, and restores the original video frame to a greater extent. It is ideal for scenarios with extremely high image quality requirements, such as overseas distribution of short dramas and professional derivative works.

Operator introduction

Operator ID: las_subtitle_erase_pro

Core capabilities

  • Intelligent automatic detection and removal of embedded subtitle regions in video frames.
  • Supports erasure of specified regions: precisely specify the region to be erased using proportional coordinates.
  • High-quality, seamless erasure that retains more details, does not leave noticeable blur, and delivers higher image quality.
  • Supports Subtitle / Text erasure modes, covering both subtitles and on-screen text.
  • Supports Quality / Size output encoding strategies, balancing image quality and file size.
  • Asynchronous task processing. Results are obtained by polling after submission.

Effect showcase

  • Input video
  • Output video

Supported regions

  • Beijing: cn-beijing

Operator performance

Breakdown
Performance impact

Maximum RPM

10

Processing time

  • Total processing time depends on the video duration, content complexity, and network environment.

Processing quality

  • It is recommended to process vertical videos with white subtitles for better erasure results.
  • Compared to the standard version, the advanced version can better reconstruct background textures in complex backgrounds, achieving seamless erasure. It is suitable for scenarios with extremely high image quality requirements.

Input and output requirements

Input requirements

Subdivision
Detailed description

Supported input data modalities

  • Video

Input format: Video

  • Format: All mainstream video formats are supported, including mp4, flv, ts, avi, mov, wmv, mkv, and more.
  • Resolution: Supports up to 2K resolution.

Input path requirements

Provide input data to the operator via the request parameter video_url. Currently, public network URLs are supported.

  • Public network URL: A video URL accessible via the public network, in the format http/https.

Output requirements

Subdivision
Detailed description

Output data modalities

  • Video

Output format: Video

  • Format: MP4
  • Resolution: Supports up to 1080P. If the input video resolution does not exceed 1080P, the original video resolution is retained. If it exceeds 1080P, the output video will be 1080P.

Output path: HTTPS

  • After processing is complete, the HTTPS link to the video with subtitles erased is returned via the video_url parameter in the response.
  • Link validity: 24 hours. Please save the processed video promptly. If the link expires, you will need to resubmit the task.

Billing instructions
  • Billing standard

    Item breakdown
    Billing standard description

    Billing item

    Billing is based on the duration of the output video.

    Billing type

    Usage-based billing, unit: CNY/minute, billed hourly based on actual usage.

    Unit price

    1.0 CNY/minute

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

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

REST API invocation

Submit

API description

Use the Subtitle Erase Pro operator to submit an erasure task, automatically detect and remove embedded hard subtitles from video frames, and supports specifying the erasure region. This is an asynchronous API. Upon successful submission, task_id is returned. Use the Poll API to query the task status and results.

Request parameters

Name
Type
Required
Example value
Description
operator_id
string
Yes
las_subtitle_erase_pro
Operator ID
operator_version
string
Yes
v1
Operator version
data
SubtitleEraseProUserReqParams
Yes
Subtitle erasure request parameters

Response parameters

Name
Type
Example value
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_subtitle_erase_pro",
    "operator_version": "v1",
    "data": {
        "video_url": "https://example.com/input.mp4",
        "client_token": "550e8400-e29b-41d4-a716-446655440000",
        "mode": "Subtitle",
        "output_encode_mode": "Quality",
        "erase_ratio_location": [
            {
                "top_left_x": 0.05,
                "top_left_y": 0.80,
                "bottom_right_x": 0.95,
                "bottom_right_y": 0.98
            }
        ]
    }
}'

Response example

{
  "metadata": {
    "task_id": "las-task-xxxx",
    "task_status": "RUNNING",
    "business_code": "0",
    "error_msg": "",
    "request_id": "abcd1234"
  },
  "data": {}
}

Error codes

HttpStatusCode

Error code

Error message

Description

400

Url.Invalid

The url is invalid.

The video link is invalid

400

Video.Invalid

The video file is invalid.

The video file is invalid

400

Parameter.Invalid

The parameter is invalid.

The parameter is invalid

401

Authorization.Missing

Missing Authorization.

Authorization is missing

401

ApiKey.InValid

The api key is invalid.

The API is invalid

500

Server.InternalError

Internal server error.

Internal server error

Poll

API description

Query the execution status and results of the Subtitle Erase Pro task. When the task status is COMPLETED, the resulting video after erasure is returned.

Request parameters

Name

Type

Required

Example value

Description

operator_id

string

Yes

las_subtitle_erase_pro

Operator ID

operator_version

string

Yes

v1

Operator version

task_id

string

Yes

las-task-xxxx

task_id returned by submit

Response parameters

Parameter
Type
Example value
Description
metadata
metadata
Request metadata
data
SubtitleEraseProResponse
Result data returned when the task is completed. Returned only when task_status is COMPLETED; empty when RUNNING / FAILED.

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_subtitle_erase_pro",
    "operator_version": "v1",
    "task_id": "las-task-xxxx"
}'

Response example

{
    "metadata": {
        "task_id": "las-task-xxxx",
        "task_status": "COMPLETED",
        "submit_time": "2026-07-21T16:04:06+08:00",
        "end_time": "2026-07-21T16:04:06+08:00",
        "business_code": "0",
        "error_msg": "",
        "request_id": "abcd1234"
    },
    "data": {
        "video_url": "https://example.com/output.mp4",
        "duration": 12.34
    }
}

Error codes

HttpStatusCode

Error code

Error message

Description

401

Authorization.Missing

Missing Authorization.

Authorization missing

401

ApiKey.InValid

The api key is invalid.

API is invalid

400

Task.NotFound

Task not found.

Task does not exist

500

Server.InternalError

Internal server error.

Internal server error

Last updated: 2026.07.28 15:19:20