Introduction¶
When producing marketing assets or product demos, a common requirement is to turn a portrait photo into a short video with template-based motion effects. Integrating a cloud API yourself involves background segmentation (matting), asynchronous jobs, polling, and key configuration; letting a model “draw a video” inside an Agent often deviates from what real services can do. Below we introduce TencentCloud Video Effects on SkillHub (@tencent-adm/tencentcloud-video-effects): upload or specify an image in the conversation, choose an effects template, and the Skill calls Tencent Cloud’s video effects APIs to generate a result video URL.
What This Is¶
TencentCloud Video Effects is an enterprise-source Skill (category design-media, current version 1.0.1) released by the Tencent Cloud Intelligent Creation team. It wraps “image + effects template → short video” into an Agent-executable SKILL.md and scripts/main.py, backed by Tencent Cloud’s TemplateToVideo (submit job SubmitTemplateToVideoJob, query job DescribeTemplateToVideoJob). The Skill detects the human body outline in the image and performs segmentation (matting), then generates a dynamic composition according to the template.
Official entry points:
- API page: https://api.skillhub.cn/tencent-adm/tencentcloud-video-effects
- SkillHub page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-video-effects
Core Capabilities¶
Based on the documentation included in the Skill package, the verified capabilities are:
- Video effects generation: pass a template name (e.g., the docs example
hug) and an image URL or local path; the task is submitted asynchronously and polled until completion by default, outputtingResultVideoUrl. - Input constraints: a single image ≤10MB; supported formats include png, jpg, jpeg, webp, bmp, tiff (consistent with the Tencent Cloud API documentation).
- Adjustable parameters: resolution (default
360p, options such as720p,1080p), whether to add an AI-generated label (--logo-add), whether to add background music (--bgm), polling interval and timeout, or--no-pollto return only the JobId. - Keys and activation: tag
requires_api_key=true; the Video Effects service must be activated and the environment variablesTENCENTCLOUD_SECRET_ID,TENCENTCLOUD_SECRET_KEYmust be configured.
For human matting and the template list, refer to the Tencent Cloud console and Video Effects Template List. Different templates may vary in image count, required clarity, and credit consumption.
Installation and Enablement¶
1. Install the SkillHub CLI (if not installed)¶
First check whether the CLI is already present:
command -v skillhub && skillhub --version
If it is not installed, follow the SkillHub installation documentation for the full installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
See: https://skillhub.cn/install/skillhub.md
2. Install this Skill into the current Agent’s skills directory¶
When installing, you must use --dir to point to the directory actually read by your Agent; otherwise the default ./skills/ location may not be loaded. Common paths:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/in the project
Install command (consistent with skillhub search output):
skillhub install tencentcloud-video-effects --namespace tencent-adm --dir ~/.cursor/skills
You can also have the Agent install it following the official prompt: see https://skillhub.cn/install/skillhub.md, with the install coordinate @tencent-adm/tencentcloud-video-effects.
After installation, restart or refresh your Agent so it loads the new Skill.
3. Configure Tencent Cloud credentials¶
- Activate the service in the Video Effects console.
- Obtain SecretId and SecretKey from API Key Management.
- Set them as environment variables (Linux / macOS example):
export TENCENTCLOUD_SECRET_ID="your_SecretId"
export TENCENTCLOUD_SECRET_KEY="your_SecretKey"
Do not write secrets into a repository or into the Skill scripts. When keys are missing, main.py will report an error in JSON form and provide the above guidance.
4. Runtime environment¶
- Python 3.7+
- Dependencies:
tencentcloud-sdk-python,requests; the Skill notes that the script will attempt to auto-install the SDK if it is missing.
Typical Usage¶
The Skill requires the Agent to execute the script directly when the user has provided an image and the intent is video effects; do not let the model “fabricate” video content, and return a clear error on failure.
In the Skill installation directory, replace <SKILL_DIR> with the actual path (e.g., ~/.cursor/skills/@tencent-adm/tencentcloud-video-effects).
Basic call (default resolution and polling):
python3 <SKILL_DIR>/scripts/main.py hug "https://example.com/human.png"
Specify 720p and background music:
python3 <SKILL_DIR>/scripts/main.py hug "https://example.com/human.png" --resolution 720p --bgm
Local image, disable AI label, 1080p:
python3 <SKILL_DIR>/scripts/main.py hug /path/to/local/image.jpg --logo-add 0 --resolution 1080p
Submit only, without waiting for the result:
python3 <SKILL_DIR>/scripts/main.py hug "https://example.com/human.png" --no-poll
On success, the script outputs JSON where ResultVideoUrl is the result video URL. The query API documentation notes that the URL is valid for 24 hours; for production use you must download or transfer the file yourself.
For more detailed API fields and error codes, see the Skill’s references/SubmitTemplateToVideoJob.md and references/DescribeTemplateToVideoJob.md, or the Tencent Cloud originals 119001 and 119002.
Use Cases and Notes¶
Who it is for
- Developers or content teams working in Agents that support Skills (such as Cursor, Claude Code) and want to drive “portrait image → template effects short video” in natural language.
- Teams willing to comply with Tencent Cloud Video Effects billing and compliance requirements (including content moderation and AI labeling policies).
Limitations and cautions
- A valid API key must be configured and the service must be activated; arrears, moderation failures, oversized images, or inaccessible URLs will cause job failure—refer to the API documentation for error codes.
- Async jobs are polled for up to 600 seconds by default (adjustable via
--max-poll-time); high concurrency may trigger rate limits such asJobNumExceed. - Features such as
--logo-add 0may require additional applications in the console; follow the Tencent Cloud console instructions. - SkillHub page statistics (at the time of data capture): rating 100000, approximately 2003 downloads, approximately 38 installs; enterprise source, published by the Tencent Cloud Intelligent Creation team.
Conclusion¶
TencentCloud Video Effects consolidates the Tencent Cloud TemplateToVideo workflow into an installable Agent Skill: after configuring credentials, a single main.py command completes submission, polling, and result return. To try it in a local Agent, obtain installation instructions from the official SkillHub page: https://www.skillhub.cn/skills/tencent-adm/tencentcloud-video-effects