Spiral gives your agent every tool with one account. Browse the tools →

falAudioAvailable now

Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base

fal-ai/stable-audio-3/medium/base/audio-inpainting

Edit and transform audio with Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base from fal through one Spiral API key. It runs in the background and returns audio. Pay as you go, with no subscription.

Pricing

$0.06981 per run at the default inputs.

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
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
negative_prompttext

Text description of qualities to avoid in the output.

num_inference_stepsnumber (whole)
1 to 100
50

Number of sampling steps. Base (non-distilled) checkpoints typically need ~50 for good quality.

guidance_scalenumber
0 to 25
7

Classifier-free guidance scale. Higher values follow the prompt more strictly; ~7.0 is a good starting point for base checkpoints.

seednumber (whole)—

Random seed for reproducible outputs. Omit for a random seed.

enable_prompt_expansiontrue or falsefalse

If True, the prompt will be expanded using an LLM for more detailed and higher quality results.

output_formatone of
mp3, wav, flac, ogg, opus, m4a, aac
mp3

Container format for the generated audio output.

bitratetext192k

Audio bitrate for compressed output formats (e.g., mp3, aac, opus). Format e.g. '192k' or '320k'. Ignored for lossless formats (wav, flac).

prompt requiredtext—

Text description guiding how the masked region is regenerated.

audio_url requiredURL or file—

Source audio. Only the masked region is regenerated.

mask_start_seconds requirednumber
0 to 380
—

Start of the region to regenerate, in seconds.

mask_end_seconds requirednumber
0 to 380
—

End of the region to regenerate, in seconds.

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/stable-audio-3/medium/base/audio-inpainting",
    "input": {
      "prompt": "punchy kick drum fill",
      "audio_url": "https://storage.googleapis.com/falserverless/model_tests/diffrythm/rock_en.wav",
      "mask_start_seconds": 4,
      "mask_end_seconds": 8
    }
  }'

Frequently asked questions

How much does Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base cost?

$0.06981 per run at the default inputs. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base through an API?

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/stable-audio-3/medium/base/audio-inpainting"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with fal to use Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base?

No. Spiral runs it on its own fal account and charges your Spiral balance.

Can my AI agent use Stable Audio 3 Medium Base Audio Inpainting · Audio Inpainting Medium Base?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.