Upload, optimize, and manage media files for social publishing. Automatic format conversion and platform-specific optimization.
No credit card required · Full API access
Features
Upload images and videos directly via multipart form data. Receive a stable media ID you can reference in any number of future posts across all platforms.
Pass a public URL and RelayAPI fetches, validates, and stores the file for you. Ideal for pulling assets from your CMS, DAM, or CDN without an extra download step.
Every upload is automatically resized and compressed to meet each target platform's requirements — Instagram's square crops, Twitter's aspect ratios, LinkedIn's resolution limits — all handled server-side.
Upload in any common format and RelayAPI converts as needed. WebP to JPEG for platforms that don't support it, MOV to MP4 for broader compatibility, and animated GIF to video where required.
Video uploads automatically generate multiple thumbnail options at key frames. Select a thumbnail via the API or let the platform choose the best one.
Browse, search, tag, and organize all uploaded media through the API. Filter by type, upload date, usage status, or custom tags to keep your asset library under control.
All media is served from Cloudflare's global CDN with edge caching across 300+ locations. Your assets load fast regardless of where your audience is.
Automatically extract EXIF data, dimensions, duration, codec information, and color profiles. Use metadata to build smart media selectors or audit your library.
Sign up and generate your credentials in seconds.
Link platforms via OAuth with our guided setup flow.
Use the API to publish, manage, and track content everywhere.
Building a media pipeline that handles format conversion, resizing for 21 platforms, and CDN delivery is a massive undertaking. RelayAPI gives you all of it through a single upload endpoint.
Media is stored on Cloudflare R2 with 99.999999999% durability and served from a global CDN with 99.9% uptime. Your files are safe and always accessible.
Simple multipart upload, presigned URL support, comprehensive SDKs, and detailed API docs. Handle media in your app the way it should work — without fighting platform quirks.
Quick start
curl -X POST https:"color:#857f73">//api.relayapi.dev/v1/media \
-H "Authorization: Bearer rlay_live_xxxxxxxx" \
-F "file=@./product-hero.png" \
-F "alt_text=Product hero image showing the new dashboard" \
-F "tags=product,launch,2026"Images: JPEG, PNG, WebP, GIF, BMP, TIFF, SVG, and HEIC. Videos: MP4, MOV, WebM, AVI, and MKV. Audio: MP3, AAC, WAV, and OGG. If you upload a format a specific platform doesn't support, RelayAPI automatically converts it to a compatible format.
Images up to 20 MB, videos up to 1 GB, and audio up to 50 MB per file. If your video exceeds 100 MB, use the resumable upload endpoint which supports chunked uploads with automatic retry on interrupted connections.
When you upload a file, RelayAPI generates platform-optimized variants in the background. For example, an uploaded 4K image might produce a 1080x1080 Instagram variant, a 1600x900 Twitter card variant, and a 1200x627 LinkedIn variant — each compressed to the ideal quality/size balance for that platform.
Media files are stored indefinitely on active plans. Files are served from Cloudflare R2 with 11 nines of durability. If you delete a media item via the API, it is permanently removed within 24 hours including all generated variants.
Yes. Every uploaded file is automatically served through Cloudflare's global CDN with edge caching in 300+ cities. Media URLs support cache-control headers and you can purge the cache for any file instantly via the API.
Get your API key and publish across 21 platforms in minutes.