Carousel-API für Automatisierungsplattformen

Automatisieren Sie die Karussell-Erstellung mit der Content Generation API von PostNitro

Integrieren Sie unsere KI-gestützte Karussell-API, um Social-Media-Inhalte in großem Umfang zu generieren. Perfekt für Automatisierungsplattformen, Marketingtools und Content-Management-Systeme.

Kostenloser Plan verfügbar | Keine Kreditkarte erforderlich

So funktioniert es

Step 1

Inhalt senden

Führen Sie einen einfachen API-Aufruf mit Ihrem Inhalt, Thema oder Ihrer URL durch. Unser System verarbeitet Ihre Anfrage sofort.

Step 2

Fortschritt überwachen

Verfolgen Sie den Generierungsstatus in Echtzeit. Lassen Sie sich über Webhooks benachrichtigen, wenn Ihr Karussell bereit ist.

Step 3

Ergebnisse herunterladen

Rufen Sie Ihr fertiges Karussell in mehreren Formaten ab, bereit zur Veröffentlichung oder Planung auf allen Plattformen.

API-Dokumentation anzeigen

Schnelle Integration

Fügen Sie Ihrer Plattform in wenigen Minuten die Karussell-Generierung hinzu

Sehen Sie, wie einfach die Integration unserer API ist. Dieses Beispiel zeigt die grundlegende Karussell-Erstellung mithilfe unserer Endpunkte zur Inhaltsgenerierung.

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"
    }'
Vollständige Dokumentation anzeigen