Skip to main content
POST
/
suno
/
submit
/
music
全轨声曲分离
curl --request POST \
  --url https://api.deerapi.com/suno/submit/music \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task": "gen_stem",
  "task_id": "7e0000d1-511e-482e-9b13-f6f8dbb02a05",
  "generation_type": "TEXT",
  "title": "安全之弦",
  "mv": "chirp-auk",
  "make_instrumental": true,
  "continue_clip_id": "31f022a4-b95c-4988-9608-281172753cf4",
  "continued_aligned_prompt": null,
  "continue_at": null,
  "stem_type_id": 91,
  "stem_type_group_name": "Twelve",
  "stem_task": "twelve"
}
'
{
  "id": "<string>",
  "clips": [
    {
      "id": "<string>",
      "entity_type": "<string>",
      "video_url": "<string>",
      "audio_url": "<string>",
      "major_model_version": "<string>",
      "model_name": "<string>",
      "metadata": {
        "prompt": "<string>",
        "history": [
          {
            "id": "<string>",
            "type": "<string>",
            "source": "<string>",
            "infill": true,
            "stem_type_id": 123,
            "stem_type_group_name": "<string>",
            "stem_task": "<string>",
            "stem_from_id": "<string>"
          }
        ],
        "stem_from_id": "<string>",
        "stem_task": "<string>",
        "stem_type_id": 123,
        "stem_type_group_name": "<string>",
        "edited_clip_id": "<string>",
        "type": "<string>",
        "stream": true,
        "infill": true,
        "task": "<string>",
        "can_remix": true,
        "is_remix": true,
        "priority": 123
      },
      "is_liked": true,
      "user_id": "<string>",
      "display_name": "<string>",
      "handle": "<string>",
      "is_handle_updated": true,
      "avatar_image_url": "<string>",
      "is_trashed": true,
      "flag_count": 123,
      "created_at": "<string>",
      "status": "<string>",
      "title": "<string>",
      "play_count": 123,
      "upvote_count": 123,
      "is_public": true,
      "allow_comments": true,
      "more": "<string>"
    }
  ],
  "metadata": {
    "prompt": "<string>",
    "history": [
      {
        "id": "<string>",
        "type": "<string>",
        "source": "<string>",
        "infill": true,
        "stem_type_id": 123,
        "stem_type_group_name": "<string>",
        "stem_task": "<string>",
        "stem_from_id": "<string>"
      }
    ],
    "stem_from_id": "<string>",
    "stem_task": "<string>",
    "stem_type_id": 123,
    "stem_type_group_name": "<string>",
    "edited_clip_id": "<string>",
    "type": "<string>",
    "stream": true,
    "infill": true,
    "task": "<string>",
    "can_remix": true,
    "is_remix": true,
    "priority": 123
  },
  "major_model_version": "<string>",
  "status": "<string>",
  "created_at": "<string>",
  "batch_size": 123
}

🎵 音频分轨生成流程 🎵

🚀 操作步骤:

  1. step1. 通过生成音乐场景 1 2 3 任意一种生成音乐,取到 task id
  2. step2. 拿到 task id 后,根据需要获取歌曲的对应 clip_id
  3. step3. 将对应的 task idclip_id 入参, 填入该接口,得到新的 task id
  4. step4. 进行单个任务查询,查询step3得到的 task_id,得到分轨后每一轨的 clip_id 以及对应的 url

💡 关键说明:

  • 使用接口: 生成音乐 接口注意事项:**
    • mvchirp-auk
    • taskgen_stem
    • continue_clip_id 就是 A 步骤中的 clip_id
    • stem_type_group_name Twelve
    • stem_task twelve
    • 其他参数照抄
    • 可跨账号操作

💰 计费详情:

  • 计费 5 倍基础价格
  • 5 次 10 首歌的价格

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your DeerAPI key.

Body

application/json
task
string
default:example
required
task_id
string
default:example
required
generation_type
string
default:example
required
title
string
default:example
required
mv
string
default:example
required
make_instrumental
boolean
default:true
required
continue_clip_id
string
default:example
required
continued_aligned_prompt
null
required
continue_at
null
required
stem_type_id
integer
default:1
required
stem_type_group_name
string
default:example
required
stem_task
string
default:example
required

Response

200 - application/json

Successful Response

id
string
required
clips
object[]
required
metadata
object
required
major_model_version
string
required
status
string
required
created_at
string
required
batch_size
integer
required