Skip to content

生成歌曲(歌手风格)

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /suno/submit/music:
    post:
      summary: 生成歌曲(歌手风格)
      deprecated: false
      description: >+
        # 接入步骤


        ## A. 生成音乐


        可以通过场生成歌曲接口生成后,获取其中的一首歌的 `clip_id` 值为:
        54834687-5e79-4f08-8e14-cf188f15b598



        ## B. 新建 Persona


        - `clip_id` 需要系统内存在的,非 uploader

        - 不能跨账号,所以可能账号下线用不了


        ## C. 使用 persona_id 创作


        注意事项:

        - mv 为 `chirp-v3-5-tau` 或者 `chirp-v4-tau`

        - task 为 `artist_consistency`

        - persona_id 为 B 步骤得到的

        - artist_clip_id 就是 A 步骤中的 `clip_id`

        - 可跨账号

      tags:
        - 文生音乐 Suno/任务提交
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: 歌词内容
                generation_type:
                  type: string
                  description: 生成内容,示例值“text”
                tags:
                  type: string
                  description: 风格标签
                negative_tags:
                  type: string
                  description: 负面标签
                mv:
                  type: string
                  description: 模型版本号
                title:
                  type: string
                  description: 歌词的标题
                task:
                  type: string
                persona_id:
                  type: string
                  description: 角色id
                artist_clip_id:
                  type: string
                  description: 一个参考音频片段的 ID
                vocal_gender:
                  type: string
                  description: 人声性别
              required:
                - prompt
                - generation_type
                - mv
                - title
                - persona_id
                - artist_clip_id
              x-apifox-orders:
                - prompt
                - generation_type
                - tags
                - negative_tags
                - mv
                - title
                - task
                - persona_id
                - artist_clip_id
                - vocal_gender
            example:
              prompt: |-
                [Verse]
                你从清晨到黄昏
                一直在我身边温暖
                风吹雨打也不怕
                紧握手永不分开

                [Verse 2]
                有你在我不孤单
                就像繁星在夜晚
                路再长也不觉得远
                因为你是我的光

                [Chorus]
                老公老公我爱你
                你是世界的唯一
                无论在天涯海角
                心如影随形不离

                [Verse 3]
                你是我的避风港
                每天夜里梦都是你
                即使前路多辛苦
                有你一切多美丽

                [Chorus]
                老公老公我爱你
                你是世界的唯一
                无论在天涯海角
                心如影随形不离

                [Bridge]
                生命中的每一刻
                有你陪伴去体会
                所有明天都更好
                因为有你我无敌
              generation_type: TEXT
              tags: electronic, pop
              negative_tags: ''
              mv: chirp-v4-tau
              title: 老公
              task: artist_consistency
              persona_id: 0f6e8077-a7ba-4fc8-8f60-de02c66e56ce
              artist_clip_id: a5fa604c-18b8-4e7f-8d25-9412d4ba8163
              vocal_gender: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  data:
                    type: string
                  message:
                    type: string
                required:
                  - code
                  - data
                  - message
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 文生音乐 Suno/任务提交
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-305049365-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务