API Carousel pour les plateformes d'automatisation

Automatisez la création de carrousels avec l'API de génération de contenu de PostNitro

Intégrez notre API carrousel optimisée par l'IA pour générer du contenu pour les réseaux sociaux à grande échelle. Idéal pour les plateformes d'automatisation, les outils marketing et les systèmes de gestion de contenu.

Forfait gratuit disponible | Aucune carte de crédit requise

Comment ça marche

Step 1

Envoyer du contenu

Effectuez un simple appel API avec votre contenu, votre sujet ou votre URL. Notre système traite votre demande instantanément.

Step 2

Surveiller les progrès

Suivez l'état de génération en temps réel. Recevez des notifications lorsque votre carrousel est prêt via des webhooks.

Step 3

Télécharger les résultats

Récupérez votre carrousel terminé dans plusieurs formats, prêt à être publié ou programmé sur plusieurs plateformes.

Afficher la documentation de l'API

Intégration rapide

Ajoutez la génération de carrousel à votre plateforme en quelques minutes

Découvrez la simplicité d'intégration de notre API. Cet exemple illustre la création de carrousels simples à l'aide de nos points de terminaison de génération de contenu.

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"
    }'
Voir la documentation complète