API Docs Center

Video Text Removal Task Status API


Last Updated: 2026-05-11

Video Text Removal

Service Overview

  • Queries video text removal task status, supporting both single-task and batch polling.

Service Access

The Video Text Removal API uses a console-based project access model. You can register and activate services on the ViiTor AI official website (https://www.viitor.com/), then create a project in the console to obtain required authentication credentials.

The business service endpoint is provided by the project gateway. This document uses the following gateway as an example:

https://video-translation.ilivedata.com


Integration

Parameter Specification

  • Request URL: https://video-translation.ilivedata.com/textRemoval/taskStatus
  • Method: POST
  • Content-Type: application/json
  • Response Format: {code, message, data}

HTTP Headers

HeaderRequiredTypeDescription
Content-TypeYesStringapplication/json;charset=UTF-8
AcceptYesStringapplication/json;charset=UTF-8
X-User-IdYesLongUser ID, must be numeric
AuthorizationRecommendedStringLogin token (Bearer Token), based on gateway auth policy
X-ChannelNoIntegerChannel code; not used in business logic for this API
X-App-SourceNoStringSource marker; not used in business logic for this API

Notes:

  • This API reads X-User-Id from headers as the query user.
  • Missing X-User-Id returns code=2000; non-numeric value returns code=2001.

Request Method: POST

Request Body

Field Definitions

FieldTypeRequiredDescription
taskIdStringNoSingle task ID
taskIdsArrayNoBatch task ID list

Validation Rules

  1. taskId and taskIds cannot both be empty.
  2. They are merged and deduplicated by the server before query.
  3. The merged task ID count can be up to 100.
  4. Every task ID must start with ViiTor_AI, otherwise returns parameter error.

Response Body

Standard Response Schema

FieldTypeDescription
codeInteger0 means success; non-zero means failure
messageStringResponse message
dataArray<Object>Task status list

data Item Fields on Success

FieldTypeDescription
taskIdStringTask ID
taskStatusIntegerTask status code
taskProgressIntegerTask progress (0-100)
errorCodeIntegerTask error code (0 for success in most cases)
targetVideoUrlStringResult video URL (available after completion)
updateTimeLongLast update time (millisecond timestamp)

taskStatus Codes

ValueMeaning
1Created
2Queued
3Running
4Finished
5Failed
6Aborted

Examples

cURL Request (Single Task)

curl -X POST "https://video-translation.ilivedata.com/textRemoval/taskStatus" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  -H "X-User-Id: 123456" \
  -d '{
    "taskId": "ViiTor_AI_202605110001"
  }'

cURL Request (Batch)

curl -X POST "https://video-translation.ilivedata.com/textRemoval/taskStatus" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  -H "X-User-Id: 123456" \
  -d '{
    "taskIds": [
      "ViiTor_AI_202605110001",
      "ViiTor_AI_202605110002"
    ]
  }'

Success Response Example

{
  "code": 0,
  "message": "OK",
  "data": [
    {
      "taskId": "ViiTor_AI_202605110001",
      "taskStatus": 3,
      "taskProgress": 60,
      "errorCode": 0,
      "targetVideoUrl": null,
      "updateTime": 1776057600123
    },
    {
      "taskId": "ViiTor_AI_202605110002",
      "taskStatus": 4,
      "taskProgress": 100,
      "errorCode": 0,
      "targetVideoUrl": "https://cdn.example.com/output/video_110002.mp4",
      "updateTime": 1776057650456
    }
  ]
}

Failure Response Example (Invalid Parameters)

{
  "code": 2001,
  "message": "taskId and taskIds cannot both be empty",
  "data": null
}

Common Error Codes

CodeMeaningTypical Cause
2000Missing ParameterMissing X-User-Id
2001Invalid ParameterInvalid params (empty/invalid taskId/taskIds, count overflow)

Client Integration Recommendations

  1. Save taskId after task creation, and prefer batch polling mode.
  2. Download result when taskStatus=4 and targetVideoUrl is not empty.
  3. For taskStatus=5/6, apply failure messaging and retry strategy based on errorCode.

© 2026 HighRas Limited