mirelo_inpaint_audio_with_video_generate
Replace a bounded segment of audio with AI-generated audio conditioned by a video. Provide audio and video sources, define the time range, and optionally add a prompt.
Instructions
Synchronously replace a bounded segment of an audio clip with newly generated audio conditioned by a video (Inpaint_Audio, with-video). Requires audio and video Input_Sources and a segment. Returns the resulting audio URL(s). Model v1.6 only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | Yes | The audio Input_Source to inpaint: either { type: "url", audio_url } or { type: "asset", asset_id }. | |
| video | Yes | The conditioning video Input_Source: either { type: "url", video_url } or { type: "asset", asset_id }. | |
| prompt | No | Optional text prompt guiding the replacement audio. | |
| segment | Yes | The bounded audio span to replace. | |
| num_samples | No | Number of samples to generate; integer >= 1. Defaults to 1. | |
| model_version | No | Model version. Inpaint_Audio is v1.6-only; defaults to "v1.6". |