XRToken API Docs

Query subtitle erase task status

API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai

Query subtitle erase task status.

  • processing: In progress. Recommended polling interval: 3-5 seconds.
  • succeeded: Erase complete. video_url contains the result download link.
  • failed: Processing failed. error contains the error message; the frozen amount is refunded automatically.
GET
/v1/videos/erase-subtitle/{taskId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication (OpenAI format). Pass in the Authorization header:

Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Path Parameters

taskId*string

Task ID (the id field returned by POST /v1/videos/erase-subtitle)

Response Body

application/json

application/json

application/json

application/json

curl -X get "https://api.xrtoken.ai/v1/videos/erase-subtitle/string"
{
  "id": "string",
  "status": "processing",
  "video_url": "http://example.com",
  "result": {
    "video_url": "http://example.com"
  },
  "error": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "error": "invalid or missing API key",
  "type": "auth_error"
}
{
  "error": "string",
  "type": "invalid_request_error"
}
{
  "error": "rate limit exceeded",
  "type": "rate_limit_error"
}