Subtitle removal

1. Submit a repair job

POST /api/v1/submit requires an Anycap connection key authorized for video repair. The example creates a Pro job with a 60-second input limit.

BASH
curl -sS -X POST 'https://api.anycap.io/api/v1/submit' \  -H 'Authorization: Bearer YOUR_ANYCAP_KEY' \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: repair-demo-001' \  -H 'X-Anycap-Duration-Limit-Ms: 60000' \  -d '{    "operator_id": "las_video_inpaint_pro",    "operator_version": "v1",    "data": {      "video_url": "https://media.example.com/input.mp4",      "model_level": "pro",      "detection_mode": "standard_subtitle_watermark"    }  }'
Field (required)Value
Authorization
Bearer followed by your Anycap connection key
Content-Type
application/json
Idempotency-Key
Use a new key for each new job and reuse it when retrying the same request.
X-Anycap-Duration-Limit-Ms
Input duration ceiling in milliseconds. Used to reserve credits.
operator_id / operator_version
Use las_video_inpaint_pro and v1
data.video_url
Direct HTTPS video download URL
data.model_level
lite or pro. The tier also depends on detection_mode.
For local testing use http://127.0.0.1:8080 as the base URL.

2. Poll and download the result

Copy metadata.task_id from the submit response into task_id for POST /api/v1/poll. Use the same connection key.

BASH
curl -sS -X POST 'https://api.anycap.io/api/v1/poll' \  -H 'Authorization: Bearer YOUR_ANYCAP_KEY' \  -H 'Content-Type: application/json' \  -d '{"operator_id":"las_video_inpaint_pro","operator_version":"v1","task_id":"TASK_ID"}'
Poll statusAction
PENDING / RUNNINGKeep polling. If metadata.anycap_state is pending, retain the task ID for reconciliation.
COMPLETEDDownload data.output_video_url. data.duration is the output duration in seconds.
FAILEDRead metadata.business_code and metadata.error_msg.
The download link is shown for up to 23 hours. Save the file promptly.

Tiers and standard rates

Tiermodel_leveldetection_modePer adjusted minute
Basiclitestandard_*¥0.55
Proprostandard_*¥1.65
Flagshipproprecise¥3.30

The standard modes are standard_subtitle, standard_watermark, standard_subtitle_watermark and standard_all. The default detection_mode is standard_subtitle.

Media limits and optional parameters

Supports MP4, MOV, AVI and MKV from 1 second to 3 hours and up to 10 GB. The long edge is capped at 3840 pixels and the short edge at 2160 pixels.

ParameterValues or behavior
targets
Automatic precise detection defaults to watermark, subtitle and scrolling_subtitle. You can also select drama_info.
fixed_bboxes
Skip automatic detection. Each box is [left, top, right, bottom] in integers from 0 to 1000, e.g. [[100,600,900,750]].
fixed_bboxes_intervals
One interval per box, in seconds. [[0.5,-1]] applies from 0.5 seconds to the end.
subtitle_persistent / subtitle_protect
Persist subtitle regions during automatic detection or protect subtitles during watermark-only repair.
maximum_output_fps / maximum_resolution
Defaults to 30 fps and 1080p. Resolution accepts 720p, 1080p or 4k.
output_video_mode / output_codec
economy / balanced / high / source · h264 / h265
output_bitrate / max_process_frames
Bitrate in Kbps. Use -1 for the full video frame count.
return_subtitle_bbox
Whether to return subtitle boxes.
output_tos_path
Optional. Anycap stores the output in its managed space.

Billing adjustments

FactorRule
Output FPSThrough 24 fps use 0.8. Above 24 through 30 fps use 1. Above 30 fps use ceil(fps ÷ 30).
Output resolutionUse 2 above the 1080p pixel count. Use 0.6 for Pro and Flagship at or below 720p. Otherwise use 1.

Multiply actual output milliseconds by both factors and apply the frozen tier rate. The standard exchange rates are CNY 6.8 per USD and 1,000 credits per USD. Round the total up to a whole credit once.