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

# 生成音乐

> 创建 Suno 音乐任务。

**路径：** `POST https://api.omniall.ai/suno/submit/music`

返回公开 `task_xxxx`。用 `GET /suno/fetch/{task_id}` 或批量 `POST /suno/fetch` 轮询。

鉴权：`Authorization: Bearer sk-...`



## OpenAPI

````yaml zh-CN/openapi/suno-audio.yaml POST /suno/submit/music
openapi: 3.1.0
info:
  title: Omniall AI — Suno音乐
  version: 1.0.0
  description: >-
    Suno 异步音乐 / 歌词。


    **创建：** `POST https://api.omniall.ai/suno/submit/music` · `POST
    /suno/submit/lyrics`


    **查询：** `GET /suno/fetch/{task_id}` · 批量 `POST /suno/fetch`


    计费模型 ID：`suno_music`、`suno_lyrics`（以[模型广场](https://omniall.ai/pricing)为准）。


    鉴权：`Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /suno/submit/music:
    post:
      tags:
        - Suno
      summary: 生成音乐
      description: >-
        创建 Suno 音乐任务。


        **路径：** `POST https://api.omniall.ai/suno/submit/music`


        返回公开 `task_xxxx`。用 `GET /suno/fetch/{task_id}` 或批量 `POST /suno/fetch`
        轮询。


        鉴权：`Authorization: Bearer sk-...`
      operationId: sunoCreateMusic
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API Key，例如 `Bearer sk-...`。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Suno 音乐提交体（自定义歌词 / 描述模式）。
              properties:
                prompt:
                  type: string
                  description: 歌词内容（自定义模式）。
                  example: |-
                    [主歌]
                    霓虹倒映在潮湿路面
                    [副歌]
                    我们穿过整座不夜城
                tags:
                  type: string
                  description: 歌曲风格标签，如曲风 / 情绪 / 乐器。
                  example: 电影感独立流行, 氛围感, 霓虹
                title:
                  type: string
                  description: 歌曲标题。
                  example: 霓虹雨
                mv:
                  type: string
                  description: 模型版本（如 `chirp-v4`、`chirp-auk`，以上游为准）。
                  example: chirp-v4
                gpt_description_prompt:
                  type: string
                  description: 不写完整歌词时的自然语言描述（描述模式）。
                  example: 一首关于在未来城市霓虹雨中行走的轻快独立流行曲
                make_instrumental:
                  type: boolean
                  description: 是否纯伴奏（无人声）。
                  example: false
                continue_at:
                  type: number
                  description: 从该时间点（秒）继续生成。
                continue_clip_id:
                  type: string
                  description: 续写的 clip id。
                task_id:
                  type: string
                  description: 续写关联的任务 id。
            examples:
              自定义模式（歌词 + 风格）:
                summary: 自定义模式（歌词 + 风格）
                value:
                  prompt: |-
                    [主歌]
                    霓虹倒映在潮湿路面
                    [副歌]
                    我们穿过整座不夜城
                  tags: 电影感独立流行, 氛围感, 霓虹
                  title: 霓虹雨
                  mv: chirp-v4
                  make_instrumental: false
              描述模式:
                summary: 描述模式
                value:
                  gpt_description_prompt: 一首关于在未来城市霓虹雨中行走的轻快独立流行曲
                  mv: chirp-v4
                  make_instrumental: false
              纯伴奏:
                summary: 纯伴奏
                value:
                  gpt_description_prompt: 适合夜驾的电影感氛围合成器配乐
                  tags: 氛围, 电影感, 合成器浪潮
                  title: 夜驾
                  mv: chirp-v4
                  make_instrumental: true
      responses:
        '200':
          description: 任务已受理
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SunoSubmitResponse'
              example:
                code: success
                message: ''
                data: task_xxxxxxxx
components:
  schemas:
    SunoSubmitResponse:
      type: object
      properties:
        code:
          type: string
          example: success
        message:
          type: string
        data:
          type: string
          description: 公开 task id（`task_xxxx`）。
          example: task_xxxxxxxx

````

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