Video To Gif logo

Video To Gif

Organization
meitu
video-to-gif

使用 meitu-cli 把视频转 GIF 动图,支持普通 GIF(长边 ≤480px)和透明底 GIF(240×240px)。当用户说视频转 GIF、做表情包、做动图、透明底贴纸、浮动表情时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namevideo-to-gif
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 Video To Gif 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/video-to-gif
  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/video-to-gif .claude/skills/video-to-gif
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video To Gif 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 Video To Gif 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 Video To Gif 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.

Video To GIF

Overview

调用 meitu video-to-gif 将已有视频转换为 GIF 动图,覆盖 2 类:

  1. 普通 GIF:api_video_to_gif,等比例 GIF,长边 ≤480px,适用于微信表情包、社交动图
  2. 透明底 GIF:api_convert_video_to_gif,固定 240×240px 透明底,适用于透明贴纸、浮动表情

尺寸不可自定义。不处理:图片转 GIF、GIF 转视频、GIF 编辑、视频拼接、视频配音、视频风格变换。

API Mapping

场景后端 API
普通 GIFapi_video_to_gif
透明底 GIFapi_convert_video_to_gif

Dependencies

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

路径别名:$VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6;meitu auth verify --json
  2. 确认已跑过 Config Phase;MEITU_OPENAPI_TOOL_TASK_MODE=command
  3. output_dir 解析:openclaw.yaml → ./output/ | else → $VISUAL/output/video-to-gif/;mkdir -p {output_dir}

Execute

触发信号/路由

命中信号词:

  • api_video_to_gif(普通):转 GIF、做表情包、动图、GIF 转换(无透明需求)
  • api_convert_video_to_gif(透明底):透明底 GIF、透明贴纸、浮动表情、透明背景 GIF

决策顺序:

  1. Agent 画面识别视频内容生成 prompt(如"人物在纯色背景前做表情""猫咪在户外奔跑")
  2. 按透明底需求分支:
    • 需要透明背景(用户明确要求 + 纯色/绿幕/简单背景)→ api_convert_video_to_gif
    • 否 / 通用 → api_video_to_gif(默认)

无法判断 → prompt 写"通用视频"走默认 api_video_to_gif。

参数定义

参数类型必填说明
video_urlSTRING是视频地址;缺失 → "请提供视频链接"
promptSTRING是Agent 对视频内容的描述,用于判断 GIF 类型

API 参数映射

两路 API 均直传 video_url:

  • api_video_to_gif → 输出等比例 GIF,长边 ≤480px
  • api_convert_video_to_gif → 输出 240×240px 透明底 GIF

工具调用

普通 GIF:

bash
meitu video-to-gif \
  --skill_name skill_video-to-gif \
  --video_url {video_url} \
  --prompt "{content_description}" \
  --json --download-dir {output_dir}

透明底 GIF:

bash
meitu video-to-gif \
  --skill_name skill_video-to-gif \
  --video_url {video_url} \
  --prompt "{content_description}" \
  --transparent true \
  --json --download-dir {output_dir}

错误降级

场景处理
video_url 缺失提示"请提供视频链接"
video_url 不可访问直接返回无效错误,不重试
用户要透明底但视频无透明通道尝试调用透明 API,效果不佳则提示限制
用户要 >480px 的 GIF告知 api_video_to_gif 最大 480px
用户要自定义尺寸透明底告知 api_convert_video_to_gif 固定 240×240px
视频时长过长提示裁剪或降低质量重试
api_convert_video_to_gif 超时降级为 api_video_to_gif(放弃透明底)重试,告知透明底暂不可用
api_video_to_gif 调用失败重试 1 次,仍失败返回错误
内容合规拦截直接返回合规提示,不重试
图片转 GIF / GIF 转视频 / GIF 编辑拒绝,告知能力范围外

Deliver

解析 --json → downloaded_files[0].saved_path 或 media_urls[0]。

mv {file} {output_dir}/{YYYY-MM-DD}_{name}_{gif_type}.gif(gif_type = normal | transparent)

Output

  • 格式:GIF
    • 普通:等比例,长边 ≤480px
    • 透明底:240×240px 透明背景
  • 命名:{YYYY-MM-DD}_{descriptive-name}_{normal|transparent}.gif
  • 位置:项目 → ./output/;一次性 → $VISUAL/output/video-to-gif/

基线 Task ID

t_mt1a3i5n7b1680836b-8e05-47d2-b6f0-3bd10eb0c5d3

Frequently asked questions

What does the Video To Gif AI skill do?

使用 meitu-cli 把视频转 GIF 动图,支持普通 GIF(长边 ≤480px)和透明底 GIF(240×240px)。当用户说视频转 GIF、做表情包、做动图、透明底贴纸、浮动表情时触发。

Why use Video To Gif on TypingMind?

Because you install it once and use it with any model. Video To Gif 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 Video To Gif in TypingMind?

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

Which AI models can use Video To Gif?

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 Video To Gif?

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

Is the Video To Gif 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 👇