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

# MiniMax Lyrics

MiniMax AI歌词生成模型，支持根据提示词生成完整歌词或编辑续写已有歌词，生成的歌词含结构标签可直接用于音乐生成

## 请求头

<ParamField header="Content-Type" type="string" required={true}>
  枚举值: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="mode" type="string" required={true}>
  生成模式。write\_full\_song：写完整歌曲；edit：编辑/续写歌词

  可选值：`write_full_song`, `edit`
</ParamField>

<ParamField body="title" type="string">
  歌曲标题。传入后输出将保持该标题不变
</ParamField>

<ParamField body="lyrics" type="string">
  现有歌词内容，仅在edit模式下有效。可用于续写或修改已有歌词

  长度限制：0 - 3500
</ParamField>

<ParamField body="prompt" type="string">
  提示词/指令，用于描述歌曲主题、风格或编辑方向。为空时随机生成

  长度限制：0 - 2000
</ParamField>

## 响应

<ResponseField name="lyrics" type="string">
  生成的歌词，包含结构标签，可直接用于音乐生成API
</ResponseField>

<ResponseField name="song_title" type="string">
  生成的歌名
</ResponseField>

<ResponseField name="style_tags" type="string">
  风格标签，逗号分隔
</ResponseField>
