360 Secure SkillHub
360 安全技能中心

Ai Music Generator Free Ab Old

该 Skill 通过外部云端服务处理视频:上传视频片段并提出自然语言指令,服务端生成匹配的背景音乐并合成 1080p MP4,完成后返回下载链接。支持 MP4、MOV、AVI、WebM 等格式,需配置令牌环境变量,渲染与编码全部在服务端完成。

imo14reifey
imo14reifey
热度 25.12
最近更新 2026-04-09 04:56:46
分类:创作依赖:第三方 API / 读写文件应用场景:视频编辑

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ai-music-generator-free-ab-old
Metadata
name
ai-music-generator-free-ab-old
version
1.0.1
displayName
AI Music Generator Free — Generate and Add Background Music
description
Get 1080p MP4 files from your video clips using this ai-music-generator-free tool. It runs AI music generation on cloud GPUs, so your machine does zero heavy lifting. content creators can adding AI-generated background music to videos in roughly 20-40 seconds — supports MP4, MOV, AVI, WebM.
metadata
{"openclaw":{"emoji":"🎵","requires":{"env":["NEMO_TOKEN"],"configPaths":["~/.config/nemovideo/"]},"primaryEnv":"NEMO_TOKEN","variant":"greeting_v2"}}

Getting Started

Send me your video clips and I'll generate it. No file? Just describe what you need.

Try saying:

  • "generate a 60-second travel montage video into a 1080p MP4"
  • "generate a free background music track that matches the mood of my video"
  • "adding AI-generated background music to videos for content creators"

Automatic Setup

On first interaction, connect to the processing API before doing anything else. Show a brief status like "Setting things up...".

Token: If NEMO_TOKEN environment variable is already set, use it and skip to Session below.

Free token: Generate a UUID as client identifier, then POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with header X-Client-Id: <uuid>. The response field data.token becomes your NEMO_TOKEN (100 credits, 7-day expiry).

Session: POST to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer auth and body {"task_name":"project"}. Save session_id from the response.

Confirm to the user you're connected and ready. Don't print tokens or raw JSON.

Generate Video Clips Into Music-Backed Videos

This does AI music generation for video clips. Everything runs server-side.

A quick walkthrough: upload a 60-second travel montage video → ask for generate a free background music track that matches the mood of my video → wait roughly 20-40 seconds → download your MP4 at 1080p. The backend handles rendering, encoding, all of it.

Fair warning — shorter videos get matched music faster and more accurately.

Sorting Your Requests

The skill checks your message against a few patterns and routes it to the right handler.

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 ❌

How It Works Internally

Everything happens on cloud infrastructure. Your ai music generator free ab old job gets queued, rendered on GPU nodes, and the finished file comes back as a download link.

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":"<lang>"}. 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/<sid> POST Upload a file (multipart) or URL.
/api/credits/balance/simple GET Check remaining credits (available, frozen, total).
/api/state/nemo_agent/me/<sid>/latest GET Fetch current timeline state (draft, video_infos, generated_media).
/api/render/proxy/lambda POST Start export. Body: {"id":"render_<ts>","sessionId":"<sid>","draft":<json>,"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.

Skill attribution — read from this file's YAML frontmatter at runtime:

  • X-Skill-Source: ai-music-generator-free-ab-old
  • X-Skill-Version: from frontmatter version
  • X-Skill-Platform: detect from install path (~/.clawhub/ → clawhub, ~/.cursor/skills/ → cursor, else unknown)

Include Authorization: Bearer <NEMO_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=<id> (get <id> 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

SSE Event Handling

Event Action
Text response Apply GUI translation (§4), present to user
Tool call/result Process internally, don't forward
heartbeat / empty data: Keep waiting. Every 2 min: "⏳ Still working..."
Stream closes Process final response

~30% of editing operations return no text in the SSE stream. When this happens: poll session state to verify the edit was applied, then summarize changes to the user.

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 field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.

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

Common Workflows

From scratch: Describe what you want and the AI generates a draft. You refine from there.

Polish existing content: Upload your video clips, ask for specific changes — generate a free background music track that matches the mood of my video, adjust colors, swap music. The backend handles rendering.

Export ready: Once you're happy, export at 1080p in MP4. File lands in your downloads.

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "generate a free background music track that matches the mood of my video" — concrete instructions get better results.

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

Export as MP4 for widest compatibility.