falAudio to audioComing soon

fal-ai/sam-audio/span-separate

fal-ai/sam-audio/span-separate is an audio to audio tool from fal that runs in the background and returns audio. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Price pending

Pricing

Price pending.

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 process.
prompttext—Text prompt describing the sound to isolate. Optional but recommended - helps the model identify what type of sound to extract from the span.
spans requiredJSON—Time spans where the target sound occurs which should be isolated.
reranking_candidatesnumber (whole)
1 to 7
1Number of candidates to generate and rank. Higher improves quality but increases latency and cost. Requires text prompt; ignored for span-only separation.
accelerationone of
fast, balanced, quality
balancedThe acceleration level to use.
max_chunk_durationnumber
10 to 60
60Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended.
chunk_overlapnumber
0 to 30
5Overlap duration (in seconds) between chunks for crossfade blending.
use_sound_activity_rankingtrue or falsefalseUse sound activity detection to rank reranking candidates based on how well each candidate's non-silent regions match the provided spans. Enables effective reranking even without a text prompt (span-only separation). Requires reranking_candidates > 1.
trim_to_spantrue or falsefalseTrim output audio to only include the specified span time range. If False, returns the full audio length with the target sound isolated throughout.
output_formatone of
wav, mp3
wavOutput audio format.

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/sam-audio/span-separate",
    "input": {
      "audio_url": "https://v3b.fal.media/files/b/0a8853d1/T7zRmsiculA6u_V6RCF2c_man.mp3",
      "spans": {}
    }
  }'