Skip to content

Workflow Utilities Audio Compressor

Integrate

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

Up to $1.80 per run charged by actual usage, the rest is refunded Run it on this page

Get API key
Utility · 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 audio_url
Drop a file, or

URL pointing to audio for compression.

Advanced output_bitrate · threshold · ratio · attack · release · makeup · knee
output_bitrate default 192k

Bitrate of the resulting audio.

default -18

Compression trigger, adjustable from -60 to 0 dB: signal levels must rise above this setting for compression to apply.

default 3

Compression ratio: 1 leaves audio uncompressed, while larger values increase compression.

default 5

Compression onset speed, expressed as an attack time in milliseconds.

default 50

Compression ending speed, expressed as a release time in milliseconds.

default 8

Makeup gain, measured in dB, that offsets the reduction in volume.

default 2.83

Soft-knee compression width, measured in dB; 0 specifies a hard knee.

POST /run/workflow-utilities/audio-compressor?wait=20 quote → $1.80
# 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/workflow-utilities/audio-compressor?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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 Workflow Utilities Audio Compressor

Applies dynamic range compression to an audio file. Adjust `threshold` (-60 to 0 dB), `ratio` (1 to 20), `attack`, `release`, `makeup` gain (0 to 64 dB) and `knee`. The result is encoded at 128k, 192k, 256k or 320k bitrate.

Parameters

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

NameType DefaultAllowed Description
audio_urlrequired audio
Typeurl · audio
URL pointing to audio for compression.
thresholdoptional
Typenumber
Default-18
-60 – 0
Compression trigger, adjustable from -60 to 0 dB: signal levels must rise above this setting for compression to apply.
ratiooptional
Typenumber
Default3
1 – 20
Compression ratio: 1 leaves audio uncompressed, while larger values increase compression.
attackoptional
Typenumber
Default5
0.01 – 2,000
Compression onset speed, expressed as an attack time in milliseconds.
releaseoptional
Typenumber
Default50
0.01 – 9,000
Compression ending speed, expressed as a release time in milliseconds.
makeupoptional
Typenumber
Default8
0 – 64
Makeup gain, measured in dB, that offsets the reduction in volume.
kneeoptional
Typenumber
Default2.83
1 – 8
Soft-knee compression width, measured in dB; 0 specifies a hard knee.
output_bitrateoptional
Typeenum
Default192k
128k192k256k320k
Bitrate of the resulting audio.
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": "workflow-utilities/audio-compressor",
  "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": 1800,
    "usd": "1.80",
    "charged": 1800,
    "refunded": 0
  },
  "input": {
    "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
    }
  },
  "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 file after compression.

More models: Audio

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