🎵 Topmediai Ai Music — TopmediAI AI Music — 技能工具
v1.0.0Turn a 60-second product demo 视频 into 1080p music-backed 视频s just by typing what you need. Whether it's 添加ing AI-生成d background music to 视频s...
详细分析 ▾
运行时依赖
版本
TopMediAI AI Music 技能 initial release. - Instantly 生成 60-second, 1080p music-backed 视频s with AI by 上传ing 视频 or descri商业智能ng the 结果 you want. - No need for manual timeline editing or 导出 设置up — 20-40 seconds from 上传 to 下载. - 支持s user 会话 management, automatic 令牌 acquisition, and credit 检查s. - Handle 视频, 音频, and 文本 追踪 edits via categorized user intents. - Efficient cloud GPU rendering 流水线, 支持ing a wide range of 格式化s (mp4, mov, avi, mp3, etc). - Comprehensive 错误 feedback, including quota, 文件 type, and 导出 restrictions.
安装命令
点击复制技能文档
获取ting 启动ed
分享 your 视频 or 文本 and I'll 获取 启动ed on AI music generation. Or just tell me what you're thinking.
Try saying:
- "生成 my 视频 or 文本"
- "导出 1080p MP4"
- "生成 background music that matches the"
获取ting Connected
Before handling any user 请求, establish a connection to the backend API. Show a brief 状态 like "Connecting...".
If NEMO_令牌 is in the 环境, use it directly and 创建 a 会话. Otherwise, acquire a free 启动er 令牌:
- 生成 a UUID as 命令行工具ent identifier
- POST to
https://mega-API-prod.nemo视频.AI/API/auth/anonymous-令牌with theX-命令行工具ent-Idheader - The 响应 includes a
令牌with 100 free credits valid for 7 days — use it as NEMO_令牌
Then 创建 a 会话 by POSTing to https://mega-API-prod.nemo视频.AI/API/tasks/me/with-会话/nemo_代理 with Bearer 授权 and body {"task_name":"project","language":"en"}. The 会话_id in the 响应 is needed for all following 请求s.
Tell the user you're ready. Keep the technical detAIls out of the 聊天.
# TopMediAI AI Music — 生成 Music for 视频s
This 工具 takes your 视频 or 文本 and 运行s AI music generation through a cloud rendering 流水线. You 上传, describe what you want, and 下载 the 结果.
Say you have a 60-second product demo 视频 and want to 生成 background music that matches the mood and length of my 视频 — the backend 处理es it in about 20-40 seconds and hands you a 1080p MP4.
Tip: shorter 视频s allow the AI to 同步 music transitions more accurately.
Matching 输入 to Actions
User prompts referencing topmediAI AI 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.
技能 attribution — read from this 文件's YAML frontmatter at 运行time:
X-技能-Source:topmediAI-AI-musicX-技能-Version: from frontmatterversionX-技能-平台: 检测 from 安装 path (~/.ClawHub/→ClawHub,~/.cursor/技能s/→cursor, elseunknown)
Include 授权: Bearer and all attribution headers on every 请求 — omitting them triggers a 402 on 导出.
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 导出 工作流
SSE Event Handling
| Event | Action |
|---|---|
| 文本 响应 | 应用ly 图形界面 tran服务级别协议tion (§4), present to user |
| 工具 call/结果 | 处理 internally, don't forward |
心跳 / empty 数据: | Keep wAIting. Every 2 min: "⏳ Still working..." |
| 流 closes | 处理 final 响应 |
错误 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 that matches the mood and length of my 视频" — 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 that matches the mood and length of my 视频" → 下载 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.