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

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

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

音乐与声音生成任务提交接口。路径保持 `/suno/submit/music`，实际可通过 `upstream_model`、`music_model`、`engine`、`model_id` 或 `modelId` 选择生成引擎。创建接口返回 `task_id`，随后用 `/suno/fetch/{task_id}` 查询输出。

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

## 新增模型

| 类型 | `upstream_model` / 别名 | `modelId` |
| --- | --- | ---: |
| 音乐 | `suno-v5.5` / `chirp-fenix` | 128 |
| 声音 | `seed-audio-1.0` | 126 |
| 声音 | `minimax-speech-2.8-hd` / `speech-2.8-hd` | 127 |
| 音乐 | `lyria-3-pro` / `lyria-3-pro-preview` | 129 |

## 提示词描述模式

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

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

## 声音生成

MiniMax Speech 可通过 `extraParams`（或顶层同名 snake_case/camelCase 字段）覆盖语音参数。

```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`（或 `lyria-3-pro-preview`）：

```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`、`lyric`、`custom_lyrics` 或 `customLyrics`。

```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: 出海营 API 参考文档
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.aiid.edu.kg
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}` 查询。


        音乐与声音生成任务提交接口。路径保持 `/suno/submit/music`，实际可通过
        `upstream_model`、`music_model`、`engine`、`model_id` 或 `modelId`
        选择生成引擎。创建接口返回 `task_id`，随后用 `/suno/fetch/{task_id}` 查询输出。


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


        ## 新增模型


        | 类型 | `upstream_model` / 别名 | `modelId` |

        | --- | --- | ---: |

        | 音乐 | `suno-v5.5` / `chirp-fenix` | 128 |

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

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

        | 音乐 | `lyria-3-pro` / `lyria-3-pro-preview` | 129 |


        ## 提示词描述模式


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


        ```json

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

        ```


        ## 声音生成


        MiniMax Speech 可通过 `extraParams`（或顶层同名 snake_case/camelCase 字段）覆盖语音参数。


        ```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`（或 `lyria-3-pro-preview`）：


        ```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`、`lyric`、`custom_lyrics` 或 `customLyrics`。


        ```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-v5.5
                  description: 生成引擎选择值；默认 `suno-v5.5`，显式传 `suno-v5` 可保留旧版。
                music_model:
                  type: string
                  description: '`upstream_model` 的兼容别名。'
                engine:
                  type: string
                  description: '`upstream_model` 的兼容别名。'
                model_id:
                  oneOf:
                    - type: string
                    - type: integer
                  description: '`model_id` 的 camelCase 兼容字段。'
                modelId:
                  oneOf:
                    - type: string
                    - type: integer
                  description: '`model_id` 的 camelCase 兼容字段。'
                prompt:
                  type: string
                  description: 提示词描述模式下为音乐风格、情绪和场景；歌词高级模式下可作为歌词兼容字段。
                gpt_description_prompt:
                  type: string
                  description: 描述模式提示词兼容字段。
                extraParams:
                  type: object
                  description: >-
                    MiniMax Speech 2.8 HD 的语音参数；是 `extraParams` 的 snake_case
                    兼容字段。
                  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
                extra_params:
                  type: object
                  description: >-
                    MiniMax Speech 2.8 HD 的语音参数；是 `extraParams` 的 snake_case
                    兼容字段。
                  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
                voice:
                  type: string
                  description: MiniMax Speech 2.8 HD 音色，可覆盖 `extraParams.voice`。
                output_format:
                  type: string
                  description: MiniMax Speech 2.8 HD 输出格式。
                outputFormat:
                  type: string
                  description: '`output_format` 的 camelCase 兼容字段。'
                sample_rate:
                  type: integer
                  description: MiniMax Speech 2.8 HD 采样率。
                sampleRate:
                  type: integer
                  description: '`sample_rate` 的 camelCase 兼容字段。'
                speed:
                  type: number
                  description: 语速，默认 1。
                volume:
                  type: number
                  description: 音量，默认 1。
                pitch:
                  type: number
                  description: 音调，默认 0。
                make_instrumental:
                  type: boolean
                  default: false
                  description: 是否生成纯伴奏。
                light_music:
                  type: boolean
                  description: 是否按轻音乐/背景音乐方向生成。
                pure_music:
                  type: boolean
                  description: 是否按纯音乐方向生成。
                custom_mode:
                  type: boolean
                  description: 是否使用自定义模式。
                customMode:
                  type: boolean
                  description: '`custom_mode` 的 camelCase 兼容字段。'
                title:
                  type: string
                  description: 歌曲标题。
                tags:
                  type: string
                  description: 风格标签，例如 `electro pop, female vocal`。
                style:
                  type: string
                  description: 风格兼容字段。
                genre:
                  type: string
                  description: 曲风兼容字段。
                genres:
                  type: string
                  description: 曲风兼容字段。
                lyrics:
                  type: string
                  description: 歌词内容。
                lyric:
                  type: string
                  description: '`lyrics` 兼容别名。'
                custom_lyrics:
                  type: string
                  description: '`lyrics` 兼容别名。'
                customLyrics:
                  type: string
                  description: '`lyrics` 兼容别名。'
            examples:
              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`

````