GetVideoDetectShotTask

Updated at:

Light App — Retrieve the result of an asynchronous video splitting task

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Debug

Authorization information

The following table describes the authorization information of this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:

  • Operation: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization for the operation. Details are as follows:

    • For required resource types, an asterisk (*) is prefixed.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.

  • Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.

OperationAccess levelResource typeCondition keyDependent action
quanmiaolightapp:GetVideoDetectShotTaskget
*All Resources
*
    None
None

Request syntax

GET /{workspaceId}/quanmiao/lightapp/getVideoDetectShotTask HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

Unique identifier of the Model Studio workspace: Get the workspaceId

llm-xxx
taskIdstringYes

Unique identifier of the task

a3d1c2ac-f086-4a21-9069-f5631542f5a2

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

requestIdstring

Id of the request

117F5ABE-CF02-5502-9A3F-E56BC9081A64
codestring

Status code

successful
messagestring

Error description

successful
httpStatusCodeinteger

HTTP status code

200
successboolean

Whether the request succeeded: true for success, false for failure

True
dataobject

Result

headerobject

Event name

errorCodestring

Error code

success
errorMessagestring

Error message

Deduct task already success,Please do not resubmit.token '369e8f2c-d283-424a-96c4-c83efe08c89e'
eventstring

Event type

TIMEOUT_CLOSE_ORDER
eventInfostring

Event description

xxx
sessionIdstring

Unique session identifier

d5c38cf6-a4bf-4a57-a697-9f449926f0c9
taskIdstring

Unique generation identifier

6e223291-729b-4e84-9271-c13ada1a776b
traceIdstring

Full trace ID

215045f817272303448235204efdef
payloadobject

Result

outputobject

Result

videoSplitResultobject

Result

textstring

Video splitting result

xxx
reasonTextstring

Deep thinking result

xxx
videoPartsarray<object>

Structured video splitting result. If structuring fails, this parameter is absent; parse the result based on the text field. The parameter can be customized via prompt; see modelCustomPromptTemplateId (obtained via the /getLightAppGeneralConfig API) for rewriting

Video splitting structured arrayobject
string

xxx

xxx
videoRecognitionResultarray<object>

List of video recognition results, generated based on the recognitionOptions input parameter

Recognition resultobject
startTimelong

Start time of the current recognition result

1758108425000
endTimelong

End time of the current recognition result

1748483740000
asrstring

Speech-to-text result

xxx
ocrstring

Text recognition result from the video frame

xxx
vlstring

Visual content recognition result

xxx
usageobject

Token count

inputTokenslong

Number of input tokens

36
outputTokenslong

Number of output tokens

13
totalTokenslong

Total number of tokens

49
taskRunInfoobject

Runtime information

concurrentChargeEnableboolean

Whether concurrent billing is used: when true, billing is based on actual runtime

true
responseTimelong

Runtime: rt

1000
taskStatusstring

Task status

SUCCESSED
taskIdstring

Task ID

3feb69ed02d9b1a17d0f1a942675d300
errorMessagestring

Error message

Failed to proxy flink ui request, message: An error occurred: Invalid UUID string: jobsn.

Examples

Success response example

JSON format

{
  "requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64",
  "code": "successful",
  "message": "successful",
  "httpStatusCode": 200,
  "success": true,
  "data": {
    "header": {
      "errorCode": "success",
      "errorMessage": "Deduct task already success,Please do not resubmit.token '369e8f2c-d283-424a-96c4-c83efe08c89e'",
      "event": "TIMEOUT_CLOSE_ORDER",
      "eventInfo": "xxx",
      "sessionId": "d5c38cf6-a4bf-4a57-a697-9f449926f0c9",
      "taskId": "6e223291-729b-4e84-9271-c13ada1a776b",
      "traceId": "215045f817272303448235204efdef"
    },
    "payload": {
      "output": {
        "videoSplitResult": {
          "text": "xxx",
          "reasonText": "xxx",
          "videoParts": [
            {
              "key": "xxx"
            }
          ],
          "videoRecognitionResult": [
            {
              "startTime": 1758108425000,
              "endTime": 1748483740000,
              "asr": "xxx",
              "ocr": "xxx",
              "vl": "xxx"
            }
          ]
        }
      },
      "usage": {
        "inputTokens": 36,
        "outputTokens": 13,
        "totalTokens": 49
      }
    },
    "taskRunInfo": {
      "concurrentChargeEnable": true,
      "responseTime": 1000
    },
    "taskStatus": "SUCCESSED",
    "taskId": "3feb69ed02d9b1a17d0f1a942675d300",
    "errorMessage": "Failed to proxy flink ui request, message: An error occurred: Invalid UUID string: jobsn."
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action , Please check the assignment of the workspaceId.Check the workspaceId assignment

For more error codes, visit the Error Center.

Change history

Change timeChange summaryOperation
2025-10-20OpenAPI addedView change details