falAudioComing soon

fal-ai/sam-audio/span-separate

fal-ai/sam-audio/span-separate is an 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.

Pricing

Coming soon

Price pending

Limits

Runs
In the background
Returns
audio
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
255 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
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
1

Number 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
balanced

The acceleration level to use.

max_chunk_durationnumber
10 to 60
60

Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended.

chunk_overlapnumber
0 to 30
5

Overlap duration (in seconds) between chunks for crossfade blending.

use_sound_activity_rankingtrue or falsefalse

Use 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 falsefalse

Trim 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
wav

Output 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": {}
    }
  }'