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.
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" } }'Authorization
Content-Type
Idempotency-Key
X-Anycap-Duration-Limit-Ms
operator_id / operator_version
data.video_url
data.model_level
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.
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 status | Action |
|---|---|
| PENDING / RUNNING | Keep polling. If metadata.anycap_state is pending, retain the task ID for reconciliation. |
| COMPLETED | Download data.output_video_url. data.duration is the output duration in seconds. |
| FAILED | Read metadata.business_code and metadata.error_msg. |
Tiers and standard rates
| Tier | model_level | detection_mode | Per adjusted minute |
|---|---|---|---|
| Basic | lite | standard_* | ¥0.55 |
| Pro | pro | standard_* | ¥1.65 |
| Flagship | pro | precise | ¥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.
targets
fixed_bboxes
fixed_bboxes_intervals
subtitle_persistent / subtitle_protect
maximum_output_fps / maximum_resolution
output_video_mode / output_codec
output_bitrate / max_process_frames
return_subtitle_bbox
output_tos_path
Billing adjustments
| Factor | Rule |
|---|---|
| Output FPS | Through 24 fps use 0.8. Above 24 through 30 fps use 1. Above 30 fps use ceil(fps ÷ 30). |
| Output resolution | Use 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.