← 返回 Skills 市场
isdyh01

Al Music Generation

作者 ShortAPl · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
300
总下载
4
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install shortapi-ai-music-generation
功能描述
Use this skill as an entry point to discover, select, and fetch specific integration parameters for all supported AI music generation models.
使用说明 (SKILL.md)

Music Generation Models Integration Skill

Use this skill to explore and integrate all available Music Generation models through the ShortAPI platform.

Overview

ShortAPI provides a unified /api/v1/job/create endpoint for music generation natively. This skill provides an overview of all available music generation models and how to dynamically acquire the specific JSON schema required to invoke them.

  • API Endpoint: https://api.shortapi.ai/api/v1/job/create
  • Category: text-to-audio
  • Kind: inference

Available Music Models

Here is the list of fully supported music generation model IDs you can use:

Model ID Description
suno/suno-v5/generate Generate music and songs using Suno V5

How to use a Music Model

Because each music model supports different parameters (such as lyrics, genre, style, duration, instrumental, or advanced controls), you need to fetch the specific model's schema document to construct a valid API request payload.

Step 1: Fetch the specific Model API Skill Document (MANDATORY)

You MUST first fetch the detailed skill document for the specific \x3Cmodel_id> (e.g. suno/suno-v5/generate) before attempting to construct the POST request payload. DO NOT skip this step. DO NOT hallucinate parameters because different models have completely different parameter names and supported features.

Send a GET request to:

https://shortapi.ai/api/skill/\x3Cmodel_id>

(For example: GET https://shortapi.ai/api/skill/suno/suno-v5/generate)

This URL will return a Markdown (.md) text document containing the exact Input Parameters Schema for that specific model, alongside code examples. You must parse it to understand which arguments go into the args object.

Step 2: Construct the JSON Payload

Using the exact schema document fetched from Step 1, construct a valid JSON payload. Only include arguments that were defined in the document fetched in Step 1. At a minimum, standard structures generally look like this:

{
  "model": "\x3Cmodel_id>",
  "args": {
    "prompt": "Your music description or lyrics here..."
    // ...other model-specific required or optional parameters strictly parsed from Step 1
  },
  "callback_url": "YOUR_OPTIONAL_WEBHOOK_URL"
}

Step 3: Invoke the Unified Generation Endpoint

Make an HTTP POST request to the API Endpoint. Include the Bearer token in the Authorization header.

Bash (cURL) Example

response=$(curl --request POST \
  --url https://api.shortapi.ai/api/v1/job/create \
  --header "Authorization: Bearer $SHORTAPI_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "suno/suno-v5/generate",
    "args": {
      "prompt": "A upbeat electronic dance track with catchy synth melodies"
    }
  }')
JOB_ID=$(echo "$response" | grep -o '"job_id": *"[^"]*"' | sed 's/"job_id": *//; s/"//g')

Step 4: Fetch Generation Status (Background Polling)

Use the returned job_id to poll the query API:

curl --request GET \
  --url "https://api.shortapi.ai/api/v1/job/query?id=$JOB_ID" \
  --header "Authorization: Bearer $SHORTAPI_KEY"

Security, Privacy & Safety Disclosure

  • Endpoint Isolation: This skill only communicates with https://api.shortapi.ai.
  • Credential Safety: The SHORTAPI_KEY is only used in the Authorization header to the official API endpoint and must never be included in any callback payload or exposed to third parties.
  • Background Polling Policy: To ensure resource safety, the Agent should poll the status endpoint for a maximum of 5 minutes per job. If a job does not complete within this window, the Agent must inform the user and stop polling.
  • State Management: The Agent stores job_id and polling state exclusively within the current conversation context. No persistent external database is used for tracking job states by this skill.
  • Content Sanitization: Before rendering generated results (audio, images, or video) inline, the Agent MUST verify that the URLs point to authorized shortapi.ai or known CDN domains. The Agent is responsible for ensuring that the embedded HTML tags (\x3Caudio>, \x3Cvideo>, \x3Cimg>) do not contain malicious attributes or scripts.
  • Callback Lockdown: The callback_url parameter is strictly user-defined. The Agent is prohibited from auto-generating or hallucinating this value.

CRITICAL BEHAVIOR FOR AGENTS:

  1. Authentication First (SHORTAPI_KEY): Before any other step, you MUST verify if the user has a SHORTAPI_KEY. If it is missing, you MUST proactively direct the user to https://shortapi.ai to obtain their API key. DO NOT ask for or accept any other type of API key (e.g., OpenAI, Anthropic, etc.); the only valid key is the SHORTAPI_KEY from ShortAPI.ai.
  2. Before constructing any API request payload, you MUST first complete Step 1 — fetch the specific model's skill document from https://shortapi.ai/api/skill/\x3Cmodel_id>. DO NOT skip this step. DO NOT guess or hallucinate parameters. The document returned in Step 1 is the sole source of truth for the model's input schema.
  3. Music generation takes time. Once you receive the job_id from Step 3, you MUST immediately inform the user that the task has started and release them so they can ask other questions or start new conversations.
  4. You MUST continue to poll the status endpoint in the background silently.
  5. Once the polling returns a completed state (status: "succeeded"), you must proactively message the user with the final generation results (e.g., displaying the generated audio URLs returned in the response payload).
  6. When presenting results, you MUST not only provide the raw URL but also render the content inline for direct preview in the chat. For audio/music, use an HTML \x3Caudio controls src="audio_url">\x3C/audio> tag to embed an inline audio player. For images, use markdown image syntax ![description](image_url). For videos, use an HTML \x3Cvideo controls src="video_url">\x3C/video> tag. The user should be able to see and play the generated result immediately without needing to open a separate browser tab.
安全使用建议
This skill appears to do what it says: it fetches per-model schemas from ShortAPI and submits jobs using your SHORTAPI_KEY, then polls the ShortAPI job status. Before installing: (1) Confirm you trust shortapi.ai (the skill will send your SHORTAPI_KEY to their API endpoints); (2) note the small domain inconsistency (skill docs fetched from shortapi.ai vs. API at api.shortapi.ai) — verify both domains are legitimate for the vendor; (3) the agent will autonomously poll the status endpoint for up to 5 minutes (network activity may occur after the initial response); if you need to restrict autonomous network behavior, disable model invocation or avoid installing; (4) do not provide other secrets to the skill and avoid using an overly-privileged key; (5) if you plan to use callback_url, ensure you provide a safe, trusted URL because the skill will include it in requests. If you want more assurance, test the skill with a throwaway/limited ShortAPI key and monitor network requests during an early run.
功能分析
Type: OpenClaw Skill Name: shortapi-ai-music-generation Version: 1.0.3 The skill is a legitimate integration for the ShortAPI music generation platform. It provides instructions for an AI agent to fetch model schemas, initiate generation jobs, and poll for results via 'https://api.shortapi.ai'. While it directs the agent to render results using HTML tags (audio/video/img) and dynamically fetch parameter schemas from a remote URL, these actions are well-aligned with the stated purpose of media generation and include explicit safety instructions for the agent to verify URLs and sanitize attributes.
能力评估
Purpose & Capability
The skill claims to discover and fetch model integration parameters for ShortAPI music models and the SKILL.md only describes calls to shortapi.ai / api.shortapi.ai and use of a SHORTAPI_KEY. Requesting a single SHORTAPI_KEY is proportional to the described functionality (creating jobs, querying status). There is no unrelated credential or binary requested.
Instruction Scope
The instructions are explicit about fetching per-model schema docs (GET https://shortapi.ai/api/skill/<model_id>), constructing a POST to https://api.shortapi.ai/api/v1/job/create using Authorization: Bearer $SHORTAPI_KEY, and polling the job status. These actions are within the claimed scope. Two small inconsistencies: the doc claims 'only communicates with https://api.shortapi.ai' but earlier steps use https://shortapi.ai for the skill document (different subdomain), and the skill mandates the agent 'continue to poll the status endpoint in the background silently' for up to 5 minutes — this means the agent will autonomously make network requests after initial invocation (not malicious per se, but important for users to know).
Install Mechanism
Instruction-only skill with no install spec and no code files. Nothing is written to disk or downloaded at install time, which is the lowest-risk install posture.
Credentials
Only a single environment variable (SHORTAPI_KEY) is required; this is consistent with an API-key-based integration. No unrelated secrets, config paths, or broad credential requests are present. (Registry metadata lists no primary credential but the SKILL.md declares SHORTAPI_KEY — functionally coherent.)
Persistence & Privilege
The skill does not request always:true and uses normal autonomous invocation. However, it requires continued background polling (up to 5 minutes) and storing job_id/polling state in conversation context — this grants the skill the ability to initiate and continue network activity after the initial user request. That's expected for asynchronous job polling but is noteworthy for users who want to limit autonomous network activity.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install shortapi-ai-music-generation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /shortapi-ai-music-generation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
**Added explicit security, privacy, and authentication rules for music generation job handling.** - Agents must now check that the user provides a valid `SHORTAPI_KEY` from ShortAPI.ai before continuing; no other API keys are permitted. - Added a 5-minute background polling timeout; agents must notify users and stop polling if the job takes longer. - Agents must verify result URLs and sanitize embedded media tags before rendering. - Job and polling state are kept only within the current conversation context—no data is persisted externally. - Updated Security & Privacy section to reflect these stricter controls and safe usage guidelines.
v1.0.2
- Added a new "Security & Privacy Compliance" section, outlining endpoint isolation, callback URL policy, and credential safety. - Clarified that the Agent must never auto-generate or hallucinate `callback_url` values. - Specified that the `SHORTAPI_KEY` should only be used in the Authorization header and never in callback payloads. - No changes to code or functionality; documentation updates only.
v1.0.1
- Added metadata section specifying required environment variable (SHORTAPI_KEY) and homepage link. - No changes to core functionality or supported models. - All integrations, API usage, and instructions remain unchanged.
v1.0.0
ShortApi Music Models Aggregation Skill v1.0.0 - Initial release providing a unified entry point to discover and interact with all supported AI music generation models on the ShortAPI platform. - Includes clear, step-by-step instructions for fetching per-model integration parameters and constructing valid API requests. - Guides users to always retrieve each model’s specific schema before request construction—no parameter guessing allowed. - Documents supported model IDs (starting with Suno V5) and demonstrates usage through concrete cURL and JSON payload examples. - Emphasizes best practices for agents, including required polling, proactive notifications on job completion, and inline audio player rendering in chat for immediate result preview.
元数据
Slug shortapi-ai-music-generation
版本 1.0.3
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Al Music Generation 是什么?

Use this skill as an entry point to discover, select, and fetch specific integration parameters for all supported AI music generation models. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 300 次。

如何安装 Al Music Generation?

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

Al Music Generation 是免费的吗?

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

Al Music Generation 支持哪些平台?

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

谁开发了 Al Music Generation?

由 ShortAPl(@isdyh01)开发并维护,当前版本 v1.0.3。

💬 留言讨论