Skip to main content
POST
Generate Content from PDF

Endpoint

Authentication

Requires API key in x-api-key header.

Request

This endpoint accepts multipart/form-data for file upload.
file
required
PDF file to process (max 10MB, must be application/pdf)
string
required
Content format. Options: image, carousel, reel
string
Visual style template. Options: infographic, screenshot, meme, minimal, magazine, neon, news
string
Target platform. Options: instagram, tiktok, youtube_shorts
string
Number of slides for carousel format (as string). Range: “1”-“5”. Only applicable when format is carousel
string
Maximum video duration in seconds (as string). Range: “15”-“180”. Only applicable when format is reel
string
Custom instructions for content generation
string
Enable captions for video reels. Use "true" or "false". Only applicable when format is reel
string
Caption style. Options: modern, minimal. Requires captionsEnabled: "true"
string
Caption position. Options: bottom, center. Requires captionsEnabled: "true"
string
Caption font size. Options: small, medium, large. Requires captionsEnabled: "true"
string
Additional style variant for customization

Response

boolean
Indicates if the request was successful
string
Human-readable status message
object

Example Request

Example Response

Error Responses

Notes

  • Maximum file size is 10MB
  • Only PDF files are accepted (validated by MIME type)
  • All form fields except pdf and format are optional
  • Number fields (slideCount, maxDuration) must be sent as strings in form data
  • Boolean fields (captionsEnabled) must be sent as "true" or "false" strings
  • Jobs are processed asynchronously. Use the returned jobId to check status and retrieve results
  • PDF content is extracted and transformed into social media content using AI