Text To Video logo

Text To Video

Organization
meitu
text-to-video

使用 meitu-cli 从纯文字描述生成动态视频,覆盖高画质默认模式与高动态快速模式。当用户提到文生视频、文字生成视频、帮我生成一段视频、做一个视频、广告视频、产品宣传片、短视频时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nametext-to-video
Stars
36
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Text To Video AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/meitu/meitu-skills/tree/main/skills/text-to-video
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/text-to-video .claude/skills/text-to-video
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Text To Video in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Text To Video on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Text To Video is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Text To Video(文生视频)

Overview

纯文字驱动生成动态视频,涵盖 2 类场景:

  1. 高画质默认模式:创意视频、广告素材、文案可视化、概念演示;4–15s,比例 adaptive/16:9/4:3/1:1/3:4/9:16/21:9,480p/720p,音频默认 on。
  2. 高动态快速模式:追求动态效果 / 画面生动、或需 3s 短时长;3–15s,仅 16:9/1:1/9:16,720p,音频默认 off,动态效果更强。

不处理:图片驱动生成视频、音频驱动生成、视频编辑、视频加特效/改风格。

API Mapping

场景后端 API
高画质默认模式video_toffee_t2v_v20
高动态快速模式video_bonbon_txt2vid_v30

model 映射:

  • auto(默认)/ 不传 → 按路由规则决策
  • toffee → video_toffee_t2v_v20
  • bonbon → video_bonbon_txt2vid_v30
  • 互相降级:一方失败切另一方重试

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 跑命令(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6
  2. meitu auth verify --json
  3. 确认 registry 含 text-to-video
  4. 解析 output_dir:openclaw.yaml → ./output/;else → ~/.openclaw/workspace/visual/output/text-to-video/
  5. 时长钳位:用户要 <3s → 钳位 3s 并告知

Execute

触发信号 / 路由规则

决策顺序:

  1. 时长 <3s → 钳位 3s
  2. 动态优先 / 3s 短时长 命中 → 候选 video_bonbon_txt2vid_v30
  3. 若比例为 4:3/3:4/21:9/adaptive → 比例优先,切回 video_toffee_t2v_v20
  4. 无特殊要求 → video_toffee_t2v_v20(默认)
场景判定关键词路由
动态优先动态、生动video_bonbon_txt2vid_v30
3s 短时长3 秒video_bonbon_txt2vid_v30
默认 / 无特殊要求通用video_toffee_t2v_v20
特殊比例(4:3/3:4/21:9/adaptive)--强制 video_toffee_t2v_v20(比例优先)
要 480p--video_toffee_t2v_v20(bonbon 不支持 480p)

参数定义

通用参数:

参数类型必填范围默认值说明
promptSTRING是----视频内容描述。缺失 → 追问
video_durationNUMBER是3–15按 API 不同toffee: 4–15,默认 10;bonbon: 3–15,默认 5
soundSTRING / BOOL是on/off 或 true/false按 API 不同toffee: BOOL generate_audio,默认 true;bonbon: STRING on/off,默认 off
aspect_ratioSTRING是adaptive / 16:9 / 1:1 / 9:16 / 4:3 / 3:4 / 21:9按 API 不同toffee 全比例支持,默认 adaptive;bonbon 仅 16:9/1:1/9:16,默认 16:9
resolutionSTRING否480p / 720p720p仅 toffee 支持;bonbon 固定 720p

各 API 参数映射:

video_toffee_t2v_v20(高画质默认)

统一参数API 参数映射规则
promptprompt直传
video_durationvideo_durationclamp(4, 15),默认 10
soundgenerate_audioon→true / off→false;默认 true
aspect_ratioratio全比例直传,默认 adaptive
resolutionresolution480p/720p,默认 720p

video_bonbon_txt2vid_v30(高动态快速)

统一参数API 参数映射规则
promptprompt直传
video_durationvideo_durationclamp(3, 15),默认 5
soundsoundon/off 直传,默认 off
aspect_ratioaspect_ratio支持 16:9/1:1/9:16;其他比例切 toffee

工具调用

默认高画质:

bash
meitu text-to-video \
  --skill_name skill_text-to-video \
  --prompt "{video_description}" \
  --video_duration 10 \
  --aspect_ratio adaptive \
  --resolution 720p \
  --sound true \
  --json --download-dir {output_dir}

高动态快速(3s):

bash
meitu text-to-video \
  --skill_name skill_text-to-video \
  --prompt "{dynamic_scene}" \
  --model bonbon \
  --video_duration 3 \
  --aspect_ratio 16:9 \
  --sound off \
  --json --download-dir {output_dir}

错误降级

场景处理方式
prompt 缺失提示"请描述你想生成的视频内容"
时长 <3s钳位 3s,告知"文生视频最短支持 3 秒"
时长 <4s + 默认模式toffee 最短 4s → 降级 video_bonbon_txt2vid_v30
特殊比例 + 快速模式bonbon 仅 16:9/1:1/9:16 → 切 video_toffee_t2v_v20,告知"当前比例不支持动态模式,已切换默认模式"
未指定时长 + 默认模式默认 10s
未指定时长 + 快速模式默认 5s
video_toffee_t2v_v20 失败切 video_bonbon_txt2vid_v30 重试
video_bonbon_txt2vid_v30 失败切 video_toffee_t2v_v20 重试 → 仍失败返回错误
超时 >600s降低时长 / 分辨率重试 1 次 → 仍失败返回错误
内容合规拦截直接返回合规提示,不重试、不降级

冲突规则:

  • 动态 + 特殊比例 → 比例优先,走 video_toffee_t2v_v20
  • 3s 时长 + 默认模式 → 时长优先,走 video_bonbon_txt2vid_v30
  • 要 480p → 走 video_toffee_t2v_v20(bonbon 不支持)

Deliver

解析 --json:

  • ok: true → downloaded_files[0].saved_path 为本地视频
  • ok: false → 输出 code + hint

落盘:mv {file} {output_dir}/{YYYY-MM-DD}_{descriptive-name}.mp4

Output

  • 格式: MP4
  • 命名: {YYYY-MM-DD}_{descriptive-name}.mp4
  • 位置: 项目 → ./output/;一次性 → ~/.openclaw/workspace/visual/output/text-to-video/

基线 Task ID

见根目录 references/task-id-baseline.md 中 text-to-video 条目。

Frequently asked questions

What does the Text To Video AI skill do?

使用 meitu-cli 从纯文字描述生成动态视频,覆盖高画质默认模式与高动态快速模式。当用户提到文生视频、文字生成视频、帮我生成一段视频、做一个视频、广告视频、产品宣传片、短视频时触发。

Why use Text To Video on TypingMind?

Because you install it once and use it with any model. Text To Video is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Text To Video in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/text-to-video. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Text To Video?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Text To Video?

As many as you like. As long as a model supports skills, you can use Text To Video with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Text To Video AI skill free?

Yes. It is published on GitHub by meitu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇