Media tools

Video editing API limits: Sume media tool caps in one table

Source and output lengths, counts, and sizes for Sume's trim, filter, detach, frames, inspect, captions, and Timeline APIs, each linked to its docs page.

6 min readSume
All posts

Sume's video editing APIs cap sources at 300 seconds for video filter and video frames and at 1,800 seconds for video trim, audio detach, and video inspect. A Timeline 1.0 render outputs 1 to 1,800 seconds from up to 200 slots, and timeline compose outputs at most 300 seconds. The table below lists each tool's documented length, count, and size caps.

Each row links the docs page it comes from; the caption limits also come from the Sume API reference. All were read on 2026-09-26. Behavior described as "today" is read from Sume's code.

What are the caps for each media tool?

Lengths are in seconds. "Source" is the input file; "output" is what the job produces.

From the docs page linked in each row and the Sume API reference, read 2026-09-26.
ToolLengthCounts and sizes
Video trim, POST /v1/video-trimSource ≤ 1,800; output 0.2–900output width and height 256–2160; fps 24, 25, 30, or 60 (exact precision only)
Video filter, POST /v1/video-filterSource ≤ 300≤ 8 ops; filtergraph ≤ 2,048 characters and 32 named filters; crop sides ≥ 0.05
Audio detach, POST /v1/audio-detachSource ≤ 1,800; output ≤ 900 (a longer track needs a range)sample_rate 16000, 44100, or 48000; mp3 at 128 kbps
Video frames, POST /v1/video-framesSource ≤ 3001–24 at values, or fps ≤ 2 capped at 24 frames; max_edge 16–2160
Video inspect, POST /v1/video-inspectSource ≤ 1,800; transcript hint ≤ 600≤ 24 stills (8 by default); max_edge 64–2160 (768 by default)
Video captions, POST /v1/video-captionsPriced for videos up to 60words ≤ 1,200; cues ≤ 200; times 0–60; script_text ≤ 8,000 characters
Timeline 1.0, POST /v1/timeline-1.0/renderOutput 1–1,800; each slot ≥ 0.21–200 slots; ≤ 20 audio parts; output even 256–2160
Timeline compose, POST /v1/timeline-1.0/composeOutput ≤ 300One still and one video; output 256–2160
Timeline audio, POST /v1/timeline-1.0/audioProduced audio ≤ 1,8001–20 parts (concat) or ranges (split)

Which rules apply to every media tool?

A few limits are shared rather than per tool:

  • Inputs: trim, filter, detach, frames, inspect, and the three Timeline tools read only your workspace's media.sume.com artifacts or assets. Captions take a public HTTPS video URL.
  • Waiting: mode: "sync" holds a request for at most 30 seconds. Trim, filter, detach, and the Timeline tools default to async, inspect defaults to sync, and video frames always answers 202.
  • Keys: trim, filter, detach, inspect, and the Timeline tools require an Idempotency-Key; video frames requires it on MCP writes, and the docs say to send it on REST too.
  • No argv: ffmpeg fields such as codec are refused, as ffmpeg_fields_rejected on trim, filter, detach, frames, and inspect, and as a 400 on the Timeline tools.

Which caps fail at submit and which fail later?

Request-shape caps fail at submit with a 400. Length caps that depend on the file are checked by the worker after it probes the source, so the job fails instead:

  • source_duration_exceeded: a trim or detach source longer than 1,800 seconds.
  • output_duration_exceeded: a filter source longer than 300 seconds.
  • duration_out_of_range: a video frames source longer than 300 seconds.
  • frame_time_out_of_range: an at value at or past the probed duration.
  • Some limits clamp instead of failing: a trim end past the source warns trim_clamped_to_source, and a compose video.duration past the file warns compose_duration_clamped_to_source.

What are Timeline's finer limits?

Beyond length and slot count, Timeline 1.0 and compose check these values:

  • Transitions: at most 1 second, at most 50% of the shorter neighbor, and at least one output frame; more than 8 adjacent fades fails too_many_chained_transitions.
  • render.strategy: "single" is refused above 12 slots (render_strategy_unsafe). Edge fades are 0–5 seconds each, and their sum must fit the output.
  • soundtrack: fade_out_seconds ≤ 10 and duck_db 0–20. audio.gain_db: −60 to 12. Video coverage may trail the spine by at most 0.5 seconds.
  • Compose stack: ratio 0.1–0.9. Compose overlay: width_ratio 0.05–1 and margin_ratio 0–0.45.

What do the caps mean for a long recording?

A 30-minute recording fits inspect, trim, and detach (detach one range of 900 seconds or less at a time), but not filter or frames. Cut it with trim into clips of 900 seconds or less (300 or less before a filter or frames call), then assemble up to 1,800 seconds with Timeline 1.0. The captions page prices a standalone caption job for videos up to 60 seconds, and today the caption worker refuses a longer source with duration_out_of_range. Split a long video into short clips walks through that workflow.

Sources

Related posts

Written by Sume