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

# 创建音乐或声音生成任务

> 音乐与声音生成提交接口，兼容旧 `/suno/submit/music` 路径。返回任务 ID，后续通过 `/suno/fetch/{task_id}` 查询。

音乐与声音生成任务提交接口。通过 `upstream_model` 传子模型名称。创建接口返回 `task_id`，随后用 `/suno/fetch/{task_id}` 查询输出。

未传 `upstream_model`（或只传 `{"model":"suno_music"}`）时，默认使用 Suno v5.5。需要继续使用旧版 Suno 时，请显式传 `"upstream_model":"suno-v5"`。

SeedMusic 使用同一提交和查询路径。传 `model: "suno_music"`、`upstream_model: "sd-music-1.0-preview"`、`prompt` 和可选整数 `duration`（30～360 秒，默认 30 秒）。提示词为 1～4000 个字符，成功后从片段的 `audio_url` 读取音频。

```json
{
  "model": "suno_music",
  "upstream_model": "sd-music-1.0-preview",
  "prompt": "安静的钢琴曲，伴有轻柔的雨声",
  "duration": 60
}
```

## 可用子模型

| 类型 | `upstream_model` |
| --- | --- |
| 音乐 | `suno-v6` |
| 文本生成音乐 | `sd-music-1.0-preview` |
| 音乐 | `suno-v5.5` |
| 音乐 | `suno-v5` |
| 音乐 | `lyria-3-pro` |
| 声音 | `seed-audio-1.0` |
| 声音 | `minimax-speech-2.8-hd` |

## 提示词描述模式

适合只描述风格、情绪、语言、歌手类型和场景，由模型自动生成歌曲内容。

```json
{
  "model": "suno_music",
  "upstream_model": "suno-v6",
  "prompt": "Create an energetic retro-pop DJ song about the artificial intelligence revolution.",
  "make_instrumental": false
}
```

## 声音生成

MiniMax Speech 可通过 `extraParams` 设置语音参数。

```json
{
  "model": "suno_music",
  "upstream_model": "minimax-speech-2.8-hd",
  "prompt": "欢迎使用新版语音生成服务。",
  "extraParams": {
    "voice": "moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85",
    "outputFormat": "mp3",
    "sampleRate": 32000,
    "speed": 1,
    "volume": 1,
    "pitch": 0
  }
}
```

MiniMax Speech 未传语音参数时，服务端默认发送上例中的 `voice`、`outputFormat=mp3`、`sampleRate=32000`、`speed=1`、`volume=1` 和 `pitch=0`。

Lyria 3 Pro 使用 `upstream_model=lyria-3-pro`：

```json
{
  "model": "suno_music",
  "upstream_model": "lyria-3-pro",
  "prompt": "Cinematic orchestral music with a hopeful finale."
}
```

## 轻音乐或纯伴奏

可使用 `light_music=true` 或 `make_instrumental=true`。`light_music` 表示偏轻音乐/背景音乐，`make_instrumental` 表示不生成演唱人声。

```json
{
  "model": "suno_music",
  "upstream_model": "minimax-music-v2.6",
  "prompt": "Warm cafe background music with soft piano and strings, relaxing and cinematic.",
  "light_music": true,
  "make_instrumental": true
}
```

## 歌词高级模式

适合业务侧已经准备好歌词，需要指定标题和风格标签。传 `custom_mode=true`，并使用 `lyrics` 提交歌词。

```json
{
  "model": "suno_music",
  "upstream_model": "mureka-v9",
  "custom_mode": true,
  "title": "Summer Sea Breeze",
  "tags": "electro pop, female vocal, bright summer",
  "lyrics": "[Verse]\nSea breeze moves across the white sand\n[Chorus]\nTurn the summer into a beam of light"
}
```

## 查询

创建成功后保存返回的 `data` 任务 ID，例如 `task_xxx`，调用 `GET /suno/fetch/{task_id}` 查询状态、音频地址、封面、标题、歌词和上游返回的原始片段信息。



## OpenAPI

````yaml api-reference/cn/openapi.json POST /suno/submit/music
openapi: 3.0.0
info:
  title: NewAPIs API 参考文档
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI格式(Chat)
  - name: OpenAI格式(Responses)
  - name: 图片生成Gemini格式
  - name: 图片生成OpenAI DALL-E格式
  - name: 获取模型列表
  - name: 视频生成HappyHorse与Wan
  - name: 视频生成Kling格式
  - name: 视频生成Omni与Veo格式
  - name: 视频生成Seedance格式
  - name: 视频生成Sora兼容格式
  - name: 视频生成Vidu格式
  - name: 音乐生成任务格式
paths:
  /suno/submit/music:
    post:
      tags:
        - 音乐生成任务格式
      summary: 创建音乐或声音生成任务
      description: >-
        音乐与声音生成提交接口，兼容旧 `/suno/submit/music` 路径。返回任务 ID，后续通过
        `/suno/fetch/{task_id}` 查询。


        音乐与声音生成任务提交接口。通过 `upstream_model` 传子模型名称。创建接口返回 `task_id`，随后用
        `/suno/fetch/{task_id}` 查询输出。


        未传 `upstream_model`（或只传 `{"model":"suno_music"}`）时，默认使用 Suno
        v5.5。需要继续使用旧版 Suno 时，请显式传 `"upstream_model":"suno-v5"`。


        SeedMusic 使用同一提交和查询路径。传 `model: "suno_music"`、`upstream_model:
        "sd-music-1.0-preview"`、`prompt` 和可选整数 `duration`（30～360 秒，默认 30 秒）。提示词为
        1～4000 个字符，成功后从片段的 `audio_url` 读取音频。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "sd-music-1.0-preview",
          "prompt": "安静的钢琴曲，伴有轻柔的雨声",
          "duration": 60
        }

        ```


        ## 可用子模型


        | 类型 | `upstream_model` |

        | --- | --- |

        | 音乐 | `suno-v6` |

        | 文本生成音乐 | `sd-music-1.0-preview` |

        | 音乐 | `suno-v5.5` |

        | 音乐 | `suno-v5` |

        | 音乐 | `lyria-3-pro` |

        | 声音 | `seed-audio-1.0` |

        | 声音 | `minimax-speech-2.8-hd` |


        ## 提示词描述模式


        适合只描述风格、情绪、语言、歌手类型和场景，由模型自动生成歌曲内容。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "suno-v6",
          "prompt": "Create an energetic retro-pop DJ song about the artificial intelligence revolution.",
          "make_instrumental": false
        }

        ```


        ## 声音生成


        MiniMax Speech 可通过 `extraParams` 设置语音参数。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "minimax-speech-2.8-hd",
          "prompt": "欢迎使用新版语音生成服务。",
          "extraParams": {
            "voice": "moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85",
            "outputFormat": "mp3",
            "sampleRate": 32000,
            "speed": 1,
            "volume": 1,
            "pitch": 0
          }
        }

        ```


        MiniMax Speech 未传语音参数时，服务端默认发送上例中的
        `voice`、`outputFormat=mp3`、`sampleRate=32000`、`speed=1`、`volume=1` 和
        `pitch=0`。


        Lyria 3 Pro 使用 `upstream_model=lyria-3-pro`：


        ```json

        {
          "model": "suno_music",
          "upstream_model": "lyria-3-pro",
          "prompt": "Cinematic orchestral music with a hopeful finale."
        }

        ```


        ## 轻音乐或纯伴奏


        可使用 `light_music=true` 或 `make_instrumental=true`。`light_music`
        表示偏轻音乐/背景音乐，`make_instrumental` 表示不生成演唱人声。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "minimax-music-v2.6",
          "prompt": "Warm cafe background music with soft piano and strings, relaxing and cinematic.",
          "light_music": true,
          "make_instrumental": true
        }

        ```


        ## 歌词高级模式


        适合业务侧已经准备好歌词，需要指定标题和风格标签。传 `custom_mode=true`，并使用 `lyrics` 提交歌词。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "mureka-v9",
          "custom_mode": true,
          "title": "Summer Sea Breeze",
          "tags": "electro pop, female vocal, bright summer",
          "lyrics": "[Verse]\nSea breeze moves across the white sand\n[Chorus]\nTurn the summer into a beam of light"
        }

        ```


        ## 查询


        创建成功后保存返回的 `data` 任务 ID，例如 `task_xxx`，调用 `GET /suno/fetch/{task_id}`
        查询状态、音频地址、封面、标题、歌词和上游返回的原始片段信息。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  example: suno_music
                  description: 固定传 `suno_music`。
                  enum:
                    - suno_music
                upstream_model:
                  type: string
                  example: suno-v6
                  description: >-
                    可传 `sd-music-1.0-preview`、`suno-v6` 或 `suno-v5.5`，默认
                    `suno-v5.5`。
                prompt:
                  type: string
                  description: 音乐或声音的描述提示词。SeedMusic 支持 1～4000 个字符。
                duration:
                  type: integer
                  minimum: 30
                  maximum: 360
                  description: SeedMusic 单首时长为 30～360 秒，默认 30 秒。
                extraParams:
                  type: object
                  description: >-
                    MiniMax Speech 2.8 HD 的
                    `voice`、`outputFormat`、`sampleRate`、`speed`、`volume`、`pitch`
                    参数。
                  properties:
                    voice:
                      type: string
                      default: moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85
                    outputFormat:
                      type: string
                      default: mp3
                    sampleRate:
                      type: integer
                      default: 32000
                    speed:
                      type: number
                      default: 1
                    volume:
                      type: number
                      default: 1
                    pitch:
                      type: number
                      default: 0
                  additionalProperties: true
                make_instrumental:
                  type: boolean
                  default: false
                  description: 是否生成纯伴奏。
                light_music:
                  type: boolean
                  description: 是否按轻音乐/背景音乐方向生成。
                pure_music:
                  type: boolean
                  description: 是否按纯音乐方向生成。
                custom_mode:
                  type: boolean
                  description: 是否使用自定义模式。
                title:
                  type: string
                  description: 歌曲标题。
                tags:
                  type: string
                  description: 风格标签，例如 `electro pop, female vocal`。
                lyrics:
                  type: string
                  description: 歌词内容。
            examples:
              seedmusic_single_track:
                summary: SeedMusic 单首音乐
                value:
                  model: suno_music
                  upstream_model: sd-music-1.0-preview
                  duration: 60
                  prompt: A quiet piano piece with gentle rain.
              music_submit_suno_v6:
                summary: Suno v6 音乐生成
                value:
                  model: suno_music
                  upstream_model: suno-v6
                  prompt: >-
                    Create an energetic retro-pop DJ song about the artificial
                    intelligence revolution.
                  make_instrumental: false
              music_submit_prompt:
                summary: Suno v5.5 音乐生成
                value:
                  model: suno_music
                  upstream_model: suno-v5.5
                  prompt: >-
                    Imitating "Billie Jean," create a DJ song with the theme of
                    "the artificial intelligence revolution."
                  make_instrumental: false
              music_submit_lyria:
                summary: Lyria 3 Pro 音乐生成
                value:
                  model: suno_music
                  upstream_model: lyria-3-pro
                  prompt: Cinematic orchestral music with a hopeful finale.
              audio_submit_seed:
                summary: Seed Audio 1.0 声音生成
                value:
                  model: suno_music
                  upstream_model: seed-audio-1.0
                  prompt: 清晨海边的浪声与远处海鸥声。
              audio_submit_minimax_speech:
                summary: MiniMax Speech 2.8 HD
                value:
                  model: suno_music
                  upstream_model: minimax-speech-2.8-hd
                  prompt: 欢迎使用新版语音生成服务。
                  extraParams:
                    voice: moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85
                    outputFormat: mp3
                    sampleRate: 32000
                    speed: 1
                    volume: 1
                    pitch: 0
              music_submit_light:
                summary: 轻音乐生成
                value:
                  model: suno_music
                  upstream_model: minimax-music-v2.6
                  prompt: >-
                    Warm cafe background music with soft piano and strings,
                    relaxing and cinematic.
                  light_music: true
                  make_instrumental: true
              music_submit_lyrics:
                summary: 歌词高级模式
                value:
                  model: suno_music
                  upstream_model: mureka-v9
                  custom_mode: true
                  title: Summer Sea Breeze
                  tags: electro pop, female vocal, bright summer
                  lyrics: |-
                    [Verse]
                    Sea breeze moves across the white sand
                    [Chorus]
                    Turn the summer into a beam of light
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: success
                    description: 成功时为 `success`。
                  message:
                    type: string
                    description: 错误或提示信息。
                  data:
                    type: object
                    description: 任务 ID，用于后续查询。
              examples:
                music_submit_success:
                  summary: 音乐生成提交成功
                  value:
                    code: success
                    message: ''
                    data: task_xxx
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        使用 Bearer Token 认证。
        格式: `Authorization: Bearer sk-xxxxxx`

````

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