Extend audio (sync)
Extend an existing audio clip at the end. Pass the audio prefix and the desired total output duration. Credits are charged only for the generated extension portion (total_duration − input_duration). The prefix must be at least 3 seconds long; duration_ms must exceed the prefix by at least 1s. Maximum new audio is 57 seconds. With loop: true the prefix is never shortened, so prefix + new audio must stay within 60 seconds and the extension must be at least 1s — appending the maximum then requires a prefix at the 3s minimum.
Request
- Base URL: https://api.mirelo.ai
- URL: https://api.mirelo.ai/v2/extend-audio/v1.6/sync
- Auth: HTTP bearer
Headers
Stable key for one logical sync request, for retrying after an ambiguous response such as a transport timeout. Reuse it only with the identical body. While the original request is in progress, after it completed, or with a different body, the retry returns 409 idempotency_conflict instead of starting another billable request. A failed attempt may run again with the same key. A completed request's key is remembered for 24 to 48 hours after the original request completes, depending on when the daily sweep runs. A 409 retry does not extend this window; reusing the key after it is forgotten starts and bills a new request.
Request body
Example request
{
"prompt": "heavy rain continues to intensify",
"seed": 42,
"output_format": "mp3"
}Response
Extended audio URLs
Changes
No recorded changes to this operation across all 1 revision of this API.