> ## 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.

# 音效

> 生成 one-shot / loop 音效。

**路径：** `POST https://api.omniall.ai/suno/v2/sounds`

计费模型：`suno/sounds`。返回公开 `task_xxxx`，用 fetch 接口轮询。

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



## OpenAPI

````yaml zh-CN/openapi/suno-v2.yaml POST /suno/v2/sounds
openapi: 3.1.0
info:
  title: Omniall AI — Suno V2
  version: 1.0.0
  description: >-
    Suno V2 异步音乐 API（`/suno/v2/*`）。


    流程：提交 → 返回 `data.task_id` → `GET /suno/v2/fetch/{task_id}` 或 `POST
    /suno/v2/fetch` 轮询至 `SUCCESS`。


    **模型版本 `mv`：** `chirp-v6`（默认）· `chirp-v6-wild` · `chirp-v6-mini`。


    **计费：** 按次，模型名与路径一致（如 `suno/music`）。开启 `max_mode`（且
    `custom=true`）时部分生成类接口价格翻倍。详见[模型广场](https://omniall.ai/pricing)。


    与旧版 `/suno/submit/*`（`suno_music` / `suno_lyrics`）相互独立。


    鉴权：`Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /suno/v2/sounds:
    post:
      tags:
        - Suno V2
      summary: 音效
      description: |-
        生成 one-shot / loop 音效。

        **路径：** `POST https://api.omniall.ai/suno/v2/sounds`

        计费模型：`suno/sounds`。返回公开 `task_xxxx`，用 fetch 接口轮询。

        鉴权：`Authorization: Bearer sk-...`
      operationId: sunoV2Sounds
      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
              properties:
                mv:
                  type: string
                  enum:
                    - chirp-v6
                    - chirp-v6-wild
                    - chirp-v6-mini
                  default: chirp-v6
                  description: 模型版本。三个版本价格相同，按需要的风格选择。
                  example: chirp-v6
                sound:
                  type: string
                  description: 音效描述。描述想要的音效，例如「一声轻柔的雨滴」。
                type:
                  type: string
                  enum:
                    - one-shot
                    - loop
                  default: one-shot
                  description: 音效类型。单次触发的音效，还是可以无缝循环的音效。
                  example: one-shot
                bpm:
                  type: string
                  description: 节拍。每分钟拍数，1 到 300 之间。
                key:
                  type: string
                  enum:
                    - C
                    - C#
                    - Cm
                    - C#m
                    - D
                    - D#
                    - Dm
                    - D#m
                    - F
                    - F#
                    - Fm
                    - F#m
                    - G
                    - G#
                    - Gm
                    - G#m
                    - A
                    - A#
                    - Am
                    - A#m
                    - B
                    - B#
                    - Bm
                    - B#m
                  description: 调性。音效所在的调。
                  example: C
                audio_format:
                  type: string
                  enum:
                    - mp3
                    - m4a
                    - wav
                  description: 输出格式。成品音频的格式，不填默认 mp3。
                  example: mp3
              required:
                - sound
            example:
              mv: chirp-v6
              sound: 玻璃碎裂后回响
              type: one-shot
      responses:
        '200':
          description: 任务已受理
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SunoV2SubmitResponse'
              example:
                code: success
                message: success
                data:
                  task_id: task_xxxxxxxx
components:
  schemas:
    SunoV2SubmitResponse:
      type: object
      properties:
        code:
          type: string
          example: success
        message:
          type: string
          example: success
        data:
          type: object
          properties:
            task_id:
              type: string
              description: 公开任务 ID（`task_xxxx`）。
              example: task_xxxxxxxx

````

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