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
- Generated files are retained for 15 days
- Model version of extended music must be consistent with the source music
- Callback process is the same as the audio generation endpoint
Request
Responses
- 200
- 500
Request successful
Server error
Callbacks
- POST audioExtend
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
- 200
Callback received successfully