# Get Lyrics Generation Details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/lyrics/record-info:
    get:
      summary: Get Lyrics Generation Details
      deprecated: false
      description: >
        Retrieve detailed information about a lyrics generation task, including
        status, parameters, and results.


        ### Status Descriptions

        - PENDING: Task is waiting to be processed

        - SUCCESS: Lyrics generated successfully

        - CREATE_TASK_FAILED: Failed to create the task

        - GENERATE_LYRICS_FAILED: Failed to generate lyrics

        - CALLBACK_EXCEPTION: Error occurred during callback

        - SENSITIVE_WORD_ERROR: Content contains prohibited words


        ### Developer Notes

        - Use this endpoint to check task status instead of waiting for
        callbacks

        - This returns all generated lyrics variations from a single task

        - Each lyrics variation includes a title and complete lyrics text
      operationId: get-lyrics-generation-details
      tags:
        - docs/en/Suno API/Generate Lyrics
      parameters:
        - name: taskId
          in: query
          description: >-
            The task ID returned from the Generate Lyrics endpoint. Used to
            retrieve detailed information about a specific lyrics generation
            task.
          required: true
          example: 11dc****8b0f
          schema:
            type: string
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      code:
                        type: integer
                        description: >-
                          # Status Codes


                          - ✅ 200 - Request successful

                          - ⚠️ 400 - Invalid parameters

                          - ⚠️ 401 - Unauthorized access

                          - ⚠️ 404 - Invalid request method or path

                          - ⚠️ 405 - Rate limit exceeded

                          - ⚠️ 413 - Theme or prompt too long

                          - ⚠️ 429 - Insufficient credits

                          - ⚠️ 430 - Your call frequency is too high. Please try
                          again later.

                          - ⚠️ 455 - System maintenance

                          - ❌ 500 - Server error
                        enum:
                          - 200
                          - 400
                          - 401
                          - 404
                          - 405
                          - 413
                          - 429
                          - 430
                          - 455
                          - 500
                        examples:
                          - 200
                      msg:
                        type: string
                        description: Error message when code != 200
                        examples:
                          - success
                    x-apidog-orders:
                      - code
                      - msg
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          taskId:
                            type: string
                            description: Task ID
                          param:
                            type: string
                            description: Parameter information for task generation
                          response:
                            type: object
                            properties:
                              taskId:
                                type: string
                                description: Task ID
                              data:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    text:
                                      type: string
                                      description: Lyrics content
                                    title:
                                      type: string
                                      description: Lyrics title
                                    status:
                                      type: string
                                      description: Generation status
                                      enum:
                                        - complete
                                        - failed
                                    errorMessage:
                                      type: string
                                      description: >-
                                        Error message, valid when status is
                                        failed
                                  x-apidog-orders:
                                    - text
                                    - title
                                    - status
                                    - errorMessage
                            x-apidog-orders:
                              - taskId
                              - data
                          status:
                            type: string
                            description: Task status
                            enum:
                              - PENDING
                              - SUCCESS
                              - CREATE_TASK_FAILED
                              - GENERATE_LYRICS_FAILED
                              - CALLBACK_EXCEPTION
                              - SENSITIVE_WORD_ERROR
                          type:
                            type: string
                            description: Task type
                            examples:
                              - LYRICS
                          errorCode:
                            type: number
                            description: Error code, valid when task fails
                          errorMessage:
                            type: string
                            description: Error message, valid when task fails
                        x-apidog-orders:
                          - taskId
                          - param
                          - response
                          - status
                          - type
                          - errorCode
                          - errorMessage
                    x-apidog-orders:
                      - data
          headers: {}
          x-apidog-name: Success
        '500':
          description: Server error
          headers: {}
          x-apidog-name: Server Error
      security: []
      x-apidog-folder: docs/en/Suno API/Generate Lyrics
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1412907/apis/api-46842276-run
components:
  schemas: {}
  securitySchemes:
    BearerAuth:
      type: bearer
      scheme: bearer
      bearerFormat: API Key
      description: >-
        # 🔑 API Authentication


        All endpoints require authentication using Bearer Token.


        ## Get API Key


        1. Visit the [API Key Management Page](https://sunoapi.org/api-key) to
        obtain your API Key


        ## Usage


        Add to request headers:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        > **⚠️ Note:**

        > - Keep your API Key secure and do not share it with others

        > - If you suspect your API Key has been compromised, reset it
        immediately from the management page
servers:
  - url: https://apibox.erweima.ai
    description: 正式环境
security: []

```
