v1

latestOpenAPI 3.1.02026-07-2627084.1 KB

Inpaint an Audio Segment

This endpoint allows users to replace a specific time segment of an audio clip using a textual prompt and optional lyrics. The inpainting operation blends new audio content into the selected range, guided by user-defined style and voice preferences.

To use the inpaint feature, upload a song and specify the lyrics you want to replace in the field 'lyrics_section_to_replace'. For best results, also provide the complete song lyrics in the lyrics.

post/v1/inpaint

Response

Successfully initiated inpaint task

successboolean
messagestring
task_idstring
conversion_id_1string
conversion_id_2string
etainteger

Estimated processing time in seconds

credit_estimatenumber float

Example response

{
  "success": true,
  "message": "Inpaint request submitted successfully",
  "task_id": "task-xyz-123",
  "conversion_id_1": "inpaint-abc",
  "conversion_id_2": "inpaint-def",
  "eta": 40,
  "credit_estimate": 45
}