Extend a previously generated or uploaded clip from a specific timestamp. The new content is appended starting at starts_at and runs for length seconds.Auto-refund: if the upstream extension fails, the 12-credit charge is automatically refunded.
This operation replaced the legacy Producer extend endpoint in 2026-04. The old starts (number) and lyrics_text parameters are still accepted but you should prefer starts_at, lyrics, and the new instruction / length fields.
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
{"task_type":"extend_music","clip_id":"abc123xyz789","starts_at":45,"instruction":"Add soaring violin strings and an uplifting orchestral build with increasing intensity. Conclude with a triumphant final chord.","length":30}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location--request POST 'https://api.musicapi.ai/api/v1/producer/create' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"task_type": "extend_music",
"clip_id": "abc123xyz789",
"starts_at": 45,
"instruction": "Add soaring violin strings and an uplifting orchestral build with increasing intensity. Conclude with a triumphant final chord.",
"length": 30
}'
Responses
🟢200
application/json
Task accepted. Poll GET /api/v1/producer/task/{task_id} for the result.