KIE.AI
English
  • English
  • Chinese
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. Music Generation
  • Suno API Quickstart
  • Music Generation
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Audio Upload and Cover Callbacks
    • Audio Upload and Extension Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental to Music
      POST
    • Add Vocals to Music
      POST
    • Get Music Task Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Create Suno Cover Task
      POST
    • Get Cover Generation Details
      GET
    • Replace Music Section
      POST
    • Generate Persona
      POST
  • Lyrics Generation
    • Lyrics Generation Callbacks
    • Generate Lyrics
      POST
    • Get Lyrics Task Details
      GET
  • WAV Conversion
    • Convert to WAV Callbacks
    • Convert to WAV Format
      POST
    • Get WAV Conversion Details
      GET
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Separate Vocals from Music
    • Get Vocal Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. Music Generation

Generate Persona

POST
/api/v1/generate/generate-persona
Create a personalized music Persona based on generated music, giving the music a unique identity and characteristics.

Usage Guide#

Use this endpoint to create Personas (music characters) for generated music:
Requires the taskId from music generation related endpoints (generate, extend, cover, upload-extend) and audio ID
Customize the Persona name and description to give music unique personality
Generated Personas can be used for subsequent music creation and style transfer

Parameter Details#

taskId (Required): Can be obtained from the following endpoints:
Generate Music (/api/v1/generate)
Extend Music (/api/v1/generate/extend)
Upload And Cover Audio (/api/v1/generate/upload-cover)
Upload And Extend Audio (/api/v1/generate/upload-extend)
audioId (Required): Specifies the audio ID to create Persona for
name (Required): Assigns an easily recognizable name to the Persona
description (Required): Describes the Persona's musical characteristics, style, and personality

Developer Notes#

Important Requirements
Ensure the music generation task is fully completed before calling this endpoint. If the music is still generating, this endpoint will return a failure.
Model Requirement: Persona generation only supports taskId from music generated with models above v3.5 (v3.5 itself is not supported).
Each audio ID can only generate a Persona once.
It is recommended to provide detailed descriptions for Personas to better capture musical characteristics.
The returned personaId can be used in subsequent music generation requests to create music with similar style characteristics.
You can apply the personaId to the following endpoints:
Generate Music
Extend Music
Upload And Cover Audio
Upload And Extend Audio

Parameter Example#

{
  "taskId": "5c79****be8e",
  "audioId": "e231****-****-****-****-****8cadc7dc",
  "name": "Electronic Pop Singer",
  "description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones"
}
NOTE
Ensure that the music generation task corresponding to the taskId is complete and the audioId is within the valid range.
TIP
Providing detailed and specific descriptions for Personas helps the system more accurately capture musical style characteristics.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Request successful
Body

🔴500Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.kie.ai/api/v1/generate/generate-persona' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "taskId": "5c79****be8e",
    "audioId": "e231****-****-****-****-****8cadc7dc",
    "name": "Electronic Pop Singer",
    "description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones"
}'
Response Response Example
200 - Example 1
{
    "code": 200,
    "msg": "success",
    "data": {
        "personaId": "a1b2****c3d4",
        "name": "Electronic Pop Singer",
        "description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones"
    }
}
Previous
Replace Music Section
Next
Lyrics Generation Callbacks
Built with