Skip to content
Postly Documentation

Developers and AI

Generated Media and Base64 Imports

Move AI-generated images or videos straight into Postly using base64, data URLs, files, or public URLs.

Corporate-ready workflowsDevelopers and AIDeveloper and AI teams

Collection

Developers and AI

Best For

Operators, marketers, and collaborators

Workflow Focus

Move AI-generated images or videos straight into Postly using base64, data URLs, files, or public URLs.

Generated Media and Base64 Imports

This guide matters because many modern publishing workflows do not start with a file already hosted somewhere. They start with an asset generated by ChatGPT, Claude, Gemini, an internal tool, or another automation step.

What Postly can ingest

Postly can accept media from several common sources:

  • base64 payloads
  • data URLs
  • direct file uploads
  • public URLs
  • inline media imports during post creation or update

Why base64 is valuable

Base64 is useful when your system already has the media in memory. Instead of forcing a separate hosting step first, the workflow can send the media directly into Postly.

That is especially helpful for:

  • AI-generated images
  • AI-generated videos
  • server-side automation pipelines
  • CMS plugins with generated assets
  • agent workflows that already have the file bytes available

Best pattern for AI clients

If ChatGPT, Claude, or another client generates the media and still has access to it, the strongest pattern is:

  1. generate the asset
  2. keep the same turn or request flow active
  3. pass the media directly into Postly
  4. create or update the post immediately

This avoids the common failure mode where the user is asked to download, re-upload, or host the file somewhere else before publishing.

What this does not mean

It does not mean every temporary reference lasts forever. If the client loses access to the asset between steps, Postly cannot recover media it never received. That is why same-flow ingestion matters.

If the asset already has a stable public URL, that can also be a clean ingestion path. Use the format that matches the workflow you already have.

API vs MCP

Use API when

your backend, app, or automation system owns the media and the publish action.

Use MCP when

an AI assistant owns the conversation and needs scoped publishing actions inside the same governed workflow.

Good next guides

Previous guide

MCP Agent Workflows

Use scoped MCP tools so AI assistants can create, validate, schedule, and inspect campaigns safely.

Next guide

Facebook Reduce Data Error

What this Facebook-side publishing error usually means and how to respond when it appears intermittently.

Related guides