audio_id), generation can proceed; lyrics (formerly used via prompt), title, and style are optionalaudio_id, modellyrics is optional and takes priority over prompt as lyrics. If lyrics is omitted, prompt is used as lyrics when providedstyle and title are optionalcontinue_at specifies the position in the original track where the extension should beginprompt 3000 characters, style 200 characters, title 80 charactersprompt 5000 characters, style 1000 characters, title 100 charactersprompt 5000 characters, style 1000 characters, title 80 charactersprompt 5000 characters, style 1000 characters, title 100 characterslyrics / prompt 5000 characters, style 1000 characters, title 100 characterscurl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "ai-music-api/extend",
"callBackUrl": "https://api.example.com/callback",
"input": {
"audio_id": "e231****-****-****-****-****8cadc7dc",
"prompt": "Extend the music with more relaxing notes and a gentle bridge section",
"model": "V4",
"style": "Classical",
"title": "Peaceful Piano Extended",
"continue_at": 60,
"negative_tags": "Heavy Metal, Upbeat Drums",
"vocal_gender": "m",
"style_weight": 0.65,
"weirdness_constraint": 0.65,
"audio_weight": 0.65,
"persona_id": "persona_123",
"persona_model": "style_persona",
"lyrics": "[Verse]\nKeep the melody flowing\nInto a gentle bridge\n[Chorus]\nLet the piano rise and fall",
"variety": 1
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}