Generate video summary
This endpoint allows you to generate the summary for an existing media.
#### How it works
1. Send a `PATCH` request to this endpoint, replacing `<mediaId>` with the ID of the media you want to summarize.
2. Include the `generate` parameter in the request body.
3. Include the `summaryLength` parameter, specify the desired length of the summary in words (for example, 120 words), this determines how concise or detailed the summary will be. If no specific summary length is provided, the default length will be 100 words.
4. The response includes the updated media data and confirmation of the changes applied.
You can use the <a href="https://fastpix.com/docs/webhooks/in-video-ai-events#videomediaaisummaryready">video.mediaAI.summary.ready</a> webhook event to track and notify about the summary generation.
**Use case**: This is particularly useful when a user uploads a video and later chooses to generate a summary without needing to re-upload the video.
Related guide: <a href="https://fastpix.com/docs/in-video-ai/generate-a-video-summary">Video summary</a>
Authentication
AuthorizationBasic
FastPix APIs are secured with Basic Authentication.
Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
- <b>Username:</b> Access Token ID
- <b>Password:</b> Secret Key
Activate your FastPix account to generate your API credentials. <a href="https://fastpix.com/docs/getting-started/activate-your-account" target="_blank">See the guide here</a>
Path parameters
mediaId
The unique identifier assigned to the media when created. The value must be a valid UUID.
Request
This endpoint expects an object.
generate
Enable or disable the summary feature for the media. Set to true to enable summary or false to disable.
summaryLength
Specifies the desired word count for the generated summary.
- The value must be between **30** and **250** words.
Response
Media details updated successfully with the generated summary
success
Shows the request status. Returns true for success and false for failure.
data