Skip to content

Stable Audio 25

Integrate

Model id stable-audio-25/inpaint
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/stable-audio-25/inpaint?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.20 200 API credits Run it on this page

Get API key
Stability AI Audio #audio

Regenerates a masked time range inside an audio clip from a text prompt, keeping the rest of the clip

Stability AI · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Prompt that directs audio generation.

•required audio_url
Drop a file, or

Source audio clip for inpainting.

Advanced seconds_total · guidance_scale · mask_start · mask_end · num_inference_steps · seed · enable_safety_checker
default 190

Output audio length defaults to the input clip's duration. Supply a duration to override that default.

default 1

Audio-to-prompt fidelity is increased by raising this setting, which strengthens the diffusion process's adherence to the text.

default 30

Starting position of the audio mask.

default 190

Ending position of the audio mask.

default 8

Number of denoising steps applied to the audio.

POST /run/stable-audio-25/inpaint?wait=20 quote → $0.20
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/stable-audio-25/inpaint?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Stable Audio 25

Inpainting for audio: supply `audio_url` and a `prompt`, then choose the region to rewrite with `mask_start` and `mask_end`, both 0 to 190. The defaults are 30 and 190. `seconds_total` covers 1 to 190 and `guidance_scale` covers 1 to 25. `num_inference_steps` ranges from 4 to 8, and `seed` allows repeatable runs.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
Prompt that directs audio generation.
audio_urlrequired audio
Typeurl · audio
Source audio clip for inpainting.
seconds_totaloptional
Typeinteger | null
Default190
1 – 190
Output audio length defaults to the input clip's duration. Supply a duration to override that default.
guidance_scaleoptional
Typenumber
Default1
1 – 25
Audio-to-prompt fidelity is increased by raising this setting, which strengthens the diffusion process's adherence to the text.
mask_startoptional
Typeinteger
Default30
0 – 190
Starting position of the audio mask.
mask_endoptional
Typeinteger
Default190
0 – 190
Ending position of the audio mask.
num_inference_stepsoptional
Typeinteger
Default8
4 – 8
Number of denoising steps applied to the audio.
seedoptional
Typeinteger | null
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stable-audio-25/inpaint",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audio
object {url, content_type, file_name, file_size}Audio clip produced by generation.
seed
integerRandom seed applied during generation.

More models: Audio

For AI agents: this page as Markdown is at https://doitong.com/developers/models/stable-audio-25/inpaint.md. All models and guides: https://doitong.com/developers/llms.txt