Preface¶
When doing “text → video” in an Agent, the common path is text-to-image first and then image-to-video, with extra work to align prompts for two images and handle file passing in between. If you only need to get an MP4 directly from a single sentence and want to use the Hunyuan text-to-video API already available on Tencent Cloud, you can wrap the generation logic into a Skill so the Agent can call the script according to the docs and return the local path.
Below is the SkillHub community skill @user_0d760f1d/hunyuan-text-to-video (version 1.0.0): based on Tencent Cloud HunyuanVideo 1.5, it uses SubmitHunyuanToVideoJob for pure text-to-video (T2V), without an intermediate image step.
What This Is¶
- Positioning: A direct text-to-video tool based on Tencent Cloud HunyuanVideo API; the summary is “Generate video from a single sentence, no intermediate image step.”
- Form: A generic
SKILL.mdskill package containingscripts/generate.py, which the Agent executes viauv runafter reading the instructions. - Source: SkillHub community (
community), publisheruser_0d760f1d, categorydesign-media; the page is markedrequires_api_key=true, and you must provide your own Tencent Cloud SecretId / SecretKey. - SkillHub page: hunyuan-text-to-video; API entry: https://api.skillhub.cn/user_0d760f1d/hunyuan-text-to-video.
Core Capabilities¶
Verified against the Skill package’s SKILL.md, the current capabilities include:
- Pure T2V: When
Imageis not passed, it runs in text-to-video mode, using the HunyuanVideo 1.5 model. - CLI generation: Submit a job via
generate.py, pollDescribeHunyuanToVideoJob, save the MP4 into the current working directory upon completion, and printVIDEO_READY:/path/to/file.mp4. - Prompt and output:
--promptsupports up to 200 UTF-8 characters (overlong input is auto-truncated); default resolution is720p;--logo-add 0can remove the watermark. - Credentials: Supports
--secret-id/--secret-key, or environment variablesTENCENT_SECRET_IDandTENCENT_SECRET_KEY. - Agent-side convention: After generation, do not attempt to read the video’s binary content; instead, inform the user of the path and optionally call
open_result_viewto display it.
The underlying SDK package name is tencentcloud-sdk-python-vclm. The region example is ap-guangzhou (refer to the Skill documentation).
Installation and Activation¶
Prerequisites: Tencent Cloud¶
- Enable the service on the Hunyuan Video console (free quota or pay-as-you-go).
- Obtain your SecretId and SecretKey in the CAM console.
Install SkillHub CLI (if not installed)¶
command -v skillhub && skillhub --version
If it is not installed, follow the SkillHub installation docs to perform a full installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
The full installation instructions are at: https://skillhub.cn/install/skillhub.md.
Install This Skill¶
The coordinates provided on the official page are @user_0d760f1d/hunyuan-text-to-video. During installation you must use --dir to point to your Agent’s skills directory; otherwise it may be installed into ./skills/ by default and might not be recognized.
skillhub install @user_0d760f1d/hunyuan-text-to-video --dir <your Agent skills directory>
Common paths (from the SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also ask the AI in your conversation to install the same coordinates according to skillhub.md. After installation, restart or refresh as required by your client so the skill is loaded.
Typical Usage¶
The following commands come from the Skill’s SKILL.md: {baseDir} represents the installed Skill root directory (containing scripts/generate.py); replace it with the actual absolute path. Do not cd into the skill directory before running.
Basic text-to-video:
uv run {baseDir}/scripts/generate.py --prompt "A puppy playing by the seaside, realistic photography style"
Specify the output file name:
uv run {baseDir}/scripts/generate.py --prompt "A puppy playing by the seaside, realistic photography style" --filename my-video.mp4
Disable watermark:
uv run {baseDir}/scripts/generate.py --prompt "A puppy playing by the seaside, realistic photography style" --logo-add 0
Pass credentials via environment variables:
TENCENT_SECRET_ID=xxx TENCENT_SECRET_KEY=yyy uv run {baseDir}/scripts/generate.py --prompt "A puppy playing by the seaside, realistic photography style"
Recommended Agent workflow: run the script until VIDEO_READY: appears → tell the user the path → call open_result_view as needed.
Use Cases and Notes¶
Who it suits
- You are already using a Skills-capable client such as Cursor, Claude Code, or Codex, and want to trigger “write prompt + call cloud API + save MP4” via natural language.
- You accept Tencent Cloud HunyuanVideo billing and compliance requirements, and can manage API keys in CAM.
Limitations and cautions
| Item | Notes |
|---|---|
| API key | The Skill tag requires an API Key; do not put secrets into the repo or public logs. |
| Concurrency | The Skill doc states the default is about 1 concurrent job; you must wait for the previous task to finish before submitting another. |
| Job status | WAIT / RUN / FAIL / DONE; on failure, troubleshoot based on the cloud-side response. |
| Result URL | The cloud ResultVideoUrl is valid for about 24 hours; the local MP4 follows the script’s output path. |
| Resolution | The current documentation only lists 720p. |
| Dependencies | The machine needs uv and a Python environment to run the script; the cloud side must have vclm-related capabilities enabled. |
SkillHub aggregated data (at the time of writing): rating 100000, downloads 740, installs 27; these may change over time and should be treated as subject to SkillHub.
Closing¶
hunyuan-text-to-video packages Tencent Cloud HunyuanVideo 1.5’s text-to-video workflow into a SKILL.md and executable scripts. It fits scenarios where an Agent can produce a video directly from a one-sentence description without building your own image-to-video middle layer. After enabling HunyuanVideo and configuring CAM keys, install via the SkillHub coordinates into the appropriate skills directory and start using it.