Overview
Detect and cleanly remove embedded captions, subtitles, or text overlays from video frames using AI inpainting.
Primary Endpoint
/api/v1/userCaptionRemoval/start"Create an asynchronous caption-removal task for the submitted source video and return the record used to monitor processing.". ### Request - This operation permits anonymous requests. Authenticated callers may send a bearer token. - Supply `x-anonymous-id` headers as documented in the parameter schema, including any anonymous identity requirements. - Send an `application/json` body. Required fields: `name`, `source_url`. - API-token callers may include `webhook_url` and `webhook_token` for best-effort terminal-state notifications; ordinary JWT/cookie calls ignore these fields. ### Behavior - This is an asynchronous operation: a successful submission creates a task and returns before processing finishes. - Persist the returned task identifier and use the corresponding detail or list operation to observe progress. - Treat the detail endpoint as the source of truth even when webhook delivery is enabled. ### Response - A `200` response confirms task acceptance; it does not by itself mean media generation has completed. - Retain the returned identifier and wait for a documented terminal status before using output URLs. - JSON object responses, including error responses, normally carry a top-level `trace_id` string for this request; include it when contacting support. It is not a task identifier. - Do not infer undocumented fields or statuses; clients should tolerate additional response properties. ### Errors - `400` — Bad Request - Invalid parameters. - `401` — Unauthorized - Invalid or missing JWT token. ### Related Operations - `GET /api/v1/userCaptionRemoval/allRecords` — Get all task records. - `GET /api/v1/userCaptionRemoval/{_id}` — Get task details. - `DELETE /api/v1/userCaptionRemoval/{_id}` — Delete caption removal task. Authentication: set header Authorization: Bearer <token> (supports user JWT or sk_ API token).
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| free_quota_expected | boolean | No | Web request expecting a free discount; returns 12006 when the discount decreases. API tokens are ineligible. |
| free_quota_expected_coins | number | No | Minimum expected free credits. If the available discount decreases, returns 12006 without creating a task or automatically charging a higher price.; minimum: 0 |
| name | string | Yes | Name of the caption removal task |
| source_url | string | Yes | URL of the source video |
| webhook_url | string | No | HTTPS URL to receive task.completed / task.failed notifications. Best-effort delivery, single attempt, no retries; clients should treat the detail API as the source of truth.; maxLength: 2048 |
| webhook_token | string | No | Optional plaintext token returned in the X-A2e-Webhook-Token header so receivers can verify the request originated from a2e.; maxLength: 256 |
Request schema and conditional rules
{
"allOf": [
{
"type": "object",
"properties": {
"free_quota_expected": {
"type": "boolean",
"description": "Web request expecting a free discount; returns 12006 when the discount decreases. API tokens are ineligible."
},
"free_quota_expected_coins": {
"type": "number",
"minimum": 0,
"description": "Minimum expected free credits. If the available discount decreases, returns 12006 without creating a task or automatically charging a higher price."
},
"name": {
"type": "string",
"description": "Name of the caption removal task",
"example": "Remove captions from video"
},
"source_url": {
"type": "string",
"description": "URL of the source video",
"example": "https://example.com/video.mp4"
}
},
"required": [
"name",
"source_url"
]
},
{
"$ref": "#/components/schemas/WebhookInput"
}
]
}Response Fields
- code: integer
- data: object
- data._id: string
- data.name: string
- data.duration: number
- data.source_url: string
- data.current_status: string
- data.coins: number
- data.hasRefundCoin: boolean
- Stored refund flag; true does not confirm crediting while refund_pending is true. Omitted when unknown, including legacy records without a stored flag.
- data.refund_pending: boolean
- True means refund pending resolution and takes precedence over hasRefundCoin. Explicit false is preserved; omitted when unknown, including legacy records without a stored flag.
- trace_id: string
- Trace ID of this HTTP request. Include it when contacting support about this request. It is generated per request and is not a task identifier; use the returned task `_id` to query results.
Request Example
curl -X POST "https://www.a2e.com.cn/api/v1/userCaptionRemoval/start" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Remove captions from video",
"source_url": "https://example.com/video.mp4"
}'Related Endpoints
/api/v1/userCaptionRemoval/{_id}Get task details
/api/v1/userCaptionRemoval/startStart caption removal task
/api/v1/userCaptionRemoval/allRecordsGet all task records
/api/v1/userCaptionRemoval/allProcessingList processing task identifiers and statuses
/api/v1/userCaptionRemoval/batchDetailBatch query task details
/api/v1/userCaptionRemoval/{_id}Delete caption removal task
/api/v1/userCaptionRemoval/retryRetry existing media tasks
Responses
Caption removal task started successfully
Bad Request - Invalid parameters
Unauthorized - Invalid or missing bearer token