edit_audio
Modify existing audio via variation, inpainting a time range, or continuation/extension to create new candidates, returning one WAV path per result.
Instructions
Edit existing audio with Stable Audio 3: variation (audio-to-audio), inpainting a time range, or continuation/extension. Returns one WAV path per candidate.
Official tip: surrounding context outweighs the prompt — inpaint a large region first and shrink it, and keep prompts plausible for the context.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | ||
| cfg | No | ||
| mode | Yes | variation = audio-to-audio remix/style or timbre transfer of the whole clip; inpaint = regenerate only [start,end] and keep the rest; continue = extend the clip to duration_seconds, regenerating from just before the end of its audible content (see overlap_seconds) | |
| seed | No | Base seed for reproducibility; omit or -1 for random. | |
| steps | No | ||
| title | No | Short name; used as the file name and stored in metadata. Auto-named if omitted. | |
| prompt | No | What the result (or the regenerated region) should sound like. May be empty for continue. | |
| strength | No | variation only: init noise level. ~0.4 keeps melody/rhythm (timbre transfer), ~0.6 style transfer, 0.8+ loose. | |
| audio_type | No | Same prefixes as generate_audio. | music |
| variations | No | Number of candidates (different seeds). | |
| end_seconds | No | inpaint only: region end. | |
| input_audio | Yes | Absolute path to an existing audio file (wav/mp3/flac/ogg). | |
| original_idea | No | The user's original request, verbatim and in their language. Stored in metadata only. | |
| start_seconds | No | inpaint only: region start. | |
| negative_prompt | No | Only used when cfg != 1. | |
| overlap_seconds | No | continue only: start regenerating this many seconds before the end of the audible content, so a trailing fade or silence is replaced and the join is smooth. | |
| peak_ceiling_db | No | Safety ceiling in dBFS: a louder peak is turned down to this, quieter audio is untouched. null disables. | |
| duration_seconds | No | Output length. variation/inpaint default = input length; continue = required total length (> input length). |