Skip to main content
POST
歌词生成

授权

Authorization
string
header
必填

HTTP: Bearer Auth

  • Security Scheme Type: http
  • HTTP Authorization Scheme: Bearer API_key,用于验证账户信息,可在 账户管理>接口密钥 中查看。

请求头

Content-Type
enum<string>
默认值:application/json
必填

请求体的媒介类型,请设置为 application/json,确保请求数据的格式为 JSON

可用选项:
application/json

请求体

application/json
mode
enum<string>
必填

生成模式。
write_full_song:写完整歌曲
edit:编辑/续写歌词

可用选项:
write_full_song,
edit
prompt
string

提示词/指令,用于描述歌曲主题、风格或编辑方向。为空时随机生成。

Maximum string length: 2000
lyrics
string

现有歌词内容,仅在 edit 模式下有效。可用于续写或修改已有歌词。

Maximum string length: 3500
title
string

歌曲标题。传入后输出将保持该标题不变。

响应

200 - application/json

成功响应

song_title
string

生成的歌名。若请求传入 title 则保持一致。

style_tags
string

风格标签,逗号分隔。例如:Pop, Upbeat, Female Vocals

lyrics
string

生成的歌词,包含结构标签。可直接用于音乐生成接口lyrics 参数生成歌曲。
支持的结构标签(14种):[Intro], [Verse], [Pre-Chorus], [Chorus], [Hook], [Drop], [Bridge], [Solo], [Build-up], [Instrumental], [Breakdown], [Break], [Interlude], [Outro]

base_resp
object

状态码及详情