> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rixapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 翻唱改编

> 保留旋律骨架，换一种风格重新演绎。

> [!TIP]
>
> 也可以用统一任务接口 `POST /v1/task/submit` 提交：`model` 填 `suno/cover`，参数放进 `input`。两种写法效果与计费完全一样。

> [accordion] 任务结果
>
> 任务成功后，查询结果里产物的格式
>
> 任务成功后，`data.musics` 里是产出的曲目，一次 2 条。部分成功时按实际成功的条数计费。
>
> ```json theme={null}
> {
>   "code": "success",
>   "data": {
>     "task_id": "5adac6ee-...",
>     "action": "cover",
>     "model": "suno/cover",
>     "status": "SUCCESS",
>     "progress": "100%",
>     "submit_time": 1757800000000,
>     "finish_time": 1757800120000,
>     "musics": [
>       {
>         "music_id": "89b20862-...",
>         "title": "Rain on Tin Roof",
>         "tags": "lo-fi piano",
>         "audio_url": "https://...",
>         "image_url": "https://...",
>         "duration": 187.56
>       }
>     ]
>   }
> }
> ```
>
> **music\_id** `string` *required*
>
> 曲目 ID。续写、翻唱、分轨、导出等后续操作都填它。
>
> **title** `string`
>
> 标题。
>
> **tags** `string`
>
> 风格标签。
>
> **lyrics** `string`
>
> 歌词，纯伴奏没有这个字段。
>
> **audio\_url** `string`
>
> 音频地址，可直接下载。
>
> **image\_url** `string`
>
> 封面图地址。
>
> **image\_large\_url** `string`
>
> 大尺寸封面图地址。
>
> **video\_url** `string`
>
> 视频地址，没有视频时不返回。
>
> **duration** `number`
>
> 时长，单位秒。


## OpenAPI

````yaml cn/openapi/suno.json POST /suno/v2/cover
openapi: 3.1.0
info:
  title: Suno API
  version: 1.0.0
  description: Suno 接口
servers:
  - url: https://api.ephone.ai
security:
  - bearerAuth: []
paths:
  /suno/v2/cover:
    post:
      summary: 翻唱改编
      description: 保留旋律骨架，换一种风格重新演绎。
      operationId: suno_cover
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                mv:
                  type: string
                  enum:
                    - chirp-v6
                    - chirp-v6-wild
                    - chirp-v6-mini
                  default: chirp-v6
                  description: >-
                    **模型版本**：三个版本价格相同，按需要的风格选择。可选值：`chirp-v6`
                    v6（默认，均衡）；`chirp-v6-wild` v6 Wild（风格更奔放）；`chirp-v6-mini` v6
                    Mini（更快）。
                custom:
                  type: boolean
                  default: false
                  description: '**自定义模式**：关闭时你只需用一句话描述想要什么；开启时由你提供完整歌词。'
                gpt_description_prompt:
                  type: string
                  description: '**灵感描述**：一句话描述想要的歌，例如「轻柔的 lo-fi 钢琴，雨夜」。关闭自定义模式时必填，最长 3000 字。'
                music_id:
                  type: string
                  description: '**源曲目**：要处理的曲目，填之前生成结果里的 music_id。'
                prompt:
                  type: string
                  description: '**歌词**：完整歌词，最长 5000 字。可以用 [Verse]、[Chorus] 这类标记划分段落。'
                title:
                  type: string
                  description: '**标题**：曲目标题，最长 80 字。'
                tags:
                  type: string
                  description: '**风格标签**：想要的曲风，例如「lo-fi 钢琴, 舒缓, 雨声」，最长 1000 字。'
                negative_tags:
                  type: string
                  description: '**排除风格**：不希望出现的曲风，用来避开某些方向。'
                style_weight:
                  type: number
                  description: '**风格贴合度**：0 到 1。越高越贴近你写的风格标签，越低留给模型的发挥空间越大。'
                weirdness_constraint:
                  type: number
                  description: '**创意发散度**：0 到 1。越高越出人意料，越低越接近常规写法。'
                audio_weight:
                  type: number
                  description: '**参考音频权重**：0 到 1。调节参考音频对成品的影响程度。'
                duration:
                  type: integer
                  description: '**时长**：成品时长，单位秒，10 到 360 之间。'
                vocal_gender:
                  type: string
                  enum:
                    - Male
                    - Female
                  description: '**人声性别**：指定演唱者的嗓音性别。可选值：`Male` 男声；`Female` 女声。'
                persona_id:
                  type: string
                  description: '**指定音色**：用之前创建好的音色来演唱，填音色 ID。仅自定义模式有效。'
                model_id:
                  type: string
                  description: '**自建模型**：用自建模型来生成，填创建模型结果里的 model_id。不能与 persona_id 同时使用。'
                variety:
                  type: string
                  enum:
                    - 'off'
                    - normal
                    - high
                    - extra
                    - max
                  description: >-
                    **风格发散度**：控制成品与指定风格的偏离程度，从完全贴合到大胆发挥。可选值：`off` 完全贴合；`normal`
                    均衡；`high` 较为多变；`extra` 大胆发挥；`max` 最大发散。
                max_mode:
                  type: boolean
                  default: false
                  description: '**最高质量模式**：投入更多算力让整首歌前后更连贯。仅自定义模式有效，开启后价格翻倍。'
                audio_format:
                  type: string
                  enum:
                    - mp3
                    - m4a
                    - wav
                  description: >-
                    **输出格式**：成品音频的格式，不填默认 mp3。可选值：`mp3` MP3（通用）；`m4a` M4A；`wav`
                    WAV（无损）。
                notify_hook:
                  type: string
                  format: uri
                  description: >-
                    **推送地址**：任务结束后，把和查询结果相同的内容 POST 到这个地址（公网可以访问的 http / https
                    地址）。不传就自己查询。
              required:
                - music_id
            example:
              mv: chirp-v6
              custom: false
              music_id: 曲目 ID
              gpt_description_prompt: 轻柔的 lo-fi 钢琴，雨落在铁皮屋顶上
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
              example:
                code: success
                message: success
                data:
                  task_id: 5adac6ee-...
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error
                message: music_id is required
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Invalid Token
                  type: rix_api_error
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Too many requests, please try again later
                  type: rix_api_error
components:
  schemas:
    SubmitResponse:
      type: object
      properties:
        code:
          type: string
          enum:
            - success
        message:
          type: string
        data:
          type: object
          properties:
            task_id:
              type: string
              description: 任务 ID。
          required:
            - task_id
      required:
        - code
        - data
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    GatewayError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '在请求头 `Authorization: Bearer YOUR_API_KEY` 里带上 API Key。'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.