{"uid":"cap_GbCVB-BO8jXygesoFRrG_","slug":"relaystation-media-convert-ac9f0783","name":"RelayStation Media Convert","description":"$0.0005/MB. Re-encode video/audio to another container or codec (H.264/AAC and more) — scale, crop, rotate in the same pass. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/media/convert","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":{"crop":{"type":"object","required":["w","h","x","y"],"properties":{"h":{"type":"integer","maximum":7680,"minimum":1},"w":{"type":"integer","maximum":7680,"minimum":1},"x":{"type":"integer","maximum":7680,"minimum":0},"y":{"type":"integer","maximum":7680,"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."},"width":{"type":"integer","maximum":7680,"minimum":1},"format":{"enum":["mp4","mov","mkv","mp3","m4a","aac","wav","ogg","flac"],"type":"string"},"height":{"type":"integer","maximum":7680,"minimum":1},"rotate":{"enum":[90,180,270],"type":"integer"}}},"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_rfzVqfOD2-AoRhu8SJjto","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":"Re-encodes video or audio to a different container or codec (H.264, AAC, etc.) with optional scaling, cropping, and rotation in a single pass","exampleAgentPrompt":"Take this video file and re-encode it to H.264 video with AAC audio in an MP4 container, scaling it down to 1280x720 while you're at it.","exampleUseCases":[{"title":"Web-ready video transcoding pipeline","prompt":"I have a raw MOV file from my camera — can you convert it to H.264 in an MP4 container at 1920x1080 so it's ready to upload to our website?"},{"title":"Podcast audio format conversion","prompt":"Convert this WAV audio recording to AAC inside an M4A container so it works with our podcast platform."},{"title":"Social media clip resizing and re-encoding","prompt":"Re-encode this landscape MP4 to a 1080x1080 square crop in H.264 so I can post it as an Instagram video."}],"resultDescription":"Returns the re-encoded media file (video or audio) in the requested container and codec, with any requested spatial transforms (scale, crop, rotation) already applied. Billing is $0.0005 per MB of input/output processed, with a 1¢ minimum per call credited against overages.","failureModes":["Unsupported codec or container combination returns an error","Malformed or corrupt input media file causes processing failure","Missing required target format parameters returns a validation error","Insufficient USDC balance for x402 micropayment blocks the request","File too large may cause timeout or processing failure"],"whenToPreferThis":"Choose this endpoint when you need server-side, pay-per-use video or audio transcoding without managing FFmpeg infrastructure yourself. It is ideal for agents that need to convert media formats on demand in a single API call, especially when spatial transforms (scale, crop, rotate) are needed simultaneously with codec conversion. Prefer it over self-hosted solutions when you want per-MB billing and no upfront infrastructure cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:34.149Z","isFirstParty":false}