{"uid":"cap_PhvZctACx3zfpRB6XN3af","slug":"fastx402-media-trim-edc7213f","name":"FastX402 Media Trim","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/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","required":["url"],"properties":{"end":{"type":"string","description":"End time in seconds or as 1:05, default the end of the file"},"url":{"type":"string","description":"Absolute http(s) URL of a video or audio file (mp4, mov, mkv, webm, avi, mp3, m4a, wav, ogg, flac)"},"start":{"type":"string","description":"Start time in seconds (12.5) or as 1:05, default 0"},"format":{"enum":["mp4","mov","mkv","webm","mp3","m4a","wav","ogg","flac","opus"],"type":"string","description":"Output format, default mp4 for video and mp3 for audio"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"bytes":{"type":"integer"},"start":{"type":"integer"},"format":{"type":"string"},"mime_type":{"type":"string"},"duration_s":{"type":"integer"},"expires_at":{"type":"string"},"input_bytes":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://workshop.tusk80.com/r/1b4714c56e71cd586c493fc3e8f75f2a.mp4","bytes":932084,"start":5,"format":"mp4","mime_type":"video/mp4","duration_s":10,"expires_at":"2026-10-17T15:20:47.820Z","input_bytes":5510872}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_GY0pNN03gMhc6NnZCvL0e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Trims a video or audio file to a specified time range and returns a download URL for the clipped output","exampleAgentPrompt":"Can you trim this video from 5 seconds to 1:35 and give me a download link? The file is at https://example.com/footage.mp4 — output it as mp4.","exampleUseCases":[{"title":"Extract podcast interview highlight","prompt":"I have a podcast episode at https://cdn.example.com/episode42.mp3 — can you cut out just the segment from 12:30 to 18:45 and give me a downloadable mp3 clip?"},{"title":"Clip a product demo video","prompt":"Trim this product demo video at https://storage.example.com/demo.mp4 to just the first 45 seconds and export it as webm so I can embed it on my landing page."},{"title":"Remove silence from audio recording","prompt":"This recording at https://files.example.com/interview.wav has a long silence at the start — please cut it from 8 seconds to the end and give me a wav file back."}],"resultDescription":"A JSON object containing a temporary download URL for the trimmed media file, the output file size in bytes, the start time used, the output format, MIME type, duration in seconds, an expiry timestamp, and the original input file size in bytes.","failureModes":["Invalid or unreachable media URL returns an error — the URL must be a publicly accessible http(s) resource","Unsupported file format at the source URL may cause processing failure","Start time greater than or equal to end time returns an error","End time beyond the actual file duration may be clamped or return an error","Malformed time strings (not in seconds or MM:SS format) may fail validation","Large files may time out depending on network and processing constraints"],"whenToPreferThis":"Choose this endpoint when you need to quickly trim or clip a video or audio file from a remote URL without setting up a server-side FFmpeg pipeline or requiring API keys. It supports a wide range of formats (mp4, mov, mkv, webm, avi, mp3, m4a, wav, ogg, flac) and accepts flexible time formats. At $0.01 per call it is cost-effective for on-demand, single-file trimming operations in agent workflows. It is especially suited for AI agents that need to process media as part of a larger pipeline without account registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:32.591Z","isFirstParty":false,"canonicalSlug":"fastx402-media-trim-edc7213f"}