Images Videos Audio Pricing Docs View as Markdown (Agent) Get started
Human Agent
← Back to blog

How marketing teams can build a media pipeline for social content

Campaign media ends up scattered across shared drives, chat threads, AI tools and a scheduler's upload dialog, and every channel gets its own copy. A small media pipeline fixes that: collect or generate the files, host each one once on PixelVault, then let Social Champ schedule and publish them.

Image, video and audio tiles passing through a vault and emerging as linked URLs that fill a social media posting calendar
This hero is hosted on PixelVault itself, on the same kind of img.pixelvault.dev URL the pipeline below hands to a scheduler.

An agency's week produces a lot of media: square and portrait images, 15-second video cuts, a voiceover or a podcast clip, and the AI-generated variants nobody wants to redo. Each file has to reach a social scheduler, usually also a landing page, an email and a client report. When every one of those is a fresh upload, you get "final_v3" files, links that stop working, and no answer to "which version went out?".

The fix is to separate two jobs that tools often blur: hosting the file and distributing it. PixelVault is the hosting layer. Social Champ is the distribution layer. They do different things and work well in sequence.

The pipeline in three stages

StageWhat happensWhere
1. Collect or generateDesigners export, editors render, an AI model produces variants, someone records a clipYour design, video and AI tools
2. HostOne upload per file returns a stable URL, filed by client and campaignPixelVault (API, SDK, CLI)
3. DistributeCompose, adapt per network, queue, approve, publish, reportSocial Champ

PixelVault does not connect to social networks or schedule posts, and it is not trying to. Social Champ is built for that part: one composer for 12+ platforms, queues, a drag-and-drop calendar, approvals, and white-label reports. Use each for what it does, and the handoff between them is a list of URLs.

Stage 1: Collect or generate the assets

Keep one folder per campaign on disk, with a subfolder per media type. The structure matters because the next stage reads it:

Campaign folder
campaigns/acme-spring/ images/ hero-square.jpg carousel-01.jpg carousel-02.jpg video/ teaser-15s.mp4 audio/ founder-clip.mp3
  • Images. Export a JPEG master per asset. If you generate with AI, PixelVault can generate and host an image in one call, or you can host output from any model before the provider's temporary link expires.
  • Short video. Export MP4 with H.264 video and AAC audio. Plan limits are 25 MB on Free, 100 MB on Starter and 250 MB on Pro per MP4. For quick one-off links without code, try the free Video to URL or MP4 to URL converter.
  • Audio clips. MP3, WAV, M4A or OGG up to 25,000,000 bytes (about 23.8 MiB). PixelVault hosts the original bytes without converting or editing them — or test a clip in the browser with Audio to URL and MP3 to URL.

One caution about audio: most social networks do not publish a bare audio file as a post. In practice an audio clip reaches social one of two ways: rendered into an MP4 audiogram in your video editor (then hosted as video), or linked from a caption, landing page or newsletter. Hosting the original gives you the URL for the second case and a clean source for the first.

Stage 2: Host everything on PixelVault

Register for an API key and upload. You can try one image upload without a key, but a keyless upload is temporary and expires after 30 days, so treat it as a test, not as campaign hosting. Video uploads need a secret key and a verified email, and audio uploads need a secret key, so campaign work should use a key from the start.

From a terminal, the CLI covers all three media types:

CLI
export PIXELVAULT_API_KEY=pv_live_xxx # Images: one URL per line on stdout npx pixelvault-cli upload campaigns/acme-spring/images/*.jpg --folder acme-spring # Video: waits for the social-ready copy, then prints the URL to post npx pixelvault-cli upload campaigns/acme-spring/video/teaser-15s.mp4 --social # Audio: original bytes, served unchanged npx pixelvault-cli audio upload campaigns/acme-spring/audio/founder-clip.mp3

For a whole campaign folder, a short script using the JavaScript SDK uploads every file, files it under the campaign name, tags it with metadata, and writes a manifest CSV of file, kind, url. That manifest is the handoff to the next stage. We ran this script against the live API before publishing it.

host-campaign.mjs
// host-campaign.mjs. Node 20+, npm install @pixelvault-dev/sdk import { readdir, readFile, writeFile } from "node:fs/promises"; import { basename, extname, join } from "node:path"; import { PixelVault } from "@pixelvault-dev/sdk"; const pv = new PixelVault(); // reads PIXELVAULT_API_KEY const dir = process.argv[2]; // e.g. campaigns/acme-spring const campaign = basename(dir); const TYPES = { ".jpg": ["image", "image/jpeg"], ".png": ["image", "image/png"], ".mp4": ["video", "video/mp4"], ".mp3": ["audio", "audio/mpeg"], ".m4a": ["audio", "audio/mp4"], ".wav": ["audio", "audio/wav"], ".ogg": ["audio", "audio/ogg"], }; const rows = [["file", "kind", "url"]]; for (const file of (await readdir(dir, { recursive: true })).sort()) { const type = TYPES[extname(file).toLowerCase()]; if (!type) continue; const [kind, contentType] = type; const base = { file: await readFile(join(dir, file)), filename: basename(file), folder: campaign, // one folder per campaign metadata: { campaign, source: file }, // searchable later }; let url; if (kind === "image") { url = (await pv.images.upload({ ...base, contentType })).url; } else if (kind === "video") { const video = await pv.videos.upload({ ...base, socialReady: true }); const { video: done } = await pv.videos.waitForOptimization(video.id); url = done.social_ready_url ?? done.original_url; // the copy to post } else { url = (await pv.audio.upload({ ...base, contentType })).original_url; } rows.push([file, kind, url]); console.log(kind, url); } const quote = (c) => '"' + c.replaceAll('"', '""') + '"'; await writeFile(campaign + "-urls.csv", rows.map((r) => r.map(quote).join(",")).join("\n") + "\n");

Two details worth knowing. For video, socialReady: true asks PixelVault for a separate H.264/AAC fast-start copy; the original is stored unchanged and the script prefers the copy. The social-ready video guide explains the compatibility warnings returned when a file is not ready to post. And images are served from a URL that includes the folder, while video and audio use the asset ID. The folder and metadata are for finding things later, not part of every URL, so filter with them: see organize media.

Rerunning the script uploads every file again. Once it runs unattended, add idempotency keys; retry-safe uploads covers the pattern.

One master, the right crop for each placement

Do not re-export a file for every placement. An image URL accepts transform parameters, so one hosted JPEG master can serve each format the channels want:

PlacementAppend to the URLResult
Square feed post?size=square&fmt=jpg1080×1080 JPEG
Portrait 4:5 feed post?size=portrait&fmt=jpg1080×1350 JPEG
Link-preview or landscape card?size=social&fmt=jpg1200×630 JPEG

Transforms fail open: if one cannot be produced, the original is served instead, so check the result before you schedule. The image transforms post and the transform reference list every parameter. For per-network size and format rules, Social Champ publishes its own recommended formats and sizes.

Stage 3: Schedule and publish with Social Champ

With the manifest in hand, the work moves to Social Champ, where the team does what a scheduler is for:

  • Bulk-schedule from a CSV. Social Champ's Bulk Upload takes a CSV template and can queue hundreds of posts at once. Its guide documents an Image URL column, and a carousel is several image URLs separated by commas. Paste the hosted URLs from your manifest into the matching media columns of the template you download from the Bulk Upload screen, and check the template for how it handles video.
  • Or compose by hand. Write a post once, adjust it for each network, and attach media in the composer. Audio clips go in the caption or a link as described above.
  • Keep clients separate. Workspaces per client, roles with approvals so nobody shares a client's login, and a calendar that shows scheduled, published and failed posts.
  • Label and report. Post labels group posts by campaign, and the analytics export to CSV or white-label PDF reports.

Social Champ also has its own Media Library for storing images, videos and GIFs inside the tool, and integrations with Google Drive, Dropbox, Canva and others. That is a fine place for working files. The difference is reach: a PixelVault URL is also what your website, email, ad platform, docs and AI agents use, so the same hosted file serves all of them.

Social Champ features on this page were last re-read against its website and help docs on 19 November 2026.

Who does what

PixelVaultSocial Champ
RoleHosting layerDistribution layer
Core jobStore media and return a stable URLSchedule and publish to social channels
MediaImages, MP4 video, original audioImages, video and GIFs in posts
InterfaceREST API, SDKs, CLI, MCP, n8nWeb app, mobile apps, CSV bulk upload
Organised byFolder, metadata, projectWorkspace, label, queue, calendar
OutputA URL usable anywhereA published post and its report

Check the handoff before you schedule

Scheduling means the file is used later, sometimes days later, by a system you do not control. Whether a tool copies a file when you import it or fetches the URL when the post goes out depends on the tool and the import path, so verify rather than assume:

Verify
# Every URL in the manifest should answer 200 with the right type curl -sI "https://img.pixelvault.dev/proj_xyz789/vid_abc123.mp4" \ | grep -iE "^(HTTP|content-type|accept-ranges)" # HTTP/2 200 # content-type: video/mp4 # accept-ranges: bytes
  • Open the URL in a private browser window. If it needs a login, the scheduler cannot fetch it either.
  • Schedule one post per channel first and look at the published result before queuing the month.
  • Keep scheduled assets public. A private asset's signed link expires, which is useful for a client review link and wrong for a post that publishes next Thursday.
  • Use expires_in only on assets that should disappear, such as a promo that ends. It deletes the file after the time you set, at the next hourly sweep, so never set it shorter than the schedule. See expiry and retention.

Run it per client without extra work

Folders and metadata give you a campaign-level view inside a project. For clients who need hard separation, projects isolate keys, media and usage: Free has one project, Starter three and Pro ten. Starter includes one custom domain and Pro three, so media can be served from a hostname you control. Video is the part to watch on a busy account: videos count against the same storage and bandwidth allowances as images, with no egress fees on top.

The upload step is easy to automate. A coding agent with the PixelVault skill, the MCP server or the n8n node can run it, while a person still reviews and approves in Social Champ. If you use a different scheduler, the same pattern applies; we covered Buffer and Zernio too.

Free to start

PixelVault's free tier includes 200 MB storage, 500 uploads/month, and 1 GB bandwidth — no credit card, zero egress. Enough to run a few campaigns through the pipeline before you pay anything, and paid plans start at $9/month. Register for an API key to keep what you upload; a keyless upload expires after 30 days. Start from the API quickstart →. Free-plan images left unused for a long time may be cleaned up (the rule); paid plans keep everything.