Blog

Media tools

Sume media tools by API: trim, filter, captions, frames, inspect, speech-to-text, upscaling, background removal, transitions, and Timeline assembly.

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

Resize a clip while trimming: output needs precision exact

Sume video trim takes output {width, height, fps} only with precision exact, the default. With keyframe you get video_trim_output_requires_exact. $0.02 a job.

13.4-second voice-over: H3 Max Lip Sync bills 14 s, $1.40 at 768p

A 13.4-second voice-over is rounded up to 14 billable seconds on Sume's H3 Max Lip Sync: $1.40 at 768p, $0.875 at 480p. Rounding rule and what to trim.

Sume video captions: $0.20 a job, ten clips cost $2.00

Sume video captions cost $0.20 per job for clips of 60 s or less. A restyle with source_caption_id reuses stored word timings, so no second transcription.

Pinterest video ad bitrate: no figure listed, 2 GB/15 min is 17.8 Mbps

Pinterest's ad specs list no bitrate. The only ceiling is 2 GB at up to 15 minutes, about 17.8 Mbps average. Sume has no bitrate field, so check the file size.

9-second Kling motion control clip: $1.42, or $1.64 finished

Kling 3.0 Motion Control on Sume bills $0.1575 per output second: 9 seconds is $1.4175. With Music 1.0 and a 1-minute render it is $1.6425.

Video filter check passed but the encode failed: what to do next

Sume's free video-filter check covers schema, allowlist and source, not the worker. A valid program can still fail on expressions, memory or time. Next steps.

$5 of lip sync: 50 s on H3 Max 768p, 26 s on Fabric 720p

A $5.00 balance buys 50 audio seconds of H3 Max Lip Sync at 768p ($0.10), 80 at 480p, or 26 whole seconds of VEED Fabric at 720p ($0.1875) on Sume.

Source sizes that reach 3840x2160 within Sume upscale's 4x limit

Sume video upscale accepts factors 1.1 to 4. 960x540 needs 4, 1280x720 needs 3, 1920x1080 needs 2; 854x480 tops out at 3416x1920. Same $0.009 a second.

Fabric vendor $0.15 per second is $0.1875 on Sume: five lengths

fal lists VEED Fabric 1.0 at $0.15 per second (720p) and $0.08 (480p). Sume bills list x 1.25: $0.1875 and $0.10. Prices at 4, 8, 12, 20 and 30 seconds.

AI song captions: Lyria lyrics are metadata, so burn your own cues

result.lyrics on a Sume music job is model-reported, not measured. For a lyric video, burn captions with your own cues: music $0.125 plus a $0.20 caption job.

LinkedIn 30-minute video ad at 500 MB: 2.2 Mbps average, $3.00 render

A 30-minute LinkedIn ad must average under about 2.2 Mbps to fit 500 MB. Sume's timeline renders up to 1,800 seconds for $3.00; trim stops at 900.

Video inspect seek fast vs precise: stills up to one GOP early

Sume video inspect seek: fast snaps each still to the keyframe at or before the time, about 0-5 s early on typical sources. precise decodes the exact instant.

Korean captions: slam returns 400, so use korean-ad with language ko

Latin caption styles have no Hangul glyphs, so Korean text on slam, punch or tiktok-green returns 400 caption_hangul_text_latin_style. Use korean-ad.

1080x2400 phone recording for Pinterest: crop height to 0.9 or 0.8

A 1080x2400 screen recording is 0.45 wide-to-tall; Pinterest's page avoids shapes shorter than 1:2. Crop height 0.9 gives 1080x2160; 0.8 gives 9:16.

16 kHz mono wav vs 128 kbps mp3: audio detach sizes for 15 minutes

A 900-second detach, the output cap, is about 28.8 MB as 16 kHz mono 16-bit wav and about 14.4 MB as 128 kbps mp3. Arithmetic and the STT shape.

4:5 clip in Snapchat's 720x1280 frame: crop or pad 29.7%

A 1080x1350 clip in a 720x1280 Snap frame: cover loses 304 px of width, contain leaves 380 px of bars. Fit modes cover, contain, blur; $0.10 a minute.

Crop a 1080x1920 clip to a 1080x1080 square for a TikTok 1:1 ad

TikTok's 1:1 ad needs 640x640 or more. A 9:16 source crops to a square with video filter height 0.5625 and y 0.21875, or y 0.1 to keep the top. $0.02.

H3 Max lip sync on a 6.2-second line: billed as 7 s, $0.44 to $1.40

MiniMax H3 Max Lip Sync on Sume bills ceil of audio seconds: a 6.2 s line is 7 s, or $0.4375 at 480p, $0.70 at 768p and $1.40 at 1080p.

Image upscale factor 4 on a 1024 square: about 16.8 MP for $0.20

Sume image upscale allows factor 1 to 4 at $0.20 per image, with about 16 megapixels reserved. A 1024 square times 4 is 4096 square, 16.78 MP. Check the math.

Does Kling motion control follow my prompt? Only for appearance

On Sume's Kling 3.0 Motion Control the optional prompt (up to 2,000 characters) steers appearance only; motion and framing follow the driving video.

Pinterest wants 6 to 15 seconds: three trims from a 47-second demo

Pinterest's page recommends 6 to 15 seconds with a 4-second minimum. Three video trim jobs at $0.02 turn a 47-second demo into cuts of 12, 9 and 15 seconds.

Remove backgrounds from 2,000 marketplace images for $45 with RMBG

Sume RMBG 1.0 is $0.0225 per image regardless of size, so 2,000 cutouts cost 2,000 x $0.0225 = $45.00. Request body, endpoint and limits.

TikTok 516 kbps floor: 0.033 bits per pixel at 540x960, 0.008 at 1080p

At 30 fps TikTok's 516 kbps floor is 0.033 bits per pixel at 540x960 but 0.008 at 1080x1920. Why a bigger frame needs a higher real bitrate to look the same.

Timeline compose stack ratio 0.4 on 1080x1920: 768 and 1,152 px

Timeline compose stack splits the 1080x1920 frame by ratio. Ratio 0.4 gives the still a 768 px band and the video the other 1,152 px. $0.02 flat per job.

Trim end 184 on a 172-second source: it clamps and warns, no error

Video trim clamps an end past the source length and returns warning trim_clamped_to_source. A 4 to 184 cut of a 172.4 s clip yields 168.4 s for $0.02.

Upscale twenty 12-second clips for $2.16 with Sume video upscale

Video upscale is $0.009 per input second, up to 30 s per video. Twenty 12-second clips are 240 s x $0.009 = $2.16. Fields and the 5-second default reserve.

VEED Fabric 47-second talking still: $4.70 at 480p, $8.81 at 720p

A 47-second VEED Fabric 1.0 talking still on Sume is 47 x $0.10 = $4.70 at 480p and 47 x $0.1875 = $8.8125 at 720p. Limits, audio cap and alternatives.

Vertical clip as long-form YouTube: 1920x1080 blur keeps 31.6% sharp

YouTube says use 16:9 to keep a video from becoming a Short. A 9:16 clip in 1920x1080 with blur fit keeps 608 px (31.6%) sharp; a 5-minute render is $0.50.

Video frames on 300 s: fps 0.08 gives 24 stills, 12.5 s apart

The video-frames route takes clips up to 300 s and 24 frames per call. At fps 0.08 a 300-second clip yields 24 source-size stills, from 6.25 s to 293.75 s.

Video inspect seek fast vs precise: stills up to one keyframe early

Set seek fast to get stills from the keyframe at or before each time, skipping the decode. Stills can be early by a GOP, about 0 to 5 s, never later.

YouTube 1080p at 60 fps: a 3-minute Short is 270 MB, not 180

YouTube lists 8 Mbps for 1080p at 24-30 fps and 12 Mbps at 48-60: 180 MB versus 270 MB over 180 s. Timeline fps 60 only helps with 60 fps sources.

YouTube asks for 4:2:0 chroma: keyframe trim copies, exact writes it

YouTube's upload page lists 4:2:0 chroma and H.264. Sume video trim exact re-encodes to libx264 yuv420p; keyframe copies the stream and keeps the source format.

Cut a 150-second video into three Shorts of 60, 60 and 30 seconds

Three video trim jobs at $0.02 each turn one 150-second clip into Shorts of 60, 60 and 30 seconds, each at or under the one-minute claim line on YouTube.

Review a 96-second Short in 24 stills: video frames fps 0.25

fps 0.25 on a 96-second Short returns 24 stills at seconds 2, 6, 10 and on to 94. Video frames takes 24 per call, so one job covers the whole cut.

Eight inspect stills on a 45 s Snap ad: one lands in the first 6 s

Video inspect's default eight stills on 45 seconds sit 5.6 s apart; only 2.8 s falls in Snap's non-skippable first 6. Use frames at 1, 3 and 5.9 instead.

One 95-second LinkedIn video, two trims: 90 s in-stream, 30 s feed

LinkedIn lists in-stream ads up to 90 seconds and recommends 15 to 30 seconds. From a 95-second source, trim start 0 for 90 s and start 20 for 30 s: $0.04.

LinkedIn 9:16: 720x1280 is listed, Sume's 1080x1920 default is 2.25x

LinkedIn lists 720x1280 for 9:16 with a 1080x1920 max. Sume's Timeline default is 1080x1920, 2.25x the pixels; set output 720x1280 and fps 25.

LinkedIn video ad codec: H.264 or VP8, under 30 fps, one trim job

LinkedIn lists MP4, H.264 or VP8, AAC audio and a frame rate under 30. One video trim exact job at $0.02 writes H.264 with AAC and can set 25 fps.

caption_no_speech: burn authored cues onto a silent clip, no ASR

A silent clip makes speech-to-captions fail with caption_no_speech. Send cues (text, start, end) and Sume burns your text at those times without speech-to-text.

Three caption styles on one clip for $0.60 with source_caption_id

Standalone captions are $0.20 per job for clips up to 60 s. Restyling with source_caption_id reuses the word timings, so three looks cost 3 x $0.20.

Concat 20 voice lines into one wav with timeline audio for 1 cent

Timeline audio concat joins up to 20 Sume-hosted audio parts into one gapless wav for a flat $0.01, and returns segment offsets to re-base your video slots.

Timeline render: 61 seconds bills 2 minutes ($0.20), 60 bills $0.10

Timeline 1.0 bills $0.10 per ceil(output minute), minimum one. A 60 s render is $0.10; 61 s rounds up to 2 minutes, $0.20. Use the free plan call to check.

A 17-second Kling 3.0 Motion Control clip: $2.68 on Sume

Kling 3.0 Motion Control is billed on Sume at $0.1575 per output second for 1 to 30 s, so 17 s is $2.6775. Table of lengths from 1 to 30 s and what they cost.

Lip sync on a 2.76:1 widescreen still: crop to 2.5:1 first

Sume's MiniMax H3 Max Lip Sync accepts stills with aspect ratio 0.4 to 2.5. A 2.76:1 frame is out of range; cropping 2760x1000 to 2500x1000 fits.

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.

Conform a trim to 540x960 at 30 fps for TikTok non-Spark ads

TikTok's non-Spark ad spec sets 540x960 as the 9:16 minimum. One video-trim job with output 540x960 at 30 fps costs $0.02. Bitrate is not a field.

Crop 1920x1080 to 3:4 with video filter: width 0.421875, x 0.2890625

A centered 3:4 crop of a 1920x1080 frame keeps 810x1080 pixels. In video-filter fractions that is width 0.421875, height 1, x 0.2890625. One job, $0.02.

Is a 4:5 video a YouTube Short? 1080x1350 fits square or vertical

YouTube's Shorts page says square or vertical, up to three minutes. 4:5 is vertical, though not named. A 170-second 1080x1350 Timeline render costs $0.30.