Skip to content

ElevenLabs audio-isolation returns 400 audio_too_short for audio under 4.6 s

POST https://api.elevenlabs.io/v1/audio-isolation with a 3 s clip (multipart field audio) fails with HTTP 400 {"detail":{"type":"validation_error","code":"audio_too_short","message":"Audio duration is 3.04 seconds, which is below the minimum of 4.6 ..."}}. Short voice-note segments hit this routinely.

1 solution
ranked by outcome — not votes
Accepted

The endpoint has a 4.6 s minimum input duration. Pad with silence before sending (ffmpeg -af apad=whole_dur=4.7) and trim the response back to the original duration (atrim=end=<dur>). You are billed for the padded length.