{"uid":"cap_klHmG_B93cSalbTWRyHUf","slug":"agentrxi-media-trim-3b516948","name":"AgentRXI Media Trim","description":"Cut a clip out of an audio or video file: give start and end (seconds or hh:mm:ss) or duration. mode=precise re-encodes for frame-exact cuts (default); mode=fast copies streams instantly but cuts on keyframes. Also callable as GET with the same fields as query parameters.","url":"https://agentrxi.com/v1/media/trim?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"end":{"type":"string"},"url":{"type":"string","description":"https URL of the file (max 20 MB)"},"mode":{"type":"string","description":"precise (default) or fast"},"start":{"type":"string","description":"Seconds or hh:mm:ss, default 0"},"store":{"type":"boolean","description":"Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB"},"format":{"type":"string","description":"binary = raw file bytes (single output)"},"duration":{"type":"string","description":"Seconds (instead of end)"},"filename":{"type":"string","description":"Name with extension, helps detect the type"},"file_base64":{"type":"string","description":"Or the file as base64 / data URI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PdsNrkYrPnCyX90TTM0NJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cuts a precise or fast clip from an audio or video file given a URL or base64 input, with configurable start, end, and encoding mode.","exampleAgentPrompt":"Can you trim the video at https://example.com/myvideo.mp4 from 0:01:15 to 0:02:45 using precise mode so I get a frame-exact cut?","exampleUseCases":[{"title":"Podcast segment extraction","prompt":"Take this podcast file at https://example.com/episode42.mp3 and clip out just the interview segment from 12:30 to 28:00 — use precise mode so the cut is clean."},{"title":"Social media video clip","prompt":"I need the first 30 seconds trimmed from this video at https://example.com/keynote.mp4, starting at 0 seconds — use fast mode so it's instant and give me a share link back."},{"title":"Audio highlight reel","prompt":"Cut a 45-second clip from this audio file at https://example.com/speech.wav starting at 2:10 and running for 45 seconds, precise mode please."}],"resultDescription":"Returns the trimmed audio or video segment either as raw binary file bytes, a base64-encoded data URI, or a 7-day share link URL (for files over 3 MB or when store=true). The response includes the clipped media in the requested format.","failureModes":["File URL unreachable or exceeds 20 MB limit — returns error","Invalid or non-parseable start/end/duration values — returns validation error","Unsupported media format or corrupted file — ffmpeg processing error","fast mode may produce inaccurate cuts if no keyframe exists near the specified timestamp","Network timeout on large file download before processing begins"],"whenToPreferThis":"Choose this endpoint when you need to extract a time-bounded segment from an existing audio or video file by URL or base64 upload. Prefer precise mode for frame-accurate editing (e.g. content repurposing, transcription segments) and fast mode when speed matters more than exact cut points (e.g. rough previews). Use over general-purpose media tools when you need pay-per-call pricing with no subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:10.048Z","isFirstParty":false,"canonicalSlug":"agentrxi-media-trim-3b516948"}