Skip to main content
POST

授权

Authorization
string
header
必填

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

请求体

application/json
model
enum<string>
必填

固定传 suno_music

可用选项:
suno_music
示例:

"suno_music"

prompt
string
必填

提示词描述模式下为音乐风格、情绪和场景;歌词高级模式下可作为歌词兼容字段。

upstream_model
string

生成引擎选择值;默认 suno-v5.5,显式传 suno-v5 可保留旧版。

示例:

"suno-v5.5"

music_model
string

upstream_model 的兼容别名。

engine
string

upstream_model 的兼容别名。

model_id

model_id 的 camelCase 兼容字段。

modelId

model_id 的 camelCase 兼容字段。

gpt_description_prompt
string

描述模式提示词兼容字段。

extraParams
object

MiniMax Speech 2.8 HD 的语音参数;是 extraParams 的 snake_case 兼容字段。

extra_params
object

MiniMax Speech 2.8 HD 的语音参数;是 extraParams 的 snake_case 兼容字段。

voice
string

MiniMax Speech 2.8 HD 音色,可覆盖 extraParams.voice

output_format
string

MiniMax Speech 2.8 HD 输出格式。

outputFormat
string

output_format 的 camelCase 兼容字段。

sample_rate
integer

MiniMax Speech 2.8 HD 采样率。

sampleRate
integer

sample_rate 的 camelCase 兼容字段。

speed
number

语速,默认 1。

volume
number

音量,默认 1。

pitch
number

音调,默认 0。

make_instrumental
boolean
默认值:false

是否生成纯伴奏。

light_music
boolean

是否按轻音乐/背景音乐方向生成。

pure_music
boolean

是否按纯音乐方向生成。

custom_mode
boolean

是否使用自定义模式。

customMode
boolean

custom_mode 的 camelCase 兼容字段。

title
string

歌曲标题。

tags
string

风格标签,例如 electro pop, female vocal

style
string

风格兼容字段。

genre
string

曲风兼容字段。

genres
string

曲风兼容字段。

lyrics
string

歌词内容。

lyric
string

lyrics 兼容别名。

custom_lyrics
string

lyrics 兼容别名。

customLyrics
string

lyrics 兼容别名。

响应

200 - application/json

OK

code
string

成功时为 success

示例:

"success"

message
string

错误或提示信息。

data
object

任务 ID,用于后续查询。