Skip to content

Stable Audio 3 Trainer

Integrate

Model id stable-audio-3-trainer
# 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-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio_data_url": "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"

Files like the example: $3.00 3,000 API credits your files are measured before the run Run it on this page

Get API key
Stability AI Training 1–380 s #music#audio#sfx#lora

Trains a LoRA on Stable Audio 3 from a zip of audio clips with matching text captions

Stability AI · File

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

Dataset zip URL, with each audio/caption pair stored together under matching basenames: `clip.wav` pairs with `clip.txt`, for example. Captions must use the `.txt` extension.

default 1000

Step count for LoRA training.

Crop/pad duration in seconds, limited in all cases by the selected model's native training length. Supply a length or omit it to use the longest clip detected in the dataset, subject to that cap.

default 1

Batch size used during training.

Advanced model · base_precision · adapter_type · lora_checkpoint_url · learning_rate · rank · seed · pre_encode · include · exclude
model default medium-base

Base checkpoint for fine-tuning Stable Audio 3.

base_precision default bf16

Precision used by the frozen base weights; LoRA parameters remain fp32.

default dora-rows

Adapter family used for LoRA training.

Optional URL of a `.safetensors` LoRA checkpoint from which to resume.

default 0.0001

Learning rate applied by AdamW to LoRA parameters.

default 16

Rank of the LoRA adapter.

default 42

Seed for randomization.

Module-name substrings that restrict where LoRA is added: only matching modules receive it.

Name substrings used to exclude matching modules.

POST /run/stable-audio-3-trainer?wait=20 quote → $3.00
# 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-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio_data_url": "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 Trainer

Fine-tunes a base checkpoint (medium-base, small-music-base or small-sfx-base) on an `audio_data_url` zip where each audio file has a same-named `.txt` caption. You can tune `number_of_steps` (up to 20000), `learning_rate`, `rank` (1 to 256), `adapter_type` and `batch_size`, or resume from a `.safetensors` checkpoint. Returns LoRA weights and a config file.

Parameters

NameType DefaultAllowed Description
audio_data_urlrequired
Typestring
Dataset zip URL, with each audio/caption pair stored together under matching basenames: `clip.wav` pairs with `clip.txt`, for example. Captions must use the `.txt` extension.
modeloptional
Typeenum
Defaultmedium-base
medium-basesmall-music-basesmall-sfx-base
Base checkpoint for fine-tuning Stable Audio 3.
number_of_stepsoptional
Typeinteger
Default1000
1 – 20,000
Step count for LoRA training.
learning_rateoptional
Typenumber
Default0.0001
≤ 0.01> 0
Learning rate applied by AdamW to LoRA parameters.
rankoptional
Typeinteger
Default16
1 – 256
Rank of the LoRA adapter.
adapter_typeoptional
Typeenum
Defaultdora-rows
loradoradora-rowsdora-colsboralora-xsdora-rows-xsdora-cols-xsbora-xs
Adapter family used for LoRA training.
durationoptional
Typenumber | null
1 – 380
Crop/pad duration in seconds, limited in all cases by the selected model's native training length. Supply a length or omit it to use the longest clip detected in the dataset, subject to that cap.
batch_sizeoptional
Typeinteger
Default1
1 – 8
Batch size used during training.
seedoptional
Typeinteger
Default42
0 – 2,147,483,647
Seed for randomization.
base_precisionoptional
Typeenum
Defaultbf16
bf16bfloat16fp16float16
Precision used by the frozen base weights; LoRA parameters remain fp32.
includeoptional
Typestring[]
Module-name substrings that restrict where LoRA is added: only matching modules receive it.
excludeoptional
Typestring[]
Name substrings used to exclude matching modules.
lora_checkpoint_urloptional
Typestring | null
Optional URL of a `.safetensors` LoRA checkpoint from which to resume.
pre_encodeoptional
Typeboolean
Defaultfalse
Pre-encoding of the audio archive into SAME latents before training the LoRA.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stable-audio-3-trainer",
  "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": 3000,
    "usd": "3.00",
    "charged": 3000,
    "refunded": 0
  },
  "input": {
    "audio_data_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "output": {
    "lora_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "config_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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
lora_file
object {url, content_type, file_name, file_size}LoRA weights trained for Stable Audio 3.
config_file
object {url, content_type, file_name, file_size}JSON metadata describing the training run and the compatible model for inference.

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