Audio of a 15-second span: one detach range costs 1 cent, not 3
Need only the sound of seconds 40 to 55? Send one audio-detach job with a range for $0.01. Trimming first and then detaching costs $0.03.

Send one audio-detach job with range: {start: 40, end: 55} and you get a 15-second audio file for $0.01. Trimming the video first and detaching afterwards is two jobs, $0.02 plus $0.01 = $0.03, and it makes an MP4 you did not need.
The shortcut works because audio detach accepts a range on the original video. The source video is not changed, and the output is a new audio artifact.
The two routes in numbers
Prices are the public rates in the Sume catalog and the docs pages, read 2026-10-09.
| Route | Jobs | Arithmetic | Total |
|---|---|---|---|
| Detach with range | 1 | $0.01 | $0.01 |
| Trim (exact), then detach | 2 | $0.02 + $0.01 | $0.03 |
| Detach whole track, then split | 2 | $0.01 + $0.01 | $0.02 |
The request
range is { start, end? } in seconds. The default format is wav (pcm_s16le, sample-exact). Set format: "mp3" for a 128 kbps file. Import the clip first with POST /v1/media-imports so it sits on media.sume.com, send an Idempotency-Key header, then poll GET /v1/jobs/:id/status and read GET /v1/jobs/:id/result. The API rejects off-host URLs at admit, so a bad URL fails before any work runs.
curl -X POST https://api.sume.com/v1/audio-detach \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: detach-span-001" \
-d '{"video_url":"https://media.sume.com/artifacts/artf_demo/talk.mp4","range":{"start":40,"end":55},"format":"wav"}'Limits that matter here
- The source video can be up to 1800 s, but the output is capped at 900 s. A whole track longer than 900 s needs a range.
detach_source_has_no_audiois returned for a silent video. Run video inspect withframes: falsefirst and readprobe.has_audioif you are not sure.detach_start_past_sourceis returned whenrange.startis beyond the probed duration.- The video is never re-encoded: detach uses worker ffmpeg only, with no provider inference.
When trim plus detach is still right
Use the two-step route only when you need the same 15 seconds as both a picture and a sound. Then the trim job gives you the MP4 and you detach from that short file. If you need many ranges from one recording, detach once and slice the audio with the timeline audio split operation instead of paying for a range detach each time.
A worked batch
At scale the difference compounds. Suppose you pull a 15-second hook sound from each of 300 episodes. One detach with a range per episode is 300 x $0.01 = $3.00. Trim then detach is 300 x $0.03 = $9.00. Detaching each whole track and splitting is 300 x $0.02 = $6.00, and only pays off when you want several ranges from the same episode. The break-even: if you need three or more ranges from one source, detach the whole track once and split it, because one split job takes up to 20 ranges for $0.01 (1 detach + 1 split = $0.02, versus $0.03 for three range detaches). Every media job follows the same lifecycle: submit with an Idempotency-Key, receive a job, poll GET /v1/jobs/:id/status until it is ready, then read GET /v1/jobs/:id/result. A retry with the same key does not queue a second job, so a network error during submit never doubles a charge.
Sources
Related posts
More in Media tools
- Background removal at $0.0225 per image, flat for any photo size
Sume's background removal costs $0.0225 per image and the catalog says the price does not vary by image size. 2,000 photos cost $45; 40,000 cost $900.
- Best of 8 music takes costs $1.00 on Sume, then a 1-cent cut
Music 1.0 and the Music Router charge a flat $0.125 per track and reject a duration field. Generate 8 takes for $1.00, then cut the best one with a $0.01 split.
- Talking photo greeting: 8 seconds on Fabric 720p plus voice-over cost
An 8-second talking-photo greeting on VEED Fabric 1.0 costs $1.50 at 720p or $0.80 at 480p, plus about $0.0114 of TTS for a 240-character line.
- Korean captions API error: caption_hangul_text_latin_style (400)
Sume refuses Korean text on the slam, punch and tiktok-green caption styles with a 400. Use black-outline, korean-ad or another Hangul style; $0.20 a job.
Written by Sume