MusicGPT icon

MusicGPT

Interact with MusicGPT API for audio processing and voice management

Advanced Generation → Inpaint

AI-generated

Summary

Replace a selected time region in an audio track using MusicGPT’s inpainting endpoint. Provide the audio by URL or from an incoming binary property, set the start and end times in seconds, and optionally describe the replacement and provide a webhook URL for completion callbacks.

Inputs

  • Audio Source (required) — Choose URL (default) or Binary Property. For URL, provide the required Audio URL. For Binary Property, enter the name of an incoming binary property, usually data.
  • Start Time — Start of the region to replace, in seconds; defaults to 0.
  • End Time — End of the region to replace, in seconds; defaults to 0.
  • Prompt — Optional description of what should fill the selected region; defaults to an empty string.
  • Webhook URL — Optional callback URL for when processing is complete.

Output shape

A single item per input audio item, containing a JSON object with success, task_id, conversion_id_1, conversion_id_2, and eta.

The operation submits an asynchronous inpainting request and returns the response fields shown; it does not return the processed audio file directly.

Examples

Example 1: Replace the section between 12 and 18 seconds with a smoother transition

Audio Source: URL or binary property; Start Time: 12; End Time: 18; Prompt: Replace with a smooth transition

Links

Discussion