RunVideoAnalysis
Alibaba Cloud Model Studio Light App – Video Understanding for Film and Media.
Operation description
Alibaba Cloud Model Studio Light App – Video Understanding: This API accepts a video input and performs tasks such as caption extraction, video content analysis, video summarization, title generation, and mind map creation. You can also use a custom prompt to generate differentiated video content.
- Try it directly at Light App – Video Understanding for Film and Media.
- To call the API using an SDK, refer to the examples under the “API” tab in the Video Understanding console. When calling this API via SDK, note that the Debug section of the OpenAPI portal has limited support for the SSE protocol. We recommend following the call examples. For details, go to Light App – Video Understanding for Film and Media and switch to the API tab.
API and SDK usage
API overview
There are 2 ways to call the Video Understanding API, corresponding to two endpoints:
- Call the asynchronous offline API (recommended): Supports 2 concurrent requests by default. You can increase concurrency up to 10 through configuration. For higher workloads, contact customer support (or operations) to request additional concurrency. This method does not require waiting for execution to complete, uses asynchronous scheduling, and the concurrency limit equals the number of tasks running simultaneously in the backend. Tasks exceeding the concurrency limit are queued. The SDK supports most programming languages, and you can debug or use the API directly in the OpenAPI portal. You can also view demo code in the Light App – Video Understanding for Film and Media console under the “API” tab.
- Call the synchronous online API (not recommended): This document describes this endpoint. It supports only 1 global concurrent request. You must keep the connection open while waiting for results. The SDK supports only Java and Python. The OpenAPI portal does not support debugging or calling this endpoint via SSE (copied code cannot be used directly). Use this method only for light testing. View demo code in the Light App – Video Understanding for Film and Media console under the “API” tab.
Synchronous online API usage
We recommend using the SDK for Java (asynchronous SDK) or Python. The Java (asynchronous SDK) dependency is as follows:
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>alibabacloud-quanmiaolightapp20240801</artifactId>
<version>Use the latest version</version>
</dependency>
- Obtain the latest Java (asynchronous) dependency.
- Obtain your AccessKey ID and AccessKey secret.
- Obtain your Workspace ID.
Permissions
Prerequisites
- Log on to the Alibaba Cloud Model Studio console and confirm that the service is active and available.
- Alibaba Cloud account calls: Full API access permissions are granted by default.
- RAM user calls: RAM users have no permissions (AccessForbid) to call this API by default. You must grant permissions in both the RAM console and the Alibaba Cloud Model Studio console.
RAM console authorization
Go to the RAM console to grant permissions. For detailed steps, see the RAM documentation:
Option 1 (recommended): Grant a built-in policy
Grant the RAM user the AliyunQuanMiaoLightAppFullAccess permission.
To also allow console access, grant the AliyunAiMiaoBiFullAccess permission.
Option 2: Create and assign a custom policy
Use this option for fine-grained control over API-level access.
- Create a custom authorization policy: Under the Permission Management > Policies menu, create a policy using the script editor. Use one of the following JSON examples to authorize specific APIs, such as RunVideoAnalysis for video understanding.
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "quanmiaolightapp:RunVideoAnalysis",
"Resource": "*"
}
]
}
To also allow console access, grant the following API permission:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "aimiaobi:GetVideoAnalysisConfig",
"Resource": "*"
}
]
}
- Assign the policy to a RAM user: Under the Identity Management > Users menu, find the target user, add a new authorization, switch to custom policies, and attach the policy you created above.
Alibaba Cloud Model Studio console authorization
Use your Alibaba Cloud account or a RAM user with administrative permissions for Model Studio to log on to the console. Add the RAM user on the Permission Management > User Management page.
Input parameter value guidelines
Frame sampling configuration (frameSampleMethod)
These parameters control frame sampling, including interval and resolution. The default sampling method is Standard. Three methods are available: Standard, Fast/Lower Cost, and Custom.
-
When using the “Standard” method, the system applies built-in parameters. You do not need to define the interval or pixel values. The rules for these values are:
- Based on video duration, the system selects a preset tier. See the “?” tooltip next to “Recommended range 1.0–6.0” and “Recommended range 650–750” under Advanced Features > Frame Sampling Method > Custom in the Video Understanding console, under the “Effect Debugging” tab.
- Map video duration to the nearest tier. If equidistant, choose the tier with the longer duration.
-
When using the “Fast/Lower Cost” method, the system applies internally calculated parameters. You do not need to define interval or pixel values.
-
When using the “Custom” method, you must provide both interval and pixel values. Valid ranges depend on video duration and are calculated as follows:
- Minimum interval = max(Standard interval − 0.2, 1)
- Maximum interval = Standard interval + 5
- Minimum pixel = max(Standard pixel − 50, 300)
- Maximum pixel = Standard pixel + 50
Agent integration
Agents can use video understanding capabilities directly through a Skill:
- Skill name:
alibabacloud-bailian-videoanalysis - Skill URL: https://skills.aliyun.com/skills/alibabacloud-bailian-videoanalysis
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. -
API: The API that you can call to perform the action.
-
Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
-
Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
-
Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
quanmiaolightapp:RunVideoAnalysis | none | *All Resource
| None | None |
Request syntax
POST /{workspaceId}/quanmiao/lightapp/runVideoAnalysis HTTP/1.1
Path Parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Unique identifier for your Alibaba Cloud Model Studio workspace: Obtain your Workspace ID | llm-xxx |
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| videoUrl | string | No | Video URL
| |
| videoModelId | string | No | Unique identifier for the video VL task model. Supported models:
| quanmiao-vl-turbo |
| videoModelCustomPromptTemplate | string | No | Video VL task prompt template: Must include the {videoAsrText} variable, which contains the video’s ASR text. Defaults to the template shown in the console. | # Role You are a video analyst skilled at understanding various video segments. # Task description Given multiple keyframe images of a video segment, complete the following tasks. - Output the scene information of each image, including characters, objects, actions, text, subtitles, and shot language. - Connect the information from each image to generate a detailed overview of the video and reconstruct the plot of the segment. # Limitations - The analysis scope is strictly limited to the provided video sub-segment, without any speculation or background information outside the video. - When summarizing, strictly rely on the video content. Do not add personal speculation or creative content. - Maintain high-fidelity reproduction of all video elements (especially text and subtitles) to avoid information omission or misunderstanding. # Input data ## Video segment ASR information (if the input is empty, ignore the ASR information) {videoAsrText} # Output format Follow the task goals directly: first output the description of each image, then connect them to output the plot of the entire video segment. |
| modelId | string | No | Unique identifier for the LLM used in video summarization. Supported models: If you want to run multiple text-processing tasks, use the textProcessTasks field instead. If textProcessTasks is provided, this field and its associated prompt template are ignored.
| quanmiao-llm-max |
| modelCustomPromptTemplateId | string | No | Unique identifier for the LLM prompt template used in video summarization:
If modelCustomPromptTemplate is not provided, the system uses the default prompt for this template ID. modelCustomPromptTemplate takes precedence over modelCustomPromptTemplateId. | PlotDetail |
| modelCustomPromptTemplate | string | No | LLM prompt template for video summarization: Must include both {videoAsrText} and {videoAnalysisText} variables. {videoAsrText} is the ASR transcript. {videoAnalysisText} contains visual-language analysis results for each sub-shot. | # Role You are a professional video annotator skilled at combining video shot information to analyze and process various video tasks. # Task goal Combine the input data to connect and reconstruct the detailed plot of the entire video. # Limitations 1. If there are grammatical errors or logical inconsistencies, modify them directly. 2. In video shots that contain dialogue, the speaker may not match the spoken content. Therefore, you must accurately determine the true speaker of each line of dialogue based on the progression of the plot. 3. If a video shot has no dialogue, match dialogue based on the video audio text. 4. In the modified story, appropriately preserve the descriptions of characters and scenes from the video shots. 5. Polish the story to make it more logical. 6. Based on the appearance characteristics of characters in the video shots, characters with similar appearances are the same role. Therefore, unify the character roles across different shots. # Input data ## Material 1: Video shot information (visual description information for each shot of the video) {videoAnalysisText} ## Material 2: Video ASR transcription information (speakers are not labeled; there may be errors and omissions; if no ASR is input, ignore this information) {videoAsrText} # Output format Output the video plot directly, without outputting any other information. |
| generateOptions | array | No | Video understanding generation task options. | |
string | No | Video understanding generation task options. Selected tasks run automatically in sequence.
| videoGenerate | |
| taskId | string | No | Unique task identifier. If not provided, one is generated automatically. | a3d1c2ac-f086-4a21-9069-f5631542f5a2 |
| originalSessionId | string | No | Source task identifier. To rerun a specific subtask (defined in generateOptions) based on a previous task, provide the original taskId and originalSessionId. The system loads previously generated data to skip earlier steps and improve efficiency. If the stored data is older than 7 days, the system reruns all dependent steps. | a3d1c2ac-f086-4a21-9069-f5631542f5ax |
| videoExtraInfo | string | No | Supplementary text related to the video. You can extend the input material and reference it in generation by adding the {videoExtraInfo} variable to your custom prompt template. Examples include video summaries, descriptions, or ASR transcripts. | The video describes: xx |
| snapshotInterval | number | No | Frame sampling interval: One frame every X seconds. Range: [1, 10]. Larger intervals reduce extracted information, increase processing time, and raise costs. Default settings follow best practices and usually require no changes. If adjusting, consider video length and use [1–3]. Note: This parameter takes precedence over frameSampleMethod.interval. For most scenarios, use frameSampleMethod in “userdefined” mode, where interval must stay within the valid range for the video’s duration. | 2 |
| splitInterval | integer | No | Minimum shot segmentation interval in seconds. Range: [1, 150]. Default values are recommended based on video length. | 10 |
| language | string | No | Speech recognition language:
| english |
| frameSampleMethod | object | No | Frame sampling method selection | english |
| methodName | string | No | Frame sampling method options:
| standard |
| interval | number | No | Frame sampling interval in seconds. Valid only in userdefined mode. | 4 |
| pixel | integer | No | Frame resolution: Maximum edge length in pixels. Valid only in userdefined mode. Range: 300 to 768. | 400 |
| videoRoles | array<object> | No | Characters | |
array<object> | No | Characters | ||
| roleName | string | No | Character name | John Doe |
| roleInfo | string | No | Character information | Is a xx |
| urls | array | No | Character profile pictures | |
string | No | Character profile picture | http://xxx | |
| isAutoRecognition | boolean | No | Indicates whether automatic recognition uses a separate video URL. If true, profile pictures cannot be matched to video frames by timestamp because they may come from a different video. | false |
| timeIntervals | array<object> | No | List of character appearance time segments | |
object | No | |||
| startTime | integer | No | Start time in milliseconds | 0 |
| endTime | integer | No | End time in milliseconds | 1748491200000 |
| textProcessTasks | array<object> | No | List of video summarization (text processing) tasks. Maximum: 3 tasks. | |
object | No | Video summarization (text processing) task | ||
| modelId | string | No | Unique identifier for the LLM used in video summarization. Supported models:
| qwen-max |
| modelCustomPromptTemplate | string | No | LLM prompt template for video summarization: Must include both {videoAsrText} and {videoAnalysisText} variables. {videoAsrText} is the ASR transcript. {videoAnalysisText} contains visual-language analysis results for each sub-shot. | xxx |
| modelCustomPromptTemplateId | string | No | Unique identifier for the LLM prompt template used in video summarization:
If modelCustomPromptTemplate is not provided, the system uses the default prompt for this template ID. modelCustomPromptTemplate takes precedence over modelCustomPromptTemplateId. | PlotDetail |
| faceIdentitySimilarityMinScore | number | No | Character recognition similarity threshold: Range (0–1) | 0.7 |
| videoShotFaceIdentityCount | integer | No | Number of sampled frames (images) per shot (segment) used for character matching: Range [1–5] | 3 |
| excludeGenerateOptions | array | No | Excluded generation steps:
| |
string | No | Excluded generation steps:
| [\"videoCaption\"] | |
| videoCaptionInfo | object | No | Caption (ASR) information | |
| videoCaptions | array<object> | No | Caption (ASR) content. Use either this field or videoCaptionsFileUrl. | |
object | No | Caption (ASR) content | ||
| startTime | integer | No | Sentence start time in milliseconds | 1000 |
| endTime | integer | No | Sentence end time in milliseconds | 10000 |
| text | string | No | Content | Hello |
| speaker | string | No | Character | John Doe |
| videoCaptionFileUrl | string | No | Video caption (ASR) file | oss:// | http:// |
| autoRoleRecognitionVideoUrl | string | No | Separate video URL for automatic recognition | http:// |
| splitType | string | No | Shot segmentation type: minDuration (enforces minimum shot length), fixDuration (segments by fixed duration). Default: minDuration. | fixDuration |
| videoUrls | array | No | Multiple video URLs | |
string | No | Video URL | http://xxx | |
| addDocumentParam | object | No | When a dataset is specified, video understanding results are uploaded to Miaosou along with the video as metadata. | |
| datasetId | integer | No | Dataset ID: Required if uploading to Miaosou. | 890 |
| datasetName | string | No | Dataset name | xxx |
| document | object | No | Miaosou upload parameters. If omitted, values are auto-generated. | |
| title | string | No | Video title | xxx |
| docId | string | No | Unique document business ID. Duplicates are rejected within the same dataset. | xxx |
| categoryUuid | string | No | Unique category identifier | xxx |
| tags | array | No | Tags | |
string | No | Tag value | xx | |
| extend1 | string | No | Extension field 1 | xx |
| extend2 | string | No | Extension field 2 | xx |
| extend3 | string | No | Extension field 3 | xx |
| metadata | object | No | Metadata | |
| keyValues | array<object> | No | Key-value structured metadata | |
object | No | Key-value structured metadata | ||
| key | string | No | Field name | xxx |
| value | string | No | Field value | xx |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Response data | ||
| header | object | Streaming output header containing general response information | |
| errorCode | string | Error code | InvalidParam |
| errorMessage | string | Error message | Pop sign mismatch, please check log. |
| event | string | Event type | task-progress-start-generating |
| eventInfo | string | Event description | Optional |
| sessionId | string | Unique identifier for the generation session | xxx |
| taskId | string | Unique task identifier | xxx |
| traceId | string | Trace ID for request tracking | 2150432017236011824686132ecdbc |
| payload | object | Generated result data | |
| output | object | Output content object | |
| videoAnalysisResult | object | Video language (VL) generation result | |
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| text | string | Generated content | Based on xxx |
| usage | object | Token count | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| imageTokens | integer | Number of tokens used for image recognition | 20 |
| videoShotAnalysisResults | array<object> | Language analysis results for each video shot. Due to large size, retrieve from resultJsonFileUrl. | |
object | Language analysis result for each video shot | ||
| endTime | integer | End time in milliseconds (relative time) | 10000 |
| startTime | integer | Start time in milliseconds (relative time) | 1000 |
| text | string | Generated content for the shot | Based on xxx |
| modelId | string | Actual model identifier used | qwen3-vl-plus |
| videoCaptionResult | object | Video caption result | |
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| videoCaptions | array<object> | List of video captions | |
object | Video caption | ||
| endTime | integer | End time in milliseconds (relative time) | 20000 |
| endTimeFormat | string | Formatted end time, e.g., 00:01 | 00:01 |
| startTime | integer | Start time in milliseconds (relative time) | 1000 |
| startTimeFormat | string | Formatted start time, e.g., 00:01 | 00:01 |
| text | string | Caption content | xxx |
| speaker | string | Character | John Doe |
| videoGenerateResult | object | Video summary result | |
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| text | string | Video summary content | Based on xxx |
| usage | object | Token count | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| modelId | string | Actual model identifier used | qwen-max |
| modelReduce | boolean | Indicates whether the model was downgraded. If the model is qwen-max or qwen-max-latest and exceeds the prompt input limit, the system attempts to downgrade to qwen-plus-latest to preserve information integrity. | qwen-plus-latest |
| reasonText | string | Model reasoning process | xxx |
| index | integer | Multi-task index, starting from 1 | 1 |
| videoMindMappingGenerateResult | object | Video mind map result | |
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| text | string | Raw generated content | Based on xxx |
| usage | object | Token count | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| videoMindMappings | array<object> | Mind map | |
array<object> | Mind map | ||
| childNodes | array<object> | Child nodes | |
array<object> | Child nodes | ||
| childNodes | array<object> | Child nodes | |
object | Child nodes | ||
| name | string | Node description | Level 3 |
| name | string | Node description | Level 2 |
| name | string | Node description | Level 1 |
| modelId | string | Actual model identifier used | true |
| modelReduce | boolean | Indicates whether the model was downgraded. If the model is qwen-max or qwen-max-latest and exceeds the prompt input limit, the system attempts to downgrade to qwen-plus-latest to preserve information integrity. | true |
| videoTitleGenerateResult | object | Video title result | |
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| text | string | Generated content | Title |
| usage | object | Token count | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| modelId | string | Actual model identifier used | qwen-max |
| modelReduce | boolean | Indicates whether the model was downgraded. If the model is qwen-max or qwen-max-latest and exceeds the prompt input limit, the system attempts to downgrade to qwen-plus-latest to preserve information integrity. | true |
| videoShotSnapshotResult | object | Shot frame sampling result. Due to large size, retrieve from resultJsonFileUrl. | |
| videoShots | array<object> | List of segments | |
array<object> | Segment | ||
| startTime | integer | Start time in milliseconds (relative time) | 0 |
| endTime | integer | End time in milliseconds (relative time) | 0 |
| startTimeFormat | string | Formatted start time, e.g., 00:01 | 00:01 |
| endTimeFormat | string | Formatted end time, e.g., 00:01 | 00:02 |
| videoSnapshots | array<object> | List of frames | |
object | Frame | ||
| url | string | Frame URL: Publicly accessible URL with expiration. Download before it expires. | http://xxx |
| resultJsonFileUrl | string | Result JSON file URL: Due to large response size, some data is provided via file download. Use this URL to download and parse the file:
| http:// |
| videoGenerateResults | array<object> | When multiple tasks are specified (textProcessTasks is provided), results appear here. Locate results by array index or the index field (starting from 1). | |
array<object> | Text analysis result | ||
| generateFinished | boolean | Indicates whether the current task has finished generating | true |
| modelId | string | Model ID | qwen-max-latest |
| index | integer | Index, starting from 1 | 1 |
| text | string | Video summary content | xxx |
| reasonText | string | Model reasoning process | xxx |
| usage | object | Usage | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| videoRoleRecognitionResult | object | Automatic recognition result | |
| videoRoles | array<object> | List of characters | |
array<object> | |||
| roleName | string | Character name | test-role |
| roleInfo | string | Character description | Character identity |
| timeIntervals | array<object> | Appearance time segments | |
object | |||
| startTime | integer | Start time in milliseconds | 0 |
| endTime | integer | End time in milliseconds | 1735535279000 |
| timestamp | integer | Character appearance time | 23333333 |
| url | string | Image URL | https://img.alicdn.com/imgextra/i1/O1CN01qtgazV1oZ3djafcFz_!!6000000005238-0-tps-1540-1540.jpg |
| ratio | number | Appearance rate | 0.06 |
| isAutoRecognition | boolean | Indicates whether automatic recognition uses a separate video URL. If true, profile pictures cannot be matched to video frames by timestamp because they may come from a different video. | true |
| videoCalculatorResult | object | Cost estimation result | |
| items | array<object> | Billing item details | |
object | Billing item details | ||
| name | string | Billing item name | xxx |
| type | string | Billing item type | Model inference |
| inputToken | integer | Input tokens | 123 |
| outputToken | integer | Output tokens | 13 |
| time | integer | Billed duration | 9 |
| inputExpense | number | Input token cost | 0.234 |
| outputExpense | number | Output token cost | 0.124 |
| timeExpense | number | Time-based cost | 0.02 |
| totalExpense | number | Total cost | 0.378 |
| addDatasetDocumentsResult | object | Auto-save execution result | |
| status | integer | Auto-save task status: 1 = success, 0 = failure | 1 |
| title | string | Video title | xxx |
| docId | string | Video docId | xxx |
| errorMessage | string | If auto-save fails, this field contains the error message. | xxx |
| docUuid | string | Video docUuid | uuid |
| usage | object | Token count | |
| inputTokens | integer | Number of input tokens | 1 |
| outputTokens | integer | Number of output tokens | 1 |
| totalTokens | integer | Total number of tokens | 2 |
| requestId | string | Unique request identifier | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
Examples
Success response
JSON format
{
"header": {
"errorCode": "InvalidParam",
"errorMessage": "Pop sign mismatch, please check log.",
"event": "task-progress-start-generating",
"eventInfo": "可空",
"sessionId": "xxx",
"taskId": "xxx",
"traceId": "2150432017236011824686132ecdbc"
},
"payload": {
"output": {
"videoAnalysisResult": {
"generateFinished": true,
"text": "根据xxx",
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2,
"imageTokens": 20
},
"videoShotAnalysisResults": [
{
"endTime": 10000,
"startTime": 1000,
"text": "根据xxx"
}
],
"modelId": "qwen3-vl-plus"
},
"videoCaptionResult": {
"generateFinished": true,
"videoCaptions": [
{
"endTime": 20000,
"endTimeFormat": "00:01",
"startTime": 1000,
"startTimeFormat": "00:01",
"text": "xxx",
"speaker": "张三"
}
]
},
"videoGenerateResult": {
"generateFinished": true,
"text": "根据xxx",
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2
},
"modelId": "qwen-max",
"modelReduce": true,
"reasonText": "xxx",
"index": 1
},
"videoMindMappingGenerateResult": {
"generateFinished": true,
"text": "根据xxx",
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2
},
"videoMindMappings": [
{
"childNodes": [
{
"childNodes": [
{
"name": "三级"
}
],
"name": "二级"
}
],
"name": "一级"
}
],
"modelId": "true",
"modelReduce": true
},
"videoTitleGenerateResult": {
"generateFinished": true,
"text": "标题",
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2
},
"modelId": "qwen-max",
"modelReduce": true
},
"videoShotSnapshotResult": {
"videoShots": [
{
"startTime": 0,
"endTime": 0,
"startTimeFormat": "00:01",
"endTimeFormat": "00:02",
"videoSnapshots": [
{
"url": "http://xxx"
}
]
}
]
},
"resultJsonFileUrl": "http://",
"videoGenerateResults": [
{
"generateFinished": true,
"modelId": "qwen-max-latest",
"index": 1,
"text": "xxx",
"reasonText": "xxx",
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2
}
}
],
"videoRoleRecognitionResult": {
"videoRoles": [
{
"roleName": "test-role",
"roleInfo": "角色身份",
"timeIntervals": [
{
"startTime": 0,
"endTime": 1735535279000,
"timestamp": 23333333,
"url": "https://img.alicdn.com/imgextra/i1/O1CN01qtgazV1oZ3djafcFz_!!6000000005238-0-tps-1540-1540.jpg"
}
],
"ratio": 0.06,
"isAutoRecognition": true
}
]
},
"videoCalculatorResult": {
"items": [
{
"name": "xxx",
"type": "模型推理",
"inputToken": 123,
"outputToken": 13,
"time": 9,
"inputExpense": 0.234,
"outputExpense": 0.124,
"timeExpense": 0.02,
"totalExpense": 0.378
}
]
},
"addDatasetDocumentsResult": {
"status": 1,
"title": "xxx",
"docId": "xxx",
"errorMessage": "xxx",
"docUuid": "uuid"
}
},
"usage": {
"inputTokens": 1,
"outputTokens": 1,
"totalTokens": 2
}
},
"requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64"
}
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. |
Visit the Error Center to view more error codes.
Release notes
See Release Notes for a complete list.