Skip to content

FFmpeg API Waveform

Integrate

Model id ffmpeg-api/waveform
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

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

This request: ≈$0.001 1 API credit · ≈ ₽0.11 Run it on this page

Get API key
Utility Other #ffmpeg

Generates normalized waveform data from an audio file for drawing visualizations

Utility · Data (JSON)

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

URL pointing to the audio file for analysis.

Advanced points_per_second · precision · smoothing_window
default 4

Waveform sampling rate in points per audio second, ranging in detail from coarse at values such as 1–2 to finer at values such as 4–10.

default 2

Decimal-place count for waveform values, trading a larger payload for greater numerical precision as the count increases.

default 3

Smoothing window size, which must be odd. Larger windows produce smoother waveforms.

POST /run/ffmpeg-api/waveform?wait=20 quote → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 FFmpeg API Waveform

Analyzes the audio at `media_url` and returns the duration, point count, precision and a `waveform` array of values between -1 and 1. `points_per_second` ranges from 1 to 10, `precision` sets decimal places from 1 to 6, and `smoothing_window` from 1 to 21 smooths the curve and must be odd.

Parameters

NameType DefaultAllowed Description
media_urlrequired
Typestring
URL pointing to the audio file for analysis.
points_per_secondoptional
Typenumber
Default4
1 – 10
Waveform sampling rate in points per audio second, ranging in detail from coarse at values such as 1–2 to finer at values such as 4–10.
precisionoptional
Typeinteger
Default2
1 – 6
Decimal-place count for waveform values, trading a larger payload for greater numerical precision as the count increases.
smoothing_windowoptional
Typeinteger
Default3
1 – 21
Smoothing window size, which must be odd. Larger windows produce smoother waveforms.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ffmpeg-api/waveform",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "media_url": "https://example.com/your-file.bin"
  },
  "output": {
    "waveform": [
      1.0
    ],
    "duration": 5,
    "points": 1,
    "precision": 1
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
waveform
array of numberNormalized waveform array containing audio duration × points_per_second points, each within the range -1 to 1.
duration
numberAudio duration, expressed in seconds.
points
integerTotal count of waveform data points.
precision
integerDecimal precision used for waveform values.

More models: Other

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/ffmpeg-api/waveform.md. All models and guides: https://doitong.com/developers/llms.txt