Long videos lose viewers who cannot skip to the section they care about, and search engines cannot index topics buried inside a single timeline. FastPix solves this by generating chapter markers automatically through its in-video AI pipeline, giving each chapter a title, summary, and precise start/end timecodes. Enable chapter detection at upload time or trigger it on an existing mediaId, then retrieve the chapters through the Get Media endpoint or the video.mediaAI.chapters.ready webhook.
mediaId in your workspacevideo.mediaAI.chapters.ready eventWhen you enable chapters: true on a media, FastPix runs multimodal indexing across the visual and auditory tracks, detects topic and scene transitions, and attaches chapter markers to the media. Each chapter includes a sequence number, start and end timecodes, a title, and a short summary.
Use the create media from URL endpoint to pull a file and enable chapters in one request, or direct upload for files uploaded from a device.
Send a POST request to /on-demand with these fields:
video or audio.true to enable AI chapter detection.public or private.1080p.Request body for uploading from URL
Request body for direct upload from a device
For direct uploads, the chapters flag is set inside pushMediaSettings:
To add chapter markers to a media already in your workspace, call the generate video chapters endpoint.
mediaId of the target media.PATCH request to /on-demand/<mediaId>/chapters, replacing <mediaId> with the media identifier.Example request body
In the left navigation, go to Video > Media. On the Upload media page, add your video using one of the following methods:
The Media Settings panel opens. Select Custom settings and set "generateChapters": true in the JSON configuration. For example:
Click Continue, then click Start upload all media.
In the left navigation, go to Video > Media. Select the video you want to process from the media list to open its Media Details page.
In the left navigation of the Media Details page, click AI Chapters under In-Video AI. Click Generate to start the analysis. FastPix analyzes your video and creates chapter markers based on scene and topic changes.
When chapter generation completes, review the chapter titles and timecodes in the Chapters panel.
To retrieve chapters for a media, call the Get Media by ID endpoint.
Alternatively, subscribe to the video.mediaAI.chapters.ready webhook event, which triggers when chapter data becomes available. For the full schema and sample payload, see the Video Media AI chapters ready event.
Example event payload
The chapters array contains every chapter FastPix generated for the media. Each entry includes:
hh:mm:ss format.hh:mm:ss format.Use these fields to render chapter markers in a video player, build a table of contents, or power video segmentation in search results.
mediaId is correct when calling /on-demand/<mediaId>/chapters, otherwise the request fails.accessPolicy and maxResolution are optional but help control playback access and rendition quality.Can I edit or override the auto-generated chapters?
Yes. After FastPix generates chapters, open the InVideo AI tab for the media in the dashboard and edit the title, summary, or timecodes for any chapter. The updated values are returned by the Get Media endpoint.
How long does FastPix take to generate chapters?
Chapter generation runs after transcoding completes and scales with the media duration and audio complexity. Subscribe to the video.mediaAI.chapters.ready webhook event rather than polling so your application reacts the moment the chapters are ready.
How do I render chapter markers in a video player?
Fetch the chapters array from the Get Media endpoint or the video.mediaAI.chapters.ready event, then map each startTime onto the player’s timeline. Most HLS-compatible players accept custom cue points or a WebVTT chapter track that you can build from the startTime, endTime, and title fields.
Can I generate chapters for audio-only videos?
Yes. Set type to audio on the input and enable chapters: true. FastPix runs speech-to-text and topic detection on the audio track to produce the same chapter structure as a video.
What happens if I enable chapters on a media that already has them?
Calling PATCH /on-demand/<mediaId>/chapters with chapters: true regenerates the chapters for the media. The previous chapter set is replaced when the new video.mediaAI.chapters.ready event triggers.