/ads publish — Push creatives to socials via Zernio
Pricing: Zernio is free for the first 2 connected social accounts (no
credit card). Solo users posting to Instagram + Facebook = $0/mo forever.
Agencies pay $1–$6/mo per additional account (see "Pricing tiers" below).
X/Twitter API costs are metered pass-through even on the free tier; all
other 13 networks are fully included up to your account quota.
When to use this
After /ads generate (image ad creatives) or /ads photoshoot (product
photography) produces an ad-assets/ directory, /ads publish takes those
files and schedules them as posts on every social network you've connected
in Zernio. Supported: Twitter/X · Instagram · Facebook · LinkedIn · TikTok ·
YouTube · Pinterest · Reddit · Bluesky · Threads · Google Business ·
Telegram · Snapchat · WhatsApp · Discord.
Process
- Verify prerequisites. Confirm:
ZERNIO_API_KEY is set (see "Auth setup" below).
ad-assets/ exists or the user passed --assets <dir>.
- Optionally,
campaign-brief.md exists (the script will extract per-platform captions from it).
- Discover assets. List images and videos in the assets directory. For each, infer compatible platforms from the filename aspect-ratio hint (
9x16, 1x1, 16x9, 1.91x1).
- Plan the publication. Show the user a table: per asset, which platforms it would go to, the caption length, and the scheduling time. Ask the user to confirm before calling Zernio (unless
--dry-run). If twitter or x is in the target platforms list, surface the X/Twitter pass-through cost note before posting — those posts incur metered Twitter API charges on top of any Zernio tier; the other 13 networks are free up to the account quota.
- Call
scripts/zernio_publish.py. Use Bash with the user's selected platforms and the optional --schedule flag.
- Report results. Read the JSON output, show what was published vs. errored, and surface any rate-limit or auth issues clearly. If anything was scheduled (vs. posted immediately), remind the user of when posts will go live.
Auth setup
- Sign up at https://zernio.com — first 2 accounts are always free, no credit card. Confirm at https://zernio.com/pricing.
- Dashboard → API Keys → create a key (
sk_<64-hex-chars>). Keys are shown once.
- For each social network you want to publish to, complete the OAuth flow in Zernio's dashboard at
/connect/<platform>. Zernio handles the per-network OAuth — you don't need to manage Twitter/Meta/LinkedIn tokens yourself. Each social network you connect counts as one of your "accounts" toward the free quota.
- Export:
export ZERNIO_API_KEY='sk_...'
Pricing tiers
| Accounts connected |
Price per account / month |
| First 2 |
$0 (free forever) |
| 3–10 |
$6 |
| 11–100 |
$3 |
| 101–2,000 |
$1 |
| 2,001+ |
Custom |
Important caveat: X/Twitter API costs are metered pass-through at
X's published rates regardless of your Zernio tier. All other 13
platforms (Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest,
Reddit, Bluesky, Threads, Google Business, Telegram, Snapchat,
WhatsApp, Discord) are fully included.
Without Zernio (alternative for 3+ accounts)
The free 2-account quota covers the typical solo user. If you manage
3+ social accounts (an agency setup) and don't want to pay Zernio's
per-account fee, run /ads publish --dry-run to get the plan
(which asset goes to which network with which caption) and then
publish manually using each platform's native scheduler:
- Meta Business Suite: free, supports Facebook + Instagram scheduling.
- LinkedIn Page Posts → schedule from the composer.
- TikTok Business Suite: free scheduling for organic posts.
- Buffer / Hootsuite free tiers: limited but functional.
Same plan, zero recurring cost — just more clicks per post.
Asset-to-platform matching
| Aspect |
Platforms |
| 9:16 (vertical) |
Instagram Stories/Reels, TikTok, YouTube Shorts, Snapchat, Facebook Stories |
| 1:1 (square) |
Instagram Feed, Facebook Feed, LinkedIn, Pinterest, X/Twitter |
| 16:9 (horizontal) |
YouTube, X/Twitter, LinkedIn, Facebook |
| 1.91:1 (landscape) |
LinkedIn Single Image, Facebook link previews |
The script reads the filename's aspect token (e.g. hero_9x16.png,
product_1x1.jpg) to decide. Override with --platforms <list>.
Caption extraction from brief
If campaign-brief.md exists, the script parses sections like
## Instagram caption, ## TikTok caption, etc. and uses each as the
caption for that platform. A ## Default caption section is used as
fallback for any platform without a specific one.
Output
/ads publish writes a JSON report (publish-results.json) with:
{
"tool": "zernio_publish",
"dry_run": false,
"assets_found": 5,
"captions_parsed": ["instagram", "facebook", "linkedin", "default"],
"planned": [
{"asset": "ad-assets/hero_9x16.png", "platform": "instagram", "scheduled_at": "..."}
],
"published": [
{"asset": "...", "platform": "instagram", "post_id": "...", "status": "scheduled"}
],
"errors": []
}
Use it to verify what landed and what didn't.
Quality gates
- Never publish without explicit user confirmation unless
--yes was passed.
- If
--schedule is in the past, refuse and prompt for a future timestamp.
- If the caption exceeds the platform's limit (X: 280, LinkedIn: 3000, etc.),
show a warning before posting.
- Per asset: cap to ≤5 platforms per
/ads publish invocation by default
(avoids burning Zernio quota on large directories accidentally).
1---2name: ads-publish3description: Publish generated ad creatives to 14+ social networks via the Zernio API. Optional paid layer that closes the loop after /ads generate or /ads photoshoot. Use when user says publish, schedule, post, ship, Zernio, distribute, send to socials, push to Instagram/Facebook/LinkedIn/TikTok/Twitter, or auto-publish.4---56# `/ads publish` — Push creatives to socials via Zernio78> **Pricing:** Zernio is **free for the first 2 connected social accounts** (no9> credit card). Solo users posting to Instagram + Facebook = $0/mo forever.10> Agencies pay $1–$6/mo per additional account (see "Pricing tiers" below).11> X/Twitter API costs are metered pass-through even on the free tier; all12> other 13 networks are fully included up to your account quota.1314## When to use this1516After `/ads generate` (image ad creatives) or `/ads photoshoot` (product17photography) produces an `ad-assets/` directory, `/ads publish` takes those18files and schedules them as posts on every social network you've connected19in Zernio. Supported: Twitter/X · Instagram · Facebook · LinkedIn · TikTok ·20YouTube · Pinterest · Reddit · Bluesky · Threads · Google Business ·21Telegram · Snapchat · WhatsApp · Discord.2223## Process24251. **Verify prerequisites.** Confirm:26 - `ZERNIO_API_KEY` is set (see "Auth setup" below).27 - `ad-assets/` exists or the user passed `--assets <dir>`.28 - Optionally, `campaign-brief.md` exists (the script will extract per-platform captions from it).292. **Discover assets.** List images and videos in the assets directory. For each, infer compatible platforms from the filename aspect-ratio hint (`9x16`, `1x1`, `16x9`, `1.91x1`).303. **Plan the publication.** Show the user a table: per asset, which platforms it would go to, the caption length, and the scheduling time. Ask the user to confirm before calling Zernio (unless `--dry-run`). **If `twitter` or `x` is in the target platforms list, surface the X/Twitter pass-through cost note before posting** — those posts incur metered Twitter API charges on top of any Zernio tier; the other 13 networks are free up to the account quota.314. **Call `scripts/zernio_publish.py`.** Use Bash with the user's selected platforms and the optional `--schedule` flag.325. **Report results.** Read the JSON output, show what was published vs. errored, and surface any rate-limit or auth issues clearly. If anything was scheduled (vs. posted immediately), remind the user of when posts will go live.3334## Auth setup35361. Sign up at https://zernio.com — **first 2 accounts are always free, no credit card**. Confirm at https://zernio.com/pricing.372. Dashboard → API Keys → create a key (`sk_<64-hex-chars>`). Keys are shown once.383. For each social network you want to publish to, complete the OAuth flow in Zernio's dashboard at `/connect/<platform>`. Zernio handles the per-network OAuth — you don't need to manage Twitter/Meta/LinkedIn tokens yourself. Each social network you connect counts as one of your "accounts" toward the free quota.394. Export:40 ```bash41 export ZERNIO_API_KEY='sk_...'42 ```4344## Pricing tiers4546| Accounts connected | Price per account / month |47|---|---|48| **First 2** | **$0 (free forever)** |49| 3–10 | $6 |50| 11–100 | $3 |51| 101–2,000 | $1 |52| 2,001+ | Custom |5354**Important caveat:** X/Twitter API costs are metered pass-through at55X's published rates regardless of your Zernio tier. All other 1356platforms (Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest,57Reddit, Bluesky, Threads, Google Business, Telegram, Snapchat,58WhatsApp, Discord) are fully included.5960## Without Zernio (alternative for 3+ accounts)6162The free 2-account quota covers the typical solo user. If you manage633+ social accounts (an agency setup) and don't want to pay Zernio's64per-account fee, run `/ads publish --dry-run` to get the **plan**65(which asset goes to which network with which caption) and then66publish manually using each platform's native scheduler:6768- Meta Business Suite: free, supports Facebook + Instagram scheduling.69- LinkedIn Page Posts → schedule from the composer.70- TikTok Business Suite: free scheduling for organic posts.71- Buffer / Hootsuite free tiers: limited but functional.7273Same plan, zero recurring cost — just more clicks per post.7475## Asset-to-platform matching7677| Aspect | Platforms |78|--------|-----------|79| 9:16 (vertical) | Instagram Stories/Reels, TikTok, YouTube Shorts, Snapchat, Facebook Stories |80| 1:1 (square) | Instagram Feed, Facebook Feed, LinkedIn, Pinterest, X/Twitter |81| 16:9 (horizontal) | YouTube, X/Twitter, LinkedIn, Facebook |82| 1.91:1 (landscape) | LinkedIn Single Image, Facebook link previews |8384The script reads the filename's aspect token (e.g. `hero_9x16.png`,85`product_1x1.jpg`) to decide. Override with `--platforms <list>`.8687## Caption extraction from brief8889If `campaign-brief.md` exists, the script parses sections like90`## Instagram caption`, `## TikTok caption`, etc. and uses each as the91caption for that platform. A `## Default caption` section is used as92fallback for any platform without a specific one.9394## Output9596`/ads publish` writes a JSON report (`publish-results.json`) with:9798```json99{100 "tool": "zernio_publish",101 "dry_run": false,102 "assets_found": 5,103 "captions_parsed": ["instagram", "facebook", "linkedin", "default"],104 "planned": [105 {"asset": "ad-assets/hero_9x16.png", "platform": "instagram", "scheduled_at": "..."}106 ],107 "published": [108 {"asset": "...", "platform": "instagram", "post_id": "...", "status": "scheduled"}109 ],110 "errors": []111}112```113114Use it to verify what landed and what didn't.115116## Quality gates117118- Never publish without explicit user confirmation unless `--yes` was passed.119- If `--schedule` is in the past, refuse and prompt for a future timestamp.120- If the caption exceeds the platform's limit (X: 280, LinkedIn: 3000, etc.),121 show a warning before posting.122- Per asset: cap to ≤5 platforms per `/ads publish` invocation by default123 (avoids burning Zernio quota on large directories accidentally).