OmwAIOmwAI
API GuideAPI ReferenceProgramming Tools
Suno

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.

POST
/suno/submit/LYRICS

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx 令牌需开通对应模型的调用权限。

In: header

Request Body

application/json

prompt*string

歌词主题 / 描述提示词

lyrics_model?string

歌词模型

Default"classic"
Value in"classic" | "remi"
hookUrl?string

任务完成回调地址

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

  1. POST /suno/submit/LYRICS submits and returns code=success with data (task_id, prefixed with task_);
  2. Poll GET /suno/fetch/{task_id} with that task_id;
  3. When status=SUCCESS, data contains the generated lyrics.

How is this guide?

Last updated on