Video editing API or AI prompt edit: which Sume endpoint to call
Trim, frames, captions and filter are deterministic jobs; Omni edit changes content from a prompt. Pick the cheapest route that does the change you need.

If the change is mechanical, such as cutting a range, burning captions, dimming or cropping, call a deterministic Sume video endpoint. If the change is what is in the picture, such as swapping a product or changing the weather, call the Omni edit mode with a prompt. Mechanical jobs run ffmpeg and use no model inference, so they are the better first stop.
Which endpoint does what
The table lists what each endpoint does, where the source clip has to live, and whether a generative model is involved. The trim docs say there is no provider inference, only worker ffmpeg, and that each trim uses a flat number of credits; the video-frames docs say it charges by compute time.
| Need | Endpoint | Source | Model call |
|---|---|---|---|
| Cut a range | POST /v1/video-trim | media.sume.com clip | No |
| Burn captions | POST /v1/video-captions | Public HTTPS video URL | No generation |
| Apply a filter | POST /v1/video-filter | media.sume.com clip | No |
| Extract stills | POST /v1/video-frames | media.sume.com clip | No |
| Change content by prompt | POST /v1/video-router/generate with video_url | Public HTTPS URL | Yes: gemini-omni-flash-1.1 |
Where the prompt edit stops
Edit by prompt has two limits to design around. The output follows the source clip's framing and length, so you cannot change the aspect ratio with it, and the audio is always native and synced. To change the framing, crop or generate fresh. To shorten, trim first and edit the trimmed clip, which also lowers the edit bill since Omni bills per second.
A sensible order
A common order is trim, then edit, then caption. Trim the shot you want, run one prompt edit on it, check the result by pulling frames at the start and end, and burn captions last so the text is not regenerated by the edit. Each step is a separate job with its own Idempotency-Key.
- Trim first, so you pay to edit only the seconds you keep.
- Edit once, at 360p if you are testing, then at the final resolution.
- Burn captions last.
- Use video-frames to compare the first and last frame before and after.
Sources
Related posts
More in Developers
- video_url on /v1/videos fails: edits go to /v1/video-router/generate
Sume's /v1/videos has frame_images and input_references but no edit field. Send video_url to /v1/video-router/generate with gemini-omni-flash-1.1.
- What balance do 100 video ads need? Sume reserves at submit
Sume reserves the credits of every accepted job at submit, so a 100-ad batch needs the whole total in the balance. 402 insufficient_credits otherwise.
- Why a video model is missing from your Sume model list
A documented video id can be absent from the model list: Veo needs Google Cloud, Tencent rows need the Tencent switch. Absent ids 404. Read 2026-10-13.
- X media upload: how many APPEND calls a Sume MP4 needs at 5 MB
X's chunked upload keeps each segment at or below 5 MB, with an 8 MB server limit. Divide your MP4's byte size by 5 MB, rounded up, to count APPEND calls.
Written by Sume