TencentCloud VITA: Invoking Tencent Cloud Image and Video Understanding in Agents

Introduction

When creating summaries for surveillance playback, descriptions for news clips, or extracting key points from product demonstration videos, the common practice is to integrate multimodal APIs yourself, write code for uploads and authentication, and then construct prompts. Rules for handling media formats, local files, and public URLs can easily become scattered within business logic. Here we introduce TencentCloud VITA on SkillHub (Coordinate @tencent-adm/tencentcloud-vita): It encapsulates Tencent Cloud VITA’s image and video understanding capabilities into an Agent-readable SKILL.md and scripts/main.py. The Agent calls the script according to specifications and returns the results, rather than “eyeballing” and fabricating analysis in the conversation.

What is this

TencentCloud VITA is an enterprise-sourced Skill published by the Tencent Cloud Content Recognition team (SkillHub category design-media, current version 1.0.9). It is designed for image understanding, video understanding, and description generation. The scenarios listed in the official introduction include: image/video analysis, surveillance footage analysis, sports highlight extraction, live streaming understanding, news video summarization, product demo video analysis, and setting or updating persistent vita prompts.

Input formats support single images, multiple images (in time series), and video URLs. The Skill is tagged with requires_api_key=true, meaning you must configure a Tencent Cloud VITA API Key before calling the backend service.

Core Functions

The following capabilities are derived from the SKILL.md within the package and the official page introduction. You can use them according to input types.

Media Inputs and Limitations

Input Type Description Limitations
Single Image Image URL or local path + prompt JPG/JPEG/PNG/SVG/WEBP, max 100MB
Multiple Images Multiple URLs or local paths (in time series) + prompt Up to 100 images for 640×360, up to 150 images for 448×448
Single Video Video URL + prompt MP4/MOV/AVI/WebM, H.264/H.265, max 10 minutes, max 100MB

Key processing rules:

  1. URLs for remote images and remote videos must be publicly accessible.
  2. Local images can be read by the script and converted to base64 data URLs to call the API.
  3. Local videos are not uploaded directly by the script; you must first obtain an accessible URL via other tools (e.g., COS-related Skills) and pass it via --video.
  4. Upon call failure, the Agent specification requires not to fabricate analysis results, but to return a clear error.

Prompt and Orchestration

  • Users can persist custom prompts by writing to <SKILL_DIR>/prompt/vita_prompt.txt (no script execution needed).
  • Runtime priority: --prompt argument > persistent file > default text “Please describe this media content”.
  • The script supports non-streaming JSON output, --stream streaming text, and --stdin for reading JSON.

Dependencies and Environment

  • Python 3.7+, pip install openai (OpenAI compatible SDK).
  • Environment variable TENCENTCLOUD_VITA_API_KEY: Configure this after enabling the service and creating an API KEY in the Tencent Cloud Console VITA Service Management.

Billing (as recorded in Skill documentation): Input tokens 1.2 RMB/million, Output tokens 3.5 RMB/million; default concurrency is 5, exceeding this may return 429.

Installation and Activation

Official SkillHub installation instructions: First read SkillHub Installation and Priority Source Configuration, then install this Skill. The installation coordinate provided on the page is @tencent-adm/tencentcloud-vita.

Using SkillHub CLI

If the CLI is not installed, you can execute the full installation (recommended in docs):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized:

skillhub install tencent-adm/tencentcloud-vita --dir <Your Agent skills directory>

Common directories (excerpted from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Zip Package Installation

The SkillHub detail page provides the 1.0.9 Zip download address:

https://api.skillhub.cn/api/v1/download?slug=@tencent-adm/tencentcloud-vita

After unzipping to the corresponding subpath in the skills directory mentioned above, restart or refresh the Agent to load it.

Configure API Key

Linux / macOS example:

export TENCENTCLOUD_VITA_API_KEY="your_api_key_here"

Windows PowerShell:

$env:TENCENTCLOUD_VITA_API_KEY = "your_api_key_here"

Typical Usage

Replace <SKILL_DIR> with the actual path of this Skill in your local skills directory (e.g., ~/.cursor/skills/tencentcloud-vita).

Single Remote Image:

python3 <SKILL_DIR>/scripts/main.py \
  --image "https://example.com/image.jpg" \
  --prompt "Describe the content in this image"

Local Image (Script auto-converts to base64):

python3 <SKILL_DIR>/scripts/main.py \
  --image "./demo.png" \
  --prompt "Describe the content in this image"

Multiple Images Time-series Analysis:

python3 <SKILL_DIR>/scripts/main.py \
  --image "https://example.com/frame1.jpg" \
  --image "./frame2.png" \
  --prompt "Analyze what has changed in these images"

Video Understanding (URL only):

python3 <SKILL_DIR>/scripts/main.py \
  --video "https://example.com/video.mp4" \
  --prompt "Summarize the main content of this video"

Streaming Long Text Output:

python3 <SKILL_DIR>/scripts/main.py \
  --video "https://example.com/video.mp4" \
  --prompt "Describe the video content in detail" \
  --stream

Non-streaming mode returns JSON by default, containing result and usage (token statistics). --image and --video are mutually exclusive and cannot be specified simultaneously.

The Skill also provides prompt template recommendations for scenarios such as surveillance, news, commerce, sports highlights, and live streaming quality. You can rewrite them according to your business needs and write them to prompt/vita_prompt.txt or pass them via --prompt.

Applicable Scenarios and Notes

Who is it for: Teams that need to uniformly integrate Tencent Cloud VITA within Agent workflows like Cursor, Claude Code, Codex, and want the Skill to enforce the rule of “must run script, strictly no hallucinated video descriptions”; SkillHub statistics show approximately 2171 downloads and 141 installations (page data, subject to change over time).

Things to Note:

  1. Without a valid API Key, the script cannot call the service. Check environment variables and console activation status.
  2. Local videos must first resolve a public URL; this Skill does not include built-in COS upload.
  3. Image size, resolution counts, video duration, and encoding must meet the limits in the table above, otherwise, API layer failures are likely.
  4. Enterprise-sourced Skill; before use, you can view the security scan report links on the SkillHub detail page (page displays results related to Keen, Sanbu, etc.).

Conclusion

The TencentCloud VITA Skill consolidates “Image/Video Understanding + Prompt Persistence + Script Calling Conventions” into an Agent-executable specification, suitable for upgrading VITA from scattered scripts to a reusable Skill capability. Official entry points:

  • SkillHub Page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-vita
  • API Coordinate Page: https://api.skillhub.cn/tencent-adm/tencentcloud-vita
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye