Lyrics Generation
Suno lyrics generation endpoint (submit a lyrics generation task)
The Suno lyrics generation endpoint. Generate complete lyrics from a theme, mood or other prompt via POST /suno/submit/LYRICS. Use it before music generation, then feed the produced lyrics back as the prompt of the custom lyrics mode in Music Generation.
The interface is async: on success it returns a task_id (prefixed with task_); poll the Query Result endpoint with that ID until status becomes SUCCESS to fetch the lyrics text.
Billing model
This endpoint is billed per submitted action under the model name suno_lyrics, deducted from your account balance. Add the model on the channel first.
Authorization
BearerAuth
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
令牌需开通对应模型的调用权限。
In: header
Request Body
application/json
歌词主题 / 描述提示词
歌词模型
"classic""classic" | "remi"任务完成回调地址
Response Body
application/json
application/json
curl -X POST "https://www.omwai.xyz/suno/submit/LYRICS" \ -H "Content-Type: application/json" \ -d '{ "prompt": "写一首关于夏夜海边城市的中文流行歌曲" }'{
"code": "success",
"message": "success",
"data": "task_01J8ABCDEFGHIJKLMNOPQRST"
}{
"code": "invalid_request",
"message": "string"
}Async flow
POST /suno/submit/LYRICSsubmits and returnscode=successwithdata(task_id, prefixed withtask_);- Poll
GET /suno/fetch/{task_id}with thattask_id; - When
status=SUCCESS,datacontains the generated lyrics.
How is this guide?
Last updated on