falAudio to audioAvailable now

fal-ai/demucs

fal-ai/demucs is an audio to audio tool from fal that runs in the background and returns audio. Pay as you go from $0.00091 per second, with one API key.

Try itfrom $0.00091 / second

Pricing

$0.00091 per second. Measured from the input file. The final charge comes from usage.

Limits

Runs
In the background
Returns
audio
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
audio_url requiredURL or file—URL of the audio file to separate into stems
modelone of
htdemucs, htdemucs_ft, htdemucs_6s, hdemucs_mmi, mdx, mdx_extra, mdx_q, mdx_extra_q
htdemucs_6sDemucs model to use for separation
stemslist["vocals","drums","bass","other","guitar","piano"]Specific stems to extract. If None, extracts all available stems. Available stems depend on model: vocals, drums, bass, other, guitar, piano (for 6s model)
segment_lengthnumber (whole)
1 to …
—Length in seconds of each segment for processing (minimum 1). Smaller values use less memory but may reduce quality. Default is model-specific.
shiftsnumber (whole)
1 to 10
1Number of random shifts for equivariant stabilization. Higher values improve quality but increase processing time.
overlapnumber
0 to 1
0.25Overlap between segments (0.0 to 1.0). Higher values may improve quality but increase processing time.
output_formatone of
wav, mp3
mp3Output audio format for the separated stems

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/demucs",
    "input": {
      "audio_url": "https://storage.googleapis.com/falserverless/model_tests/audio-understanding/Title_%20Running%20on%20Fal.mp3"
    }
  }'