tencent cloud

APIs

CreateVLTemplate

下载
聚焦模式
字号
最后更新时间: 2026-10-26 11:47:50

1. API Description

Domain name for API request: iss.intl.tencentcloudapi.com.

Create a visual understanding template.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateVLTemplate.
Version Yes String Common Params. The value used for this API: 2023-05-17.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
AIModel Yes String

AI model

Enumeration values:

  • ivc-vl-1.0: View large model
Name Yes String

Template name. Supports only Chinese, English, digits, _, and -, with a maximum length of 32 characters.

Prompt Yes String

Prompt content, maximum 2MB

AnalysisMode Yes String

Analysis mode

Enumeration values:

  • image: image mode
  • video: video mode
Times.N Yes Array of EffectiveTime

List of effective periods, up to 100 entries

Describe No String

Template description. Maximum length: 256 characters.

ImageConfig No ImageSceneInfo

Image scenario configuration (required when AnalysisMode=image)

3. Output Parameters

Parameter Name Type Description
Data VLTemplateInfo

Visual understanding template information

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Successful Example

Input Example

POST / HTTP/1.1
Host: iss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateVLTemplate
<Common request parameters>

{
    "AIModel": "ivc-vl-1.0",
    "Name": "Test template",
    "Prompt": "What are in the image",
    "AnalysisMode": "image",
    "Times": [
        {
            "BeginTime": "00:00:00",
            "EndTime": "10:00:00",
            "WeekDay": 1
        }
    ],
    "ImageConfig": {
        "Type": 1,
        "Interval": 10
    }
}

Output Example

{
    "Response": {
        "Data": {
            "AIModel": "ivc-vl-1.0",
            "AnalysisMode": "image",
            "CreatedAt": "2026-08-17 17:23:41",
            "Describe": "",
            "ImageConfig": {
                "Interval": 10,
                "MultiMode": null,
                "Type": 1
            },
"Name": "Test template"
"Prompt": "What are in the image",
            "Times": [
                {
                    "BeginTime": "00:00:00",
                    "EndTime": "10:00:00",
                    "WeekDay": 1
                }
            ],
            "UpdatedAt": "2026-08-17 17:23:41",
            "VLTemplateId": "VT58c*************************04e3"
        },
        "RequestId": "1676edea-cb77-4629-968b-197833ba8d87"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameterValue.InvalidAIModel InvalidParameterValue.InvalidAIModel
InvalidParameterValue.InvalidDescribe Invalid description.
InvalidParameterValue.InvalidImageConfigIntervalForLowFreq The value range of the infrequent frame capturing frequency is [30, 36000] seconds.
InvalidParameterValue.InvalidImageConfigIntervalForRealtime The value range of the real-time frame capturing frequency is [5, 180] seconds.
InvalidParameterValue.InvalidImageConfigType Invalid screenshot type
InvalidParameterValue.InvalidMediaType Invalid media type
InvalidParameterValue.InvalidName Name is empty or incorrect.
InvalidParameterValue.InvalidPrompt Invalid prompt
InvalidParameterValue.InvalidTimes InvalidParameterValue.InvalidTimes
InvalidParameterValue.MissingImageConfig InvalidParameterValue.MissingImageConfig
InvalidParameterValue.MissingTimes InvalidParameterValue.MissingTimes

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈