Skip to content

Stable Audio 3 Medium Base Audio to Audio

Integrate

Model id stable-audio-3/medium/base/audio-to-audio
# 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-3/medium/base/audio-to-audio?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.053 53 API credits Run it on this page

Get API key
Stability AI Audio 1–380 s #music#style-transfer#remix

Base-checkpoint Medium audio-to-audio remix: reshapes a source clip with a prompt, up to 380 seconds

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

Text instructions describing the transformation to apply to the source audio.

•required audio_url
Drop a file, or

Input audio for transformation.

default 30

Audio length in seconds, with a medium-model maximum of 380 seconds (approximately 6 minutes 20 seconds).

Advanced negative_prompt · output_format · bitrate · num_inference_steps · guidance_scale · init_noise_level · seed · enable_prompt_expansion · enable_safety_checker
default

Text specifying unwanted qualities in the output.

output_format default mp3

Container format used for the resulting audio.

default 192k

Output audio bitrate, ignored when using wav or flac because they are lossless. For compressed formats such as mp3, aac, or opus, supply a value in the form '192k' or '320k'.

default 50

Choose how many sampling steps to run, allowing approximately 50 to obtain good quality when using base (non-distilled) checkpoints.

default 7

Classifier-free guidance strength, for which approximately 7.0 is recommended initially on base checkpoints; raising it makes generation adhere more closely to the prompt.

default 0.9

Source-audio noise level: 0.1 retains close similarity to the input, while 0.5 is intermediate and 1.0 replaces the source entirely with noise for pure generation.

Random generator seed for repeatable results; leaving it out selects a random seed.

POST /run/stable-audio-3/medium/base/audio-to-audio?wait=20 quote → $0.053
# 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-3/medium/base/audio-to-audio?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 3 Medium Base Audio to Audio

Takes a source clip via `audio_url` plus a text `prompt` and generates a transformed version. `init_noise_level` (0 to 1) sets how closely the result follows the input, and `duration` accepts 1 to 380 seconds. This is the non-distilled checkpoint, so the defaults are 50 sampling steps and a guidance scale of 7. Output can be mp3, wav, flac, ogg, opus, m4a or aac.

Parameters

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

NameType DefaultAllowed Description
negative_promptoptional
Typestring
Default
Text specifying unwanted qualities in the output.
durationoptional
Typenumber
Default30
1 – 380
Audio length in seconds, with a medium-model maximum of 380 seconds (approximately 6 minutes 20 seconds).
num_inference_stepsoptional
Typeinteger
Default50
1 – 100
Choose how many sampling steps to run, allowing approximately 50 to obtain good quality when using base (non-distilled) checkpoints.
guidance_scaleoptional
Typenumber
Default7
0 – 25
Classifier-free guidance strength, for which approximately 7.0 is recommended initially on base checkpoints; raising it makes generation adhere more closely to the prompt.
seedoptional
Typeinteger | null
Random generator seed for repeatable results; leaving it out selects a random seed.
enable_prompt_expansionoptional
Typeboolean
Defaultfalse
Prompt expansion using an LLM when enabled, adding detail and improving result quality.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Safety checking for NSFW content.
output_formatoptional
Typeenum
Defaultmp3
mp3wavflacoggopusm4aaac
Container format used for the resulting audio.
bitrateoptional
Typestring
Default192k
Output audio bitrate, ignored when using wav or flac because they are lossless. For compressed formats such as mp3, aac, or opus, supply a value in the form '192k' or '320k'.
promptrequired
Typestring
Text instructions describing the transformation to apply to the source audio.
audio_urlrequired audio
Typeurl · audio
Input audio for transformation.
init_noise_leveloptional
Typenumber
Default0.9
0 – 1
Source-audio noise level: 0.1 retains close similarity to the input, while 0.5 is intermediate and 1.0 replaces the source entirely with noise for pure generation.
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-3/medium/base/audio-to-audio",
  "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": 53,
    "usd": "0.053",
    "charged": 53,
    "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,
    "prompt": "string"
  },
  "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
integerSeed that controlled randomness during generation.
prompt
stringPrompt that was used to generate the output.

More models: Audio

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