Skip to main content

Create Audio Extension Generation Task

POST 

/api/v1/generate/extend

Create an extension generation task based on existing audio, capable of extending or modifying existing music.

Parameter Details

  • When defaultParamFlag is true (Custom Parameters):

    • prompt, style, and title are required
    • prompt length limit: 3000 characters
    • style length limit: 200 characters
    • title length limit: 80 characters
  • When defaultParamFlag is false (Use Default Parameters):

    • Only audioId is required
    • Other parameters will use the original audio's parameters

Important Notes

  1. Generated files are retained for 15 days
  2. Model version of extended music must be consistent with the source music
  3. Callback process is the same as the audio generation endpoint

Request

Responses

Request successful

Callbacks

POST 

{$request.body#/callBackUrl}

System will call this callback when audio generation is complete.

Callback Example

{
"code": 200,
"msg": "All generated successfully.",
"data": {
"callbackType": "complete",
"task_id": "2fac****9f72",
"data": [
{
"id": "8551****662c",
"audio_url": "https://example.cn/****.mp3",
"source_audio_url": "https://example.cn/****.mp3",
"stream_audio_url": "https://example.cn/****",
"source_stream_audio_url": "https://example.cn/****",
"image_url": "https://example.cn/****.jpeg",
"source_image_url": "https://example.cn/****.jpeg",
"prompt": "[Verse] Night city lights shining bright",
"model_name": "chirp-v3-5",
"title": "Iron Man",
"tags": "electrifying, rock",
"createTime": "2025-01-01 00:00:00",
"duration": 198.44
}
]
}
}

Callbacks Responses

Callback received successfully