生成歌曲(灵感模式)
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/suno/submit/music:
post:
summary: 生成歌曲(灵感模式)
deprecated: false
description: ''
tags:
- 文生音乐 Suno/任务提交
parameters:
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
prompt:
description: 歌词内容,仅用于自定义模式
type: string
mv:
description: 模型选择,可选 chirp-v3-0、chirp-v3-5,默认为 chirp-v3-0
type: string
title:
description: 歌曲标题,仅用于自定义模式
type: string
tags:
description: 风格标签,仅用于自定义模式,多个标签用半角逗号分隔
type: string
make_instrumental:
description: 是否生成纯音乐版本,true 表示生成纯音乐
type: boolean
task_id:
description: 任务ID,用于对已有任务进行操作(如续写)
type: string
continue_at:
description: 续写起始时间点,浮点数,单位为秒
type: number
continue_clip_id:
description: 需要续写的歌曲ID
type: string
gpt_description_prompt:
description: 创作描述提示词,仅用于灵感模式
type: string
notify_hook:
description: 任务完成后的回调通知地址
type: string
required:
- prompt
- mv
- gpt_description_prompt
x-apifox-orders:
- prompt
- mv
- title
- tags
- make_instrumental
- task_id
- continue_at
- continue_clip_id
- gpt_description_prompt
- notify_hook
example:
gpt_description_prompt: 一首动听的情歌
make_instrumental: false
mv: chirp-v4
prompt: Cat Dance
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
code:
type: string
data:
type: string
message:
type: string
required:
- code
- data
- message
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 文生音乐 Suno/任务提交
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-248983692-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []