Generate Highlights from Transcription Job
Video Summary and Transcription
Generate Highlights from Transcription Job
Generate AI-powered video highlights from a completed transcription job
POST
Generate Highlights from Transcription Job
Documentation Index
Fetch the complete documentation index at: https://docs.pictory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Generate concise video highlights from a completed transcription job using AI-powered extraction. This endpoint analyzes the transcript from your transcription job and identifies the most important segments to create a summary of your desired duration. What you will accomplish:- Extract key highlights from completed transcription jobs
- Generate summaries of specific durations
- Receive webhook notifications when processing completes
- Create engaging short-form content from long videos
You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.
This endpoint requires a completed transcription job. First use the Video Transcription API to generate a transcript, then use the returned
jobId with this endpoint.Request Headers
API key for authentication
Must be set to
application/jsonPath Parameters
The unique identifier of the transcription job. This is the job ID returned from the Video Transcription API.Example:
95333422-8e76-4962-812b-5b6d7276451aBody Parameters
Target duration for the video summary in seconds. The AI will select highlights that fit within this duration.Example:
30 for a 30-second summary, 60 for a 1-minute summaryWebhook URL where the summary results will be posted when processing completes. The webhook will receive a POST request with the summary data.Example:
https://your-domain.com/api/webhooks/highlightsLanguage code for the transcript content.Supported values:
en (English), es (Spanish), fr (French), de (German), it (Italian), pt (Portuguese), ja (Japanese), ko (Korean), zh (Chinese), ar (Arabic), hi (Hindi), ru (Russian), and more.Example: en for English, es for SpanishResponse
Indicates whether the request was successfully queued for processing
Contains the job information
Response Examples
Job Status Response (via Get Job API)
While the highlights job is processing:Code Examples
Usage Notes
Async Processing: This endpoint processes highlights asynchronously. You will receive a
jobId immediately, and the actual highlights will be generated in the background.Best Practices
- Wait for Transcription: Always check that the transcription job status is “completed” before calling this endpoint
- Webhook Implementation: Use webhooks instead of polling for better performance and user experience
- Duration Selection: Choose highlight duration based on your target platform (e.g., 15-30s for TikTok, 60s for YouTube Shorts)
- Error Handling: Implement retry logic for 4004 errors if the transcription is still processing
Related Endpoints
- Video Transcription API - Generate the transcription job first
- Generate Highlights from Custom Transcript - Use edited transcript instead
- Get Job by ID - Check job status and retrieve results
