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

# Lyric Writing

> Write lyrics from a theme. Returns two drafts.

> [!TIP]
>
> You can also submit through the unified task endpoint `POST /v1/task/submit` with `model` set to `suno/lyrics` and the parameters inside `input`. Both behave and bill the same.

> [accordion] Task result
>
> What the fetch result holds once the task succeeds
>
> When the task succeeds, `data.lyrics` holds two lyric drafts. Pick one and pass it as `prompt` when generating a song.
>
> ```json theme={null}
> {
>   "code": "success",
>   "data": {
>     "task_id": "5adac6ee-...",
>     "action": "lyrics",
>     "model": "suno/lyrics",
>     "status": "SUCCESS",
>     "progress": "100%",
>     "lyrics": [
>       {
>         "title": "Tin Roof Rain",
>         "text": "[Verse 1]\n...",
>         "tags": "lo-fi, mellow"
>       },
>       {
>         "title": "...",
>         "text": "...",
>         "tags": "..."
>       }
>     ]
>   }
> }
> ```
>
> **title** `string`
>
> Suggested title.
>
> **text** `string` *required*
>
> Lyrics, with section markers such as \[Verse] and \[Chorus].
>
> **tags** `string`
>
> Suggested style tags.


## OpenAPI

````yaml en/openapi/suno.json POST /suno/v2/lyrics
openapi: 3.1.0
info:
  title: Suno API
  version: 1.0.0
  description: Suno
servers:
  - url: https://api.ephone.ai
security:
  - bearerAuth: []
paths:
  /suno/v2/lyrics:
    post:
      summary: Lyric Writing
      description: Write lyrics from a theme. Returns two drafts.
      operationId: suno_lyrics
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: >-
                    **Lyrics**: Full lyrics, up to 5000 characters. Use markers
                    like [Verse] and [Chorus] to shape the structure.
                lyrics_model:
                  type: string
                  enum:
                    - classic
                    - remi
                  default: classic
                  description: >-
                    **Lyric Style**: Which lyric writing approach to use.
                    Options: `classic` Classic; `remi` Remi.
                notify_hook:
                  type: string
                  format: uri
                  description: >-
                    **Notify hook**: when the task ends, the same content as the
                    fetch result is POSTed to this URL (a public http / https
                    URL). Omit it to poll instead.
              required:
                - prompt
            example:
              prompt: |-
                [Verse 1]
                Rain on the tin roof
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
              example:
                code: success
                message: success
                data:
                  task_id: 5adac6ee-...
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error
                message: music_id is required
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Invalid Token
                  type: rix_api_error
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
              example:
                error:
                  message: Too many requests, please try again later
                  type: rix_api_error
components:
  schemas:
    SubmitResponse:
      type: object
      properties:
        code:
          type: string
          enum:
            - success
        message:
          type: string
        data:
          type: object
          properties:
            task_id:
              type: string
              description: Task ID.
          required:
            - task_id
      required:
        - code
        - data
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    GatewayError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send your API key in the `Authorization: Bearer YOUR_API_KEY` header.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.