Generate Content from PDF
API Reference
Generate Content from PDF
Create a content generation job from a PDF file
POST
Generate Content from PDF
Endpoint
Authentication
Requires API key inx-api-key header.
Request
This endpoint acceptsmultipart/form-data for file upload.
PDF file to process (max 10MB, must be application/pdf)
Content format. Options:
image, carousel, reelVisual style template. Options:
infographic, screenshot, meme, minimal, magazine, neon, newsTarget platform. Options:
instagram, tiktok, youtube_shortsNumber of slides for carousel format (as string). Range: “1”-“5”. Only applicable when
format is carouselMaximum video duration in seconds (as string). Range: “15”-“180”. Only applicable when
format is reelCustom instructions for content generation
Enable captions for video reels. Use
"true" or "false". Only applicable when format is reelCaption style. Options:
modern, minimal. Requires captionsEnabled: "true"Caption position. Options:
bottom, center. Requires captionsEnabled: "true"Caption font size. Options:
small, medium, large. Requires captionsEnabled: "true"Additional style variant for customization
Response
Indicates if the request was successful
Human-readable status message
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
pdfandformatare 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
jobIdto check status and retrieve results - PDF content is extracted and transformed into social media content using AI