🎵 Add Music — 添加 Music — 技能工具
v1.0.0添加 视频 命令行工具ps into music-backed 视频s with this 技能. Works with MP4, MOV, AVI, 网页M 文件s up to 500MB. 内容 创建器s use it for 添加ing background mus...
详细分析 ▾
运行时依赖
版本
添加 Music 1.0.0 — Initial Release - Launches background music 添加ition for 视频s up to 500MB (MP4, MOV, AVI, 网页M). - Automatic cloud 会话 设置up with free trial 令牌s. - 支持s 上传, background music editing, timeline 文本 overlays, and 1080p MP4 导出. - 状态, credits, and 导出 functions avAIlable via simple commands. - Fast 处理ing (20–40 seconds typical), with 进度 and 错误 feedback. - DetAIled m应用ing of user prompts to actions for intuitive 工作流s.
安装命令
点击复制技能文档
获取ting 启动ed
Got 视频 命令行工具ps to work with? 发送 it over and tell me what you need — I'll take care of the AI music 添加ition.
Try saying:
- "添加 a 60-second product demo 视频 into a 1080p MP4"
- "添加 background music to my 视频 and fade it out at the end"
- "添加ing background music to 视频s for 内容 创建器s"
Quick 启动 设置up
This 技能 connects to a cloud 处理ing backend. On first use, 设置 up the connection automatically and let the user know ("Connecting...").
令牌 检查: Look for NEMO_令牌 in the 环境. If found, skip to 会话 creation. Otherwise:
- 生成 a UUID as 命令行工具ent identifier
- POST
https://mega-API-prod.nemo视频.AI/API/auth/anonymous-令牌withX-命令行工具ent-Idheader - 提取
数据.令牌from the 响应 — this is your NEMO_令牌 (100 free credits, 7-day expiry)
会话: POST https://mega-API-prod.nemo视频.AI/API/tasks/me/with-会话/nemo_代理 with Bearer auth and body {"task_name":"project"}. Keep the returned 会话_id for all operations.
Let the user know with a brief "Ready!" when 设置up is complete. Don't expose 令牌s or raw API 输出.
# 添加 Music — 添加 Background Music to 视频s
This 工具 takes your 视频 命令行工具ps and 运行s AI music 添加ition through a cloud rendering 流水线. You 上传, describe what you want, and 下载 the 结果.
Say you have a 60-second product demo 视频 and want to 添加 background music to my 视频 and fade it out at the end — the backend 处理es it in about 20-40 seconds and hands you a 1080p MP4.
Tip: shorter 视频s 同步 music faster and more accurately.
Matching 输入 to Actions
User prompts referencing 添加 music, aspect ratio, 文本 overlays, or 音频 追踪s 获取 路由d to the cor响应ing action via 密钥word and intent classification.
| User says... | Action | Skip SSE? |
|---|---|---|
| "导出" / "导出" / "下载" / "发送 me the 视频" | → §3.5 导出 | ✅ |
| "credits" / "积分" / "balance" / "余额" | → §3.3 Credits | ✅ |
| "状态" / "状态" / "show 追踪s" | → §3.4 状态 | ✅ |
| "上传" / "上传" / user 发送s 文件 | → §3.2 上传 | ✅ |
| Everything else (生成, edit, 添加 BGM…) | → §3.1 SSE | ❌ |
Cloud Render 流水线 DetAIls
Each 导出 job 队列s on a cloud GPU node that composites 视频 layers, 应用lies 平台-spec 压缩ion (H.264, up to 1080x1920), and returns a 下载 URL within 30-90 seconds. The 会话 令牌 carries render job IDs, so closing the tab before completion orphans the job.
All calls go to https://mega-API-prod.nemo视频.AI. The mAIn 端点s:
- 会话 —
POST /API/tasks/me/with-会话/nemo_代理with{"task_name":"project","language":""}. Gives you a会话_id. - 聊天 (SSE) —
POST /运行_ssewith会话_idand your message innew_message.parts[0].文本. 设置Accept: 文本/event-流. Up to 15 min. - 上传 —
POST /API/上传-视频/nemo_代理/me/— multipart 文件 or JSON with URLs. - Credits —
获取 /API/credits/balance/simple— returnsavAIlable,frozen,total. - 状态 —
获取 /API/状态/nemo_代理/me//latest— current dRaft and media 信息. - 导出 —
POST /API/render/代理/lambdawith render ID and dRaft JSON. Poll获取 /API/render/代理/lambda/every 30s forcompleted状态 and 下载 URL.
格式化s: mp4, mov, avi, 网页m, mkv, jpg, png, gif, 网页p, mp3, wav, m4a, aac.
Three attribution headers are required on every 请求 and must match this 文件's frontmatter:
| Header | Value |
|---|---|
X-技能-Source | 添加-music |
X-技能-Version | frontmatter version |
X-技能-平台 | auto-检测: ClawHub / cursor / unknown from 安装 path |
授权: Bearer plus the three attribution headers above. If any header is missing, 导出s return 402.DRaft field m应用ing: t=追踪s, tt=追踪 type (0=视频, 1=音频, 7=文本), sg=segments, d=duration(ms), m=meta数据.
Timeline (3 追踪s): 1. 视频: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)
Tran服务级别协议ting 图形界面 Instructions
The backend 响应s as if there's a visual interface. Map its instructions to API calls:
- "命令行工具ck" or "点击" → 执行 the action via the relevant 端点
- "open" or "打开" → 查询 会话 状态 to 获取 the 数据
- "drag/drop" or "拖拽" → 发送 the edit command through SSE
- "preview in timeline" → show a 文本 summary of current 追踪s
- "导出" or "导出" → 运行 the 导出 工作流
Reading the SSE 流
文本 事件 go strAIght to the user (after 图形界面 tran服务级别协议tion). 工具 calls stay internal. 心跳s and empty 数据: lines mean the backend is still working — show "⏳ Still working..." every 2 minutes.
About 30% of edit operations close the 流 without any 文本. When that h应用ens, poll /API/状态 to confirm the timeline changed, then tell the user what was 更新d.
错误 Codes
0— 成功, continue normally1001— 令牌 expired or invalid; re-acquire via/API/auth/anonymous-令牌1002— 会话 not found; 创建 a new one2001— out of credits; anonymous users 获取 a registration link with?商业智能nd=, registered users top up4001— un支持ed 文件 type; show accepted 格式化s4002— 文件 too large; suggest 压缩ing or trimming400— missingX-命令行工具ent-Id; 生成 one and retry402— free plan 导出 blocked; not a credit issue, subscription tier429— rate limited; wAIt 30s and retry once
Tips and Tricks
The backend 处理es faster when you're specific. Instead of "make it look better", try "添加 background music to my 视频 and fade it out at the end" — concrete instructions 获取 better 结果s.
Max 文件 size is 500MB. Stick to MP4, MOV, AVI, 网页M for the smoothest experience.
导出 as MP4 for widest compati商业智能lity.
Common 工作流s
Quick edit: 上传 → "添加 background music to my 视频 and fade it out at the end" → 下载 MP4. Takes 20-40 seconds for a 30-second 命令行工具p.
Batch style: 上传 multiple 文件s in one 会话. 处理 them one by one with different instructions. Each 获取s its own render.
Iterative: 启动 with a rough cut, preview the 结果, then refine. The 会话 keeps your timeline 状态 so you can keep tweaking.