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

# Suno Create Model API 文档

> 使用 6–24 段公开可访问的参考音频，训练一个可复用的自定义音乐模型。创建成功后，在音乐生成类接口中将 mv 设为 chirp-custom:{model_id} 即可按该模型风格出歌。

<Info>
  **Create Model 为异步任务接口。**

  提交请求后不会立刻返回 `model_id`，你可以通过以下方式获取结果：

  * 设置 **hookUrl**，任务完成后系统会向该地址发送 **回调通知**
  * 或调用 **[Fetch V2](/api/cn/suno/suno_fetch_v2)** 主动查询任务状态和结果

  如果使用 **hookUrl**，请确保该地址为公网可访问地址，否则可能无法接收回调通知。
</Info>

<Warning>
  自定义模型为**非公开资源**，并绑定到训练时使用的底层账号：

  * 绑定账号额度耗尽或下线后，模型会立即失效
  * 创建成功后请尽快完成后续生成。可用时长通常不超过 **2 天**，且可能提前失效，不保证用满 2 天
  * `persona_id` 与 `chirp-custom` 不能同时使用
  * `mv` 必须带完整 UUID，例如 `chirp-custom:a1b2c3d4-e5f6-7890-abcd-ef1234567890`，只传 `chirp-custom` 无效

  请尽量提供风格、人声、编曲方向一致的完整歌曲或片段：

  * 格式建议：**MP3 / WAV / M4A**
  * URL 必须是**公网可直接下载**的文件地址，不能带防盗链、登录墙，也不能返回 HTML / JSON 错误页
  * 任意一条音频无法下载或不是有效音频文件，整单失败

  典型耗时为数分钟，最长约 **20 分钟**。超时任务会失败，`message` 为 `job timeout`。
</Warning>

<Tip>
  创建成功后，在生成类接口中把 `mv` 设为 `chirp-custom:{model_id}` 即可按该模型风格出歌。

  * **支持：** [音乐生成](/api/cn/suno/suno_music)、延长、翻唱、添加人声 / 伴奏 / 音轨、替换片段、混音、灵感生成、样本扩展
  * **不支持：** 母带优化、分轨、歌词生成、MIDI 导出
</Tip>


## OpenAPI

````yaml openapi/cn/suno.json POST /suno/v1/create-model
openapi: 3.1.0
info:
  title: TTAPI API DOCS
  version: 1.0.0
  description: Suno 音乐生成相关接口
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /suno/v1/create-model:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - type: object
                  properties:
                    audio_urls:
                      type: array
                      minItems: 6
                      maxItems: 24
                      items:
                        type: string
                      description: >-
                        参考音频的公网直链。数量必须在 **6–24** 之间。每条 URL 必须可直接下载，不能是需要登录或返回
                        HTML 的页面。建议格式：MP3 / WAV / M4A。
                    name:
                      type: string
                      description: 模型名称，不能为空。
                  required:
                    - audio_urls
                    - name
                - $ref: '#/components/schemas/HookUrlParams'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    HookUrlParams:
      type: object
      properties:
        hookUrl:
          type: string
          description: 回调通知地址
  responses:
    SuccessResponse:
      description: 请求成功
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: SUCCESS
              message:
                type: string
                example: success
              data:
                type: object
                example:
                  jobId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            required:
              - status
              - message
              - data
    400Response:
      description: 参数错误
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: 授权失败
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        请前往 <a href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台</a>
        获取 API 密钥。

````