{"uid":"cap_-KhTqZk1AMnBJSg9_WoLj","slug":"relaystation-media-trim-eac73773","name":"RelayStation Media Trim","description":"$0.0005/MB. Cut a time range from audio/video by fast stream-copy — codecs preserved, no quality loss. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/media/trim","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"end":{"type":"number","minimum":0},"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key ≤ 50 MB> }. The input container must sniff (ffprobe) to the live allowlist (operator-tunable cputools.media.input_formats): 3g2, 3gp, aac, asf, avi, flac, flv, gif, m4a, m4v, matroska, mj2, mov, mov,mp4,m4a,3gp,3g2,mj2, mp3, mp4, mpeg, mpegts, mpegvideo, ogg, wav, webm, wmv. An off-list input is a free 422 UNSUPPORTED_FORMAT."},"start":{"type":"number","minimum":0},"format":{"enum":["mp4","mov","mkv","webm","m4a","mp3","wav","ogg","aac","flac"],"type":"string"},"duration":{"type":"number","minimum":0.01}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8fOUADbNWcnu8nzTPCcsQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cuts a specified time range from an audio or video file using fast stream-copy, preserving original codecs with no quality loss.","exampleAgentPrompt":"Trim my video file from the 0:30 mark to 2:45 without re-encoding it — I need the original codec preserved and no quality loss.","exampleUseCases":[{"title":"Extract podcast highlight clip","prompt":"Can you cut out the segment from 5:10 to 8:45 in this podcast audio file and give me just that portion, keeping the original audio codec intact?"},{"title":"Trim video intro for social media","prompt":"I have a 10-minute interview video — can you trim it to just the part from 0:15 to 3:30 without re-encoding so I don't lose quality?"},{"title":"Remove silence from recording start","prompt":"This audio recording has 45 seconds of silence at the beginning before anything happens — can you cut from 0:45 to the end and return just the useful part?"}],"resultDescription":"Returns the trimmed audio or video file segment spanning the requested time range, with all original codecs and streams preserved via stream-copy — no transcoding, no quality degradation. Billed at $0.0005/MB with a 1¢ x402 minimum; any remainder is credited to the account.","failureModes":["Invalid or unreachable media URL returns an error","Start or end time out of bounds for the media duration","Unsupported container format may prevent stream-copy","Network timeout for large files","Malformed time range (start >= end) causes rejection"],"whenToPreferThis":"Choose this endpoint when you need to extract a time-bounded segment from audio or video without any transcoding overhead — ideal when preserving the original codec and quality is critical, or when speed and cost efficiency matter. Prefer over full re-encode pipelines when the output format does not need to change.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T03:45:44.704Z","isFirstParty":false}