falVideo to audioAvailable now
fal-ai/sam-audio/visual-separate
fal-ai/sam-audio/visual-separate is a video to audio tool from fal that runs in the background and returns audio. Pay as you go from $0.0325 per 30 seconds, with one API key.
Try itfrom $0.0325 / 30 seconds
Pricing
$0.13 per 30 seconds of audio across its two output tracks, minimum 30 seconds. Each extra reranking_candidates adds $0.065 per 30 seconds. 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
| Field | Kind | Default | Description |
|---|---|---|---|
video_url required | URL or file | — | URL of the video file to process (MP4, MOV, etc.) |
mask_video_url | URL or file | — | URL of the mask video (binary mask indicating target object). Black=target, White=background. |
prompt | text | Text prompt to assist with separation. Use natural language to describe the target sound. | |
reranking_candidates | number (whole) 1 to 4 | 1 | Number of candidates to generate and rank. Higher improves quality but increases latency and cost. |
acceleration | one of fast, balanced, quality | balanced | The acceleration level to use. |
max_chunk_duration | number 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_overlap | number 0 to 30 | 5 | Overlap duration (in seconds) between chunks for crossfade blending. |
output_format | one 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/visual-separate",
"input": {
"video_url": "https://v3b.fal.media/files/b/0a8850d1/gff7zKI-6XwIbBBip4946_office.mp4"
}
}'