IMA AI Music Generator — Suno, DouBao
/install ima-voice-ai
IMA Voice AI — Music Generator
For complete API documentation, security details, all parameters, and Python examples, read SKILL-DETAIL.md.
Model ID Reference (CRITICAL)
Use exact model_id from this table. Do NOT infer from friendly names.
| Friendly Name | model_id | Notes |
|---|---|---|
| Suno | sonic |
✅ Default, full songs with vocals |
| DouBao BGM | GenBGM |
⚠️ Instrumental only, background music |
| DouBao Song | GenSong |
⚠️ Songs with vocals |
User input aliases: BGM/背景音乐/纯音乐 → GenBGM · 歌曲/人声/Song → sonic or GenSong · 默认 → sonic
Music Generation Mode
| User intent | model_id | When to use |
|---|---|---|
| Background music, instrumental | GenBGM |
"做一段BGM" / "纯音乐" / "背景音乐" |
| Song with vocals | sonic |
"写首歌" / "带人声" / "歌曲" |
| Song (alternative) | GenSong |
"豆包歌曲" / "GenSong" |
Model Selection Priority
- User preference (if explicitly stated) → highest priority
- Fallback default:
sonic(Suno)
| Task | Default Model | model_id | Notes |
|---|---|---|---|
| General music | Suno | sonic |
Full songs, vocals |
| Instrumental/BGM | DouBao BGM | GenBGM |
No vocals |
| Chinese songs | DouBao Song | GenSong |
Alternative to Suno |
Script Usage
# Generate music (default: sonic/Suno)
python3 {baseDir}/scripts/ima_voice_create.py \
--model-id sonic \
--prompt "upbeat lo-fi hip hop, 90 BPM, no vocals" \
--output-json
# List available models
python3 {baseDir}/scripts/ima_voice_create.py --list-models
# Generate BGM
python3 {baseDir}/scripts/ima_voice_create.py \
--model-id GenBGM \
--prompt "calm piano background music for meditation" \
--output-json
Sending Results to User
# ✅ CORRECT: Use remote URL directly for inline audio display
message(action="send", media=audio_url, caption="✅ 音乐生成成功!\
• 模型:[Name]\
• 耗时:[X]s\
• 积分:[N pts]\
\
🔗 原始链接:[url]")
# ❌ WRONG: Never download to local file
UX Protocol (Brief)
- Pre-generation: "🎵 开始生成音乐… 模型:[Name],预计[X~Y]秒,消耗[N]积分"
- Progress: Every 30-60s: "⏳ 正在生成中… [P]%" (cap at 95%)
- Success: Send audio via
media=audio_url+ include link in caption - Failure: Natural language error + suggest alternative models. See SKILL-DETAIL.md for error translation.
Never say to users: script names, API endpoints, attribute_id, technical parameter names. Only: model name · time · credits · result · status.
Environment
Base URL: https://api.imastudio.com
Headers: Authorization: Bearer $IMA_API_KEY · x-app-source: ima_skills · x_app_language: en
Core Flow
GET /open/v1/product/list?app=ima&platform=web&category=text_to_music→ getattribute_id,credit,model_versionPOST /open/v1/tasks/create→ gettask_idPOST /open/v1/tasks/detail→ poll every 5s untilresource_status==1
MANDATORY: Always query product list first. attribute_id is required.
Defaults and Timeouts
- Task type:
text_to_music(fixed) - Poll interval: 5 seconds
- Max poll wait: 8 minutes
- Default model:
sonic(if--model-idomitted)
Estimated Generation Time
| Model | Estimated Time | Poll Every |
|---|---|---|
| Suno (sonic) | 60~180s | 5s |
| DouBao BGM (GenBGM) | 30~90s | 5s |
| DouBao Song (GenSong) | 60~120s | 5s |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ima-voice-ai - 安装完成后,直接呼叫该 Skill 的名称或使用
/ima-voice-ai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
IMA AI Music Generator — Suno, DouBao 是什么?
Generate voiceovers, narration, and spoken audio for videos, explainers, ads, and social content. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 657 次。
如何安装 IMA AI Music Generator — Suno, DouBao?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ima-voice-ai」即可一键安装,无需额外配置。
IMA AI Music Generator — Suno, DouBao 是免费的吗?
是的,IMA AI Music Generator — Suno, DouBao 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
IMA AI Music Generator — Suno, DouBao 支持哪些平台?
IMA AI Music Generator — Suno, DouBao 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 IMA AI Music Generator — Suno, DouBao?
由 allenfancy-gan(@allenfancy-gan)开发并维护,当前版本 v1.0.14。