# SEE2AI Video Subtitle Removal

Remove burned-in subtitles or text and keep the source audio.

Supply a public HTTPS video URL (up to 300 seconds and 500 MB) with verifiable
movie and track headers. A standard, non-fragmented MP4 is suitable. Mode is precise (default). It accepts target subtitle (default) or text, multilingual (default false), up to five normalized regions with top_left_x, top_left_y, bottom_right_x and bottom_right_y, and up to twenty time_ranges with start_seconds and end_seconds. Intersecting time ranges are merged and clamped to the video. Input is up to 2K (1440 by 2560 in either orientation). Output retains the source size up to 1080p.

| Method | Path | Purpose |
| --- | --- | --- |
| `POST` | `/api/platform/v1/actions/see2ai_video_subtitle_erase_v1/async` | Submit with an optional X-Idempotency-Key. |
| `GET` | `/api/platform/v1/actions/see2ai_video_subtitle_erase_v1/status/{task_id}` | Poll the video task. |

## Submit

`POST /api/platform/v1/actions/see2ai_video_subtitle_erase_v1/async` requires a service bearer token plus its acting user's token and accepts an optional
`X-Idempotency-Key`. Reuse the key for the same request. A different body with the
same key returns HTTP 409. On acceptance the response includes `task_id`,
`status="running"`, `estimated_cost` (held points), and `cost_points=0`.

```sh
curl -X POST 'https://see2ai.com/api/platform/v1/actions/see2ai_video_subtitle_erase_v1/async' -H "Authorization: Bearer $SERVICE_TOKEN" \
  -H "X-Platform-User-Token: $USER_TOKEN" \
  -H 'Content-Type: application/json' -H 'X-Idempotency-Key: clip-001' \
  -d '{"video_url":"https://media.example/input.mp4"}'
```

## Poll

`GET /api/platform/v1/actions/see2ai_video_subtitle_erase_v1/status/{task_id}` returns the current status. Poll until success
or failure, respecting `retry_after_seconds` when present.

```sh
curl "https://see2ai.com/api/platform/v1/actions/see2ai_video_subtitle_erase_v1/status/$TASK_ID" -H "Authorization: Bearer $SERVICE_TOKEN" \
  -H "X-Platform-User-Token: $USER_TOKEN"
```

Example success response (delivery and billing fields):

```json
{
  "task_id": "example-task",
  "status": "success",
  "result_urls": [
    "https://media.example/result.mp4"
  ],
  "video_url": "https://media.example/result.mp4",
  "width": 496,
  "height": 864,
  "duration_seconds": 5,
  "has_audio": true,
  "mode": "precise",
  "cost_points": 8334
}
```

100,000 points per processed minute. Precise mode bills the merged selected intervals. Audio restoration, when needed, adds 3,000 / 6,000 points per minute at 720p / 1080p. Only successful delivery is charged, up to the original hold. A failed task returns `status="failed"`, an empty `result_urls`,
and zero points. Insufficient funds return 402, invalid inputs return 400 or 422,
and an unknown or inaccessible task returns 404.
