AI 驱动的社交媒体轮播图生成器
简介
基于 PostNitro.ai 官方 API,将文本转化为 LinkedIn、Instagram 等专业轮播图,支持 AI 生成与手动编辑,降低社交媒体内容创作门槛。
原始描述
Generate professional social media carousel posts using the PostNitro.ai Embed API. Supports AI-powered content generation and manual content import for Link...
通过你的 Agent 添加
安装目录:postnitro-carousel/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
PostNitro Carousel Generator 通过官方 Embed API 提供两种工作流创建社交媒体轮播图:
AI智能生成模式:用户仅需提供主题、文章URL或文本,AI自动拆解内容生成完整轮播。调用 /post/initiate/generate 端点,需配置 aiGeneration.type 为 text/article/topic,支持自定义风格指令。适合快速批量生产内容,每幻灯片消耗2积分。
手动内容导入模式:用户完全掌控每页内容,通过结构化JSON定义 starting_slide(封面)、body_slide(内容页)、ending_slide(结尾CTA),支持自定义标题、描述、图片及背景。调用 /post/initiate/import,每幻灯片仅消耗1积分,性价比更高。
异步处理流程:所有请求均需三步完成——①发起生成获取 embedPostId → ②轮询 /post/request-status 状态(建议3-5秒间隔)→ ③调用 /post/output 下载。输出支持PNG(单图数组,适合直接社媒发布)或PDF(单文档,适合打印存档)。
显著优点
- 平台原生优化:内置LinkedIn专业长文、Instagram视觉叙事、TikTok快节奏、X数据驱动四种内容策略模板,降低跨平台适配成本
- 成本可控灵活:免费档5积分/月即可试水,付费$10/月起获250+积分;手动模式比AI模式节省50%积分消耗
- 品牌一致性:通过
brandId和templateId锁定视觉规范,确保多账号/多运营人员输出统一调性 - 无代码友好:纯环境变量配置,curl示例即开即用,非技术用户5分钟完成首条轮播
- 纯文档零风险:无本地执行代码,API密钥全程用户托管,不存在供应链投毒或权限滥用
局限性与潜在缺点
- 积分制成本敏感:重度用户(日均1条10页AI轮播)月消耗约600积分,免费/低价档位难以支撑规模化运营
- 异步流程延迟:高峰期或复杂模板可能出现数十秒等待,不适合实时交互场景
- 模板依赖性强:视觉风格受限于PostNro官方模板库,高度定制化需求可能无法满足
- 环境变量门槛:四项必需配置(API Key、Template ID、Brand ID、Preset ID)对纯新手存在认知负担
- 第三方服务绑定:内容生成依赖PostNitro服务可用性,无离线降级方案
适合人群
- 社交媒体运营者/Marketer:需批量生产LinkedIn/Instagram专业内容
- 内容创作者/知识博主:将长文、播客、视频转化为可传播的轮播卡片
- 初创企业品牌团队:快速建立统一视觉内容体系,无设计资源背景
- 自动化工作流搭建者:通过API将内容生产嵌入Notion→PostNitro→Buffer等Pipeline
常规风险提示
| 风险类型 | 说明 | 缓解建议 |
|---|---|---|
| API密钥泄露 | 密钥硬编码或误提交至GitHub | 严格使用环境变量,定期轮换密钥 |
| 积分耗尽中断 | 免费档5积分极易超限 | 监控用量,设置用量预警;关键任务预留付费档位 |
| 品牌合规争议 | AI生成内容可能含版权敏感素材 | 商用前人工审核,优先使用手动导入控制信源 |
| 服务可用性 | 第三方API单点故障 | 核心业务保留人工设计备用方案 |
安全评级S级源于纯文档架构无执行风险,但用户仍需承担API密钥保管及第三方服务依赖的常规责任。
技能正文
name: postnitro-carousel description: > Generate professional social media carousel posts using the PostNitro.ai Embed API. Supports AI-powered content generation and manual content import for LinkedIn, Instagram, TikTok, and X (Twitter) carousels. Use this skill whenever the user wants to create a carousel, social media post, slide deck for social media, multi-slide content, or mentions PostNitro. Also trigger when the user asks to turn text, articles, blog posts, or topics into carousel posts, or wants to automate social media content creation. Outputs PNG images or PDF files. Requires a PostNitro API key. metadata: openclaw: emoji: "🎠" requires: envs: - POSTNITRO_API_KEY - POSTNITRO_TEMPLATE_ID - POSTNITRO_BRAND_ID - POSTNITRO_PRESET_ID
PostNitro Carousel Generator
Create stunning social media carousel posts via the PostNitro.ai Embed API. Supports two workflows: AI-powered generation (provide a topic and let AI create content) and content import (provide your own slide content with full control).
Prerequisites
The user must set the following environment variables:
POSTNITRO_API_KEY— Obtained from PostNitro.ai account settings under "Embed".POSTNITRO_TEMPLATE_ID— The ID of a carousel template from their PostNitro account.POSTNITRO_BRAND_ID— The ID of a brand profile from their PostNitro account.POSTNITRO_PRESET_ID— (Required for AI generation) An AI preset ID configured in their PostNitro account.
If the user doesn't have these, direct them to https://postnitro.ai to sign up (free plan available with 5 credits/month).
API Reference
Base URL: https://embed-api.postnitro.ai
Authentication: All requests require the header embed-api-key: $POSTNITRO_API_KEY.
Content-Type: Always application/json.
Workflow Overview
All carousel creation is asynchronous:
- Initiate — Call
/post/initiate/generateor/post/initiate/import→ receive anembedPostId - Poll Status — Call
/post/request-statuswith theembedPostIduntil status is complete - Get Output — Call
/post/outputwith theembedPostIdto download the result
Endpoint 1: AI-Powered Generation
POST /post/initiate/generate
Use when the user provides a topic, article URL, or text and wants AI to create carousel content.
{
"postType": "CAROUSEL",
"templateId": "<template-id>",
"brandId": "<brand-id>",
"presetId": "<ai-preset-id>",
"responseType": "PNG",
"aiGeneration": {
"type": "<generation-type>",
"context": "<topic, text, or article URL>",
"instructions": "<optional style/tone instructions>"
}
}
aiGeneration.type values:
"text"— Generate from user-provided text"article"— Generate from an article URL or long-form content"topic"— Generate from a topic description
responseType values:
"PNG"— Individual images per slide (best for social media posting)"PDF"— Single PDF document with all slides
Credit cost: 2 credits per slide (AI generation).
Endpoint 2: Content Import
POST /post/initiate/import
Use when the user provides their own slide content (headings, descriptions, images).
{
"postType": "CAROUSEL",
"templateId": "<template-id>",
"brandId": "<brand-id>",
"requestorId": "<optional-tracking-id>",
"responseType": "PNG",
"slides": [
{
"type": "starting_slide",
"heading": "Title Text",
"sub_heading": "Subtitle Text",
"description": "Description text",
"cta_button": "Call to Action",
"image": "https://example.com/image.jpg",
"background_image": "https://example.com/bg.jpg"
},
{
"type": "body_slide",
"heading": "Slide Heading",
"description": "Slide body text",
"image": "https://example.com/image.jpg"
},
{
"type": "ending_slide",
"heading": "Final Slide Title",
"sub_heading": "Closing Subtitle",
"description": "Closing message",
"cta_button": "Take Action",
"image": "https://example.com/logo.png",
"background_image": "https://example.com/bg.jpg"
}
]
}
Slide types:
"starting_slide"— First slide (title/intro). Supports:heading,sub_heading,description,cta_button,image,background_image."body_slide"— Middle content slides. Supports:heading,description,image."ending_slide"— Last slide (CTA/closing). Supports:heading,sub_heading,description,cta_button,image,background_image.
All slide fields are optional. Use image for foreground images and background_image for slide backgrounds. Image values must be publicly accessible URLs.
Credit cost: 1 credit per slide (user-provided content).
Endpoint 3: Check Request Status
POST /post/request-status
{
"embedPostId": "<post-id-from-initiate-response>"
}
Poll this endpoint every 3–5 seconds until the response indicates the post is ready.
Endpoint 4: Get Output
POST /post/output
{
"embedPostId": "<post-id-from-initiate-response>"
}
Returns the generated carousel. For PNG responseType, returns an array of image URLs/blobs (one per slide). For PDF, returns a single document.
Step-by-Step Usage
Creating an AI-Generated Carousel
- Confirm the user has set
POSTNITRO_API_KEY,POSTNITRO_TEMPLATE_ID,POSTNITRO_BRAND_ID, andPOSTNITRO_PRESET_ID. - Ask the user for their topic/content and any style preferences.
- Send the generate request:
curl -X POST 'https://embed-api.postnitro.ai/post/initiate/generate' \ -H 'Content-Type: application/json' \ -H "embed-api-key: $POSTNITRO_API_KEY" \ -d '{ "postType": "CAROUSEL", "templateId": "'"$POSTNITRO_TEMPLATE_ID"'", "brandId": "'"$POSTNITRO_BRAND_ID"'", "presetId": "'"$POSTNITRO_PRESET_ID"'", "responseType": "PNG", "aiGeneration": { "type": "topic", "context": "User topic here", "instructions": "User style instructions here" } }' - Extract the
embedPostIdfrom the response. - Poll status until complete:
curl -X POST 'https://embed-api.postnitro.ai/post/request-status' \ -H 'Content-Type: application/json' \ -H "embed-api-key: $POSTNITRO_API_KEY" \ -d '{"embedPostId": "'"$EMBED_POST_ID"'"}' - Retrieve the output:
curl -X POST 'https://embed-api.postnitro.ai/post/output' \ -H 'Content-Type: application/json' \ -H "embed-api-key: $POSTNITRO_API_KEY" \ -d '{"embedPostId": "'"$EMBED_POST_ID"'"}'
Creating a Carousel from User Content
- Confirm the user has set
POSTNITRO_API_KEY,POSTNITRO_TEMPLATE_ID, andPOSTNITRO_BRAND_ID. - Gather slide content from the user (or generate it based on context).
- Structure slides using the
starting_slide→body_slide(s) →ending_slidepattern. - Send the import request and follow the same poll → output flow as above.
Content Strategy Tips
When helping users craft carousel content:
- LinkedIn: Professional tone, actionable insights, 6–10 slides, end with a clear CTA.
- Instagram: Visual-first, concise text, 5–8 slides, storytelling arc.
- TikTok: Trendy, punchy, 4–7 slides, hook on slide 1.
- X (Twitter): Data-driven, 3–6 slides, provocative opening.
Error Handling
- If the API returns an authentication error, verify
POSTNITRO_API_KEYis correct and the account is active. - If credits are exhausted, inform the user. Free plan: 5 credits/month. Paid plan: 250+ credits/month.
- If the status poll indicates failure, retry the initiation once before reporting the error.
- All endpoints are rate-limited per API key — space requests appropriately.
Pricing Quick Reference
| Plan | Price | Credits/Month | Notes |
|---|---|---|---|
| Free | $0/month | 5 | Default when API key generated |
| Monthly | $10/month | 250+ | Scalable multiplier (1–100) |
- 1 credit = 1 slide (user content import)
- AI generation = 2 credits per slide
Links
- Documentation: https://postnitro.ai/docs/embed/api
- Get API Key: https://postnitro.ai/app/embed
- Postman Collection: https://www.postman.com/postnitro/postnitro-embed-apis/overview
- Support: support@postnitro.ai
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。