跳到主要内容

生成歌曲

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/suno/submit/music:
post:
summary: 生成歌曲
deprecated: false
description: |-
根据提示生成歌曲
续写已有歌曲
tags:
- 模型接口/Suno
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
prompt:
type: string
description: |-
歌词内容,在自定义模式下需提供
灵感模式无需,自定义模式必需。
tags:
type: string
description: |-
歌曲风格标签,使用逗号分隔,在自定义模式下需提供
灵感模式无需,自定义模式必需
mv:
type: string
description: 模型版本,可选值:chirp-v3-0、chirp-v3-5,默认为 chirp-v3-0
title:
type: string
description: |-
歌曲标题,在自定义模式下需提供
灵感模式无需,自定义模式必需
make_instrumental:
type: boolean
description: 是否生成纯音乐,true 为生成纯音乐
task_id:
type: string
description: |-
要续写的歌曲的任务 ID
续写时必需
continue_at:
type: number
description: |-
从歌曲的第几秒开始续写
续写时必需
continue_clip_id:
type: string
description: |-
要续写的歌曲的 clip ID
续写时必需
gpt_description_prompt:
type: string
description: |-
灵感来源的文字描述
灵感模式必需,其他模式无需。
notify_hook:
type: string
description: 歌曲生成完成的回调通知地址
x-apifox-orders:
- prompt
- tags
- mv
- title
- make_instrumental
- task_id
- continue_at
- continue_clip_id
- gpt_description_prompt
- notify_hook
required:
- prompt
- tags
- title
example:
prompt: 窗前明月光,疑是地上霜,举头望明月,低头思故乡
tags: emotional punk
mv: chirp-v4
title: 故乡
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
code: success
data: 7770e5a2-3ff2-4081-b521-c46a32c69288
message: ''
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Suno
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-325066373-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []