GetVideoDetectShotTask
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.
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.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:GetVideoDetectShotTask | get | *All Resources * |
| None |
Request syntax
GET /{workspaceId}/quanmiao/lightapp/getVideoDetectShotTask HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Unique identifier of the Model Studio workspace: Get the workspaceId | llm-xxx |
| taskId | string | Yes | Unique identifier of the task | a3d1c2ac-f086-4a21-9069-f5631542f5a2 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| requestId | string | Id of the request | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
| code | string | Status code | successful |
| message | string | Error description | successful |
| httpStatusCode | integer | HTTP status code | 200 |
| success | boolean | Whether the request succeeded: true for success, false for failure | True |
| data | object | Result | |
| header | object | Event name | |
| errorCode | string | Error code | success |
| errorMessage | string | Error message | Deduct task already success,Please do not resubmit.token '369e8f2c-d283-424a-96c4-c83efe08c89e' |
| event | string | Event type | TIMEOUT_CLOSE_ORDER |
| eventInfo | string | Event description | xxx |
| sessionId | string | Unique session identifier | d5c38cf6-a4bf-4a57-a697-9f449926f0c9 |
| taskId | string | Unique generation identifier | 6e223291-729b-4e84-9271-c13ada1a776b |
| traceId | string | Full trace ID | 215045f817272303448235204efdef |
| payload | object | Result | |
| output | object | Result | |
| videoSplitResult | object | Result | |
| text | string | Video splitting result | xxx |
| reasonText | string | Deep thinking result | xxx |
| videoParts | array<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 array | object | ||
| string | xxx | xxx | |
| videoRecognitionResult | array<object> | List of video recognition results, generated based on the recognitionOptions input parameter | |
| Recognition result | object | ||
| startTime | long | Start time of the current recognition result | 1758108425000 |
| endTime | long | End time of the current recognition result | 1748483740000 |
| asr | string | Speech-to-text result | xxx |
| ocr | string | Text recognition result from the video frame | xxx |
| vl | string | Visual content recognition result | xxx |
| usage | object | Token count | |
| inputTokens | long | Number of input tokens | 36 |
| outputTokens | long | Number of output tokens | 13 |
| totalTokens | long | Total number of tokens | 49 |
| taskRunInfo | object | Runtime information | |
| concurrentChargeEnable | boolean | Whether concurrent billing is used: when true, billing is based on actual runtime | true |
| responseTime | long | Runtime: rt | 1000 |
| taskStatus | string | Task status | SUCCESSED |
| taskId | string | Task ID | 3feb69ed02d9b1a17d0f1a942675d300 |
| errorMessage | string | 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 code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You 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 time | Change summary | Operation |
|---|---|---|
| 2025-10-20 | OpenAPI added | View change details |