> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidguy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Render TikTok carousels

> Async, composites real text over real photos server-side, 1 credit per carousel. Poll GET /api/v1/jobs/{id} for per-carousel slide URLs. Supersedes POST /api/v1/carousel, which bakes text into an AI image.



## OpenAPI

````yaml /openapi.json post /api/v1/carousel-v2
openapi: 3.1.0
info:
  title: VidGuy API
  version: 1.0.0
  description: >-
    Make videos, snacks, carousels, images and audio with VidGuy, and post them
    to your connected accounts. Authenticate with a `vf_live_` key as a Bearer
    token.
servers:
  - url: https://www.vidguy.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Jobs
  - name: Credits
  - name: Brands
  - name: Snacks and memes
  - name: Videos
  - name: Carousels and slides
  - name: Images and video models
  - name: Characters
  - name: Editing
  - name: Assets
  - name: Audio
  - name: Social posting
paths:
  /api/v1/carousel-v2:
    post:
      tags:
        - Carousels and slides
      summary: Render TikTok carousels
      description: >-
        Async, composites real text over real photos server-side, 1 credit per
        carousel. Poll GET /api/v1/jobs/{id} for per-carousel slide URLs.
        Supersedes POST /api/v1/carousel, which bakes text into an AI image.
      operationId: createCarouselV2Batch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCarouselV2Request'
      responses:
        '201':
          description: Carousel batch accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCarouselV2Response'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Template not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateCarouselV2Request:
      type: object
      properties:
        templateKey:
          type: string
          minLength: 1
          maxLength: 120
          description: >-
            Built-in slug (e.g. `story-4`) or the uuid of one of your saved
            templates.
        rows:
          type: array
          items:
            type: object
            properties:
              values:
                type: object
                additionalProperties:
                  type: string
                  maxLength: 2000
                description: >-
                  Keyed by the template's variable keys, from GET
                  /api/v1/carousel-v2/templates. Unknown keys are dropped and
                  returned in `ignoredKeys`.
              caption:
                type: string
                maxLength: 3000
            required:
              - values
          minItems: 1
          maxItems: 12
          description: One carousel per entry.
        name:
          type: string
          minLength: 1
          maxLength: 120
        seed:
          type: string
          minLength: 1
          maxLength: 80
          description: >-
            Fixes collection photo picks so the same input reproduces the same
            slides.
        noRepeatScope:
          type: string
          enum:
            - row
            - batch
      required:
        - templateKey
        - rows
    CreateCarouselV2Response:
      type: object
      properties:
        jobId:
          type: string
        offeringId:
          type: string
          enum:
            - carousel_v2_batch
        batchId:
          type: string
        status:
          $ref: '#/components/schemas/ApiJobStatus'
        pollUrl:
          type: string
        creditsReserved:
          type: integer
        carousels:
          type: integer
        noRepeatScope:
          type: string
          enum:
            - row
            - batch
        ignoredKeys:
          type: array
          items:
            type: string
          description: >-
            Row keys that are not variables on this template. Reported, not
            rejected.
      required:
        - jobId
        - offeringId
        - batchId
        - status
        - pollUrl
        - creditsReserved
        - carousels
        - noRepeatScope
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - awaiting_selection
        - completed
        - failed
        - cancelled
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send your API key in the Authorization header: `Bearer vf_live_...`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.