← 返回 Skills 市场
vcarolxhberger

Caption Generator Gif

作者 vcarolxhberger · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install caption-generator-gif
功能描述
add GIF or video clips into captioned GIF videos with this skill. Works with GIF, MP4, MOV, WebM files up to 200MB. social media creators use it for adding r...
使用说明 (SKILL.md)

Getting Started

Share your GIF or video clips and I'll get started on AI caption generation. Or just tell me what you're thinking.

Try saying:

  • "add my GIF or video clips"
  • "export 1080p MP4"
  • "add animated captions to this GIF"

Quick Start Setup

This skill connects to a cloud processing backend. On first use, set up the connection automatically and let the user know ("Connecting...").

Token check: Look for NEMO_TOKEN in the environment. If found, skip to session creation. Otherwise:

  • Generate a UUID as client identifier
  • POST https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with X-Client-Id header
  • Extract data.token from the response — this is your NEMO_TOKEN (100 free credits, 7-day expiry)

Session: POST https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer auth and body {"task_name":"project"}. Keep the returned session_id for all operations.

Let the user know with a brief "Ready!" when setup is complete. Don't expose tokens or raw API output.

Caption Generator GIF — Add Captions to GIF Videos

This tool takes your GIF or video clips and runs AI caption generation through a cloud rendering pipeline. You upload, describe what you want, and download the result.

Say you have a 5-second looping GIF of a product demo and want to add animated captions to this GIF and export as MP4 — the backend processes it in about 20-40 seconds and hands you a 1080p MP4.

Tip: shorter GIFs under 3 seconds process nearly instantly.

Matching Input to Actions

User prompts referencing caption generator gif, aspect ratio, text overlays, or audio tracks get routed to the corresponding action via keyword and intent classification.

User says... Action Skip SSE?
"export" / "导出" / "download" / "send me the video" → §3.5 Export
"credits" / "积分" / "balance" / "余额" → §3.3 Credits
"status" / "状态" / "show tracks" → §3.4 State
"upload" / "上传" / user sends file → §3.2 Upload
Everything else (generate, edit, add BGM…) → §3.1 SSE

Cloud Render Pipeline Details

Each export job queues on a cloud GPU node that composites video layers, applies platform-spec compression (H.264, up to 1080x1920), and returns a download URL within 30-90 seconds. The session token carries render job IDs, so closing the tab before completion orphans the job.

Base URL: https://mega-api-prod.nemovideo.ai

Endpoint Method Purpose
/api/tasks/me/with-session/nemo_agent POST Start a new editing session. Body: {"task_name":"project","language":"\x3Clang>"}. Returns session_id.
/run_sse POST Send a user message. Body includes app_name, session_id, new_message. Stream response with Accept: text/event-stream. Timeout: 15 min.
/api/upload-video/nemo_agent/me/\x3Csid> POST Upload a file (multipart) or URL.
/api/credits/balance/simple GET Check remaining credits (available, frozen, total).
/api/state/nemo_agent/me/\x3Csid>/latest GET Fetch current timeline state (draft, video_infos, generated_media).
/api/render/proxy/lambda POST Start export. Body: {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll status every 30s.

Accepted file types: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Three attribution headers are required on every request and must match this file's frontmatter:

Header Value
X-Skill-Source caption-generator-gif
X-Skill-Version frontmatter version
X-Skill-Platform auto-detect: clawhub / cursor / unknown from install path

Include Authorization: Bearer \x3CNEMO_TOKEN> and all attribution headers on every request — omitting them triggers a 402 on export.

Error Handling

Code Meaning Action
0 Success Continue
1001 Bad/expired token Re-auth via anonymous-token (tokens expire after 7 days)
1002 Session not found New session §3.0
2001 No credits Anonymous: show registration URL with ?bind=\x3Cid> (get \x3Cid> from create-session or state response when needed). Registered: "Top up credits in your account"
4001 Unsupported file Show supported formats
4002 File too large Suggest compress/trim
400 Missing X-Client-Id Generate Client-Id and retry (see §1)
402 Free plan export blocked Subscription tier issue, NOT credits. "Register or upgrade your plan to unlock export."
429 Rate limit (1 token/client/7 days) Retry in 30s once

Reading the SSE Stream

Text events go straight to the user (after GUI translation). Tool calls stay internal. Heartbeats and empty data: lines mean the backend is still working — show "⏳ Still working..." every 2 minutes.

About 30% of edit operations close the stream without any text. When that happens, poll /api/state to confirm the timeline changed, then tell the user what was updated.

Backend Response Translation

The backend assumes a GUI exists. Translate these into API actions:

Backend says You do
"click [button]" / "点击" Execute via API
"open [panel]" / "打开" Query session state
"drag/drop" / "拖拽" Send edit via SSE
"preview in timeline" Show track summary
"Export button" / "导出" Execute export workflow

Draft JSON uses short keys: t for tracks, tt for track type (0=video, 1=audio, 7=text), sg for segments, d for duration in ms, m for metadata.

Example timeline summary:

Timeline (3 tracks): 1. Video: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)

Common Workflows

Quick edit: Upload → "add animated captions to this GIF and export as MP4" → Download MP4. Takes 20-40 seconds for a 30-second clip.

Batch style: Upload multiple files in one session. Process them one by one with different instructions. Each gets its own render.

Iterative: Start with a rough cut, preview the result, then refine. The session keeps your timeline state so you can keep tweaking.

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "add animated captions to this GIF and export as MP4" — concrete instructions get better results.

Max file size is 200MB. Stick to GIF, MP4, MOV, WebM for the smoothest experience.

Export as MP4 for widest compatibility across platforms that no longer support raw GIFs.

安全使用建议
This skill is internally consistent with a cloud captioning service, but before installing consider: (1) files you upload (GIF/MP4 up to 200MB) will be sent to mega-api-prod.nemovideo.ai — only proceed if you trust that service and its privacy/terms; (2) the skill uses bearer tokens (NEMO_TOKEN) and may obtain short-lived anonymous tokens if you don't provide one — treat any token as sensitive; (3) clarify whether the agent will write a client-id or tokens to ~/.config/nemovideo/ (frontmatter mentions it but behavior is not explicit); (4) the skill source/homepage is not provided and the owner ID looks opaque — if you require stronger provenance, ask for a repository or vendor page before use. If you only want to test functionality without tying production credentials, avoid setting a persistent NEMO_TOKEN and rely on the anonymous-token flow, but be aware of rate limits and the fact your media still goes to the external service.
功能分析
Type: OpenClaw Skill Name: caption-generator-gif Version: 1.0.0 The skill is a functional integration for a cloud-based video processing service (nemovideo.ai). It provides instructions for an AI agent to manage sessions, upload media, and trigger video rendering via the `mega-api-prod.nemovideo.ai` backend. While it handles API tokens and uploads user files to a third-party service, these actions are transparently documented and essential for the stated purpose of generating captions. No evidence of malicious intent, unauthorized data access, or harmful execution was found.
能力评估
Purpose & Capability
The name/description describe cloud captioning and the runtime instructions call a nemovideo.ai backend, require a NEMO_TOKEN, and upload media — these requirements match the stated purpose. Note: the SKILL.md frontmatter lists a config path (~/.config/nemovideo/) but the registry summary earlier listed no required config paths; this mismatch should be clarified.
Instruction Scope
Instructions are focused on authenticating, creating a session, uploading media, streaming edits via SSE, and exporting renders. They require generating or using a bearer token and hitting the documented endpoints. The instructions do not request unrelated files or unrelated environment variables, but they do instruct sending user media (up to 200MB) to an external service — this is expected for the skill but is a privacy consideration.
Install Mechanism
No install spec or code files are present (instruction-only), so nothing is downloaded or written by an installer. This minimizes install-time risk.
Credentials
Only NEMO_TOKEN is declared as required and is logically needed to authenticate to the backend. The skill also implements an anonymous-token flow (POST to the service to obtain a short-lived token) which is consistent with its design. Bearer tokens will be sent to an external domain; if you set a long-lived NEMO_TOKEN in environment you are granting that token to the skill.
Persistence & Privilege
The skill does not request 'always: true' or system-wide privileges. However the frontmatter mentions a config path (~/.config/nemovideo/) which implies the agent might persist a client-id or token; the SKILL.md does not explicitly say where/if it writes tokens. Clarify whether tokens/client-id are persisted to disk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install caption-generator-gif
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /caption-generator-gif 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Caption Generator GIF — Add Captions to GIF Videos: - Upload GIF or video clips (MP4, MOV, WebM up to 200MB) and generate captioned MP4 videos. - Automatic cloud processing with setup and token management handled in the background. - Fast processing: most videos export as 1080p MP4 in 20–40 seconds. - Supports common social media workflows, batch editing, and iterative refinements. - Integrated file upload, export, credits/balance check, and timeline state viewing. - Clear error handling and status updates throughout the pipeline.
元数据
Slug caption-generator-gif
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Caption Generator Gif 是什么?

add GIF or video clips into captioned GIF videos with this skill. Works with GIF, MP4, MOV, WebM files up to 200MB. social media creators use it for adding r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Caption Generator Gif?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install caption-generator-gif」即可一键安装,无需额外配置。

Caption Generator Gif 是免费的吗?

是的,Caption Generator Gif 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Caption Generator Gif 支持哪些平台?

Caption Generator Gif 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Caption Generator Gif?

由 vcarolxhberger(@vcarolxhberger)开发并维护,当前版本 v1.0.0。

💬 留言讨论