POST /v2/replace-sectionAll modelsNew: Replace Section regenerates one part of a song
POST /v2/replace-section regenerates a time window of a song you created with /v2/generate or /v2/extend and returns the full song with that part re-rendered.
What changed
- The window must be at least 10 seconds, at most 50% of the song and 480 seconds, and end before the song ends. Invalid windows are rejected before any credits are charged.
- About 10 seconds on each side of the window are re-rendered as well so the new part blends in; the rest of the song stays the same.
- When lyrics is omitted, the lyrics sung inside the window are filled in automatically.
- Results whose length differs from the original by more than 15 seconds are discarded. If none remain, the task is FAILED and refunded.
- 5 credits per request; rejected requests and failed tasks are refunded automatically.
Integration impact
No changes are needed for existing integrations. Send origin_task_id, audio_id, infill_start_s, infill_end_s and prompt to start using it.