API Carousel per piattaforme di automazione

Automatizza la creazione di caroselli con l'API di generazione di contenuti di PostNitro

Integra la nostra API Carousel basata sull'intelligenza artificiale per generare contenuti per i social media su larga scala. Ideale per piattaforme di automazione, strumenti di marketing e sistemi di gestione dei contenuti.

Piano gratuito disponibile | Non è richiesta la carta di credito

Come funziona

Step 1

Invia contenuto

Effettua una semplice chiamata API con il tuo contenuto, argomento o URL. Il nostro sistema elaborerà la tua richiesta all'istante.

Step 2

Monitorare i progressi

Monitora lo stato di generazione in tempo reale. Ricevi una notifica tramite webhook quando il tuo carosello è pronto.

Step 3

Scarica i risultati

Recupera il tuo carosello completato in più formati, pronto per essere pubblicato o programmato su più piattaforme.

Visualizza la documentazione API

Integrazione rapida

Aggiungi la generazione di caroselli alla tua piattaforma in pochi minuti

Scopri quanto è facile integrare la nostra API. Questo esempio mostra la creazione di un carosello di base utilizzando i nostri endpoint di generazione di contenuti.

Initiate Carousel Creation

Users can initiate carousel creation by either generating a new carousel or importing content into an existing carousel.

Generate with AI

To generate a carousel using AI, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/initiate/generate'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "postType": "CAROUSEL",
        "templateId": "your-template-id",
        "brandId": "your-brand-id",
        "presetId": "your-ai-preset-id",
        "responseType": "PNG",
        "aiGeneration": {
            "type": "text",
            "context": "Create a LinkedIn carousel about digital marketing tips for small businesses",
            "instructions": "Focus on actionable tips that can be implemented immediately"
        }
    }'
Import Content

To import content into a carousel, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/initiate/import'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "postType": "CAROUSEL",
        "requestorId": "your-requestor-id",
        "templateId": "your-template-id",
        "brandId": "your-brand-id",
        "responseType": "PNG",
        "slides": [
            {
                "type": "starting_slide",
                "sub_heading": "My Awesome Subtitle",
                "heading": "Welcome to the Carousel!",
                "description": "This is how you start with a bang.",
                "cta_button": "Swipe to learn more",
                "background_image": "https://example.com/background1.jpg"
            },
            {
                "type": "body_slide",
                "heading": "Section 1: The Core Idea",
                "description": "Explain your first key point here.",
                "image": "https://example.com/image1.jpg"
            },
            {
                "type": "ending_slide",
                "sub_heading": "Ready to Act?",
                "heading": "Get Started Today!",
                "description": "A final encouraging message.",
                "cta_button": "Visit Our Website",
                "image": "https://example.com/logo.png",
                "background_image": "https://example.com/background2.jpg"
            }
        ]
    }'

Understanding the ExportData type

The callback function receives an ExportData object, which contains the following properties:

export interface ExportData {
    id: string;           // Unique identifier for the content
    name: string;         // User-defined content name
    size: string;         // Aspect ratio (e.g., "16:9", "1:1", "9:16")
    type: string;         // Export format: "pdf", "png", or "mp4"
    data: Blob | Blob[];  // File data - single Blob for PDF/MP4, Blob array for PNG
}

Check Request Status

To check the status of a request, use the following cURL command:

curl 
    --location 'https://embed-api.postnitro.ai/post/request-status'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "embedPostId": "post123"
    }'

Get Output

To get the output of a request, use the following cURL command:

curl
    --location 'https://embed-api.postnitro.ai/post/output'
    --header 'Content-Type: application/json'
    --header 'embed-api-key: your-api-key'
    --data '{
        "embedPostId": "post123"
    }'
Visualizza la documentazione completa