Find the most compelling moments in a video with the Mux Robots API, and steer which moments are picked and how they're titled. Use the results to create highlight clips, previews, or social media teasers.
Identify the most compelling moments in a video. This workflow analyzes the transcript, and optionally the video's shots, to find segments that stand out for their hook strength, clarity, emotional intensity, novelty, or soundbite quality. It's useful for generating highlight reels, social media clips, or preview content. See the Find Key Moments API referenceAPI for the full endpoint specification. See Mux Robots pricing for unit costs.
Check the shared workflow prerequisites before creating a job.
For a complete agent workflow from episode to downloadable clips, use the podcast clipping prompt. It covers caption preparation, reviewing candidate moments, and creating the selected clips.
find-key-moments jobcurl https://api.mux.com/robots/v1/jobs/find-key-moments \
-H "Content-Type: application/json" \
-X POST \
-d '{
"parameters": {
"asset_id": "YOUR_ASSET_ID",
"max_moments": 5
}
}' \
-u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}This request is asynchronous. The POST returns immediately with the job in pending status and does not include results. We strongly recommend listening for the robots.v1.job.find_key_moments.completed webhook — the payload contains the full completed job, so no follow-up API call is needed. If webhooks aren't an option, you can poll GET /robots/v1/jobs/find-key-moments/{JOB_ID} with the id from the response until the status is completed.
By default, key moment extraction uses transcript cues from the asset to identify compelling segments. Make sure your asset has captions, either auto-generated or manually added, before creating a find-key-moments job. For a video asset, set use_shots: true to let visual evidence drive selection; captions are then not required.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Required. The Mux asset ID of the video to analyze. |
max_moments | integer | Maximum number of key moments to extract. When omitted, defaults to 10 for assets up to one hour and 25 for longer assets. Minimum 1. |
use_shots | boolean | Controls whether video assets are analyzed using Mux shots. When true, shots are generated or reused and visual evidence drives selection. When false or omitted, selection uses transcript evidence and the asset must have a caption track. Not supported for audio-only assets. |
output_steering | object | Curated output_steering controls for execution scope, selection strategy, title style, audience, taxonomy, and rubric tie-breakers. Scope is enforced; other controls guide model behavior but do not guarantee exact output. |
target_duration | object | Preferred highlight duration range in seconds. Best-effort guidance, with millisecond precision. |
output_steering
| Field | Type | Description |
|---|---|---|
scope | object | Optional execution window in seconds on the original asset timeline. Omit start_time to begin at the asset start and omit end_time to continue through the asset end. Returned moment timestamps remain absolute asset timestamps. At least one of start_time and end_time is required, and start_time must be less than end_time. An end_time past the end of the media is clamped to it, and a window that starts at or after the end of the media is rejected. |
selection_strategy | string | Best-effort guidance for what qualifies as a strong standalone key moment. Possible values: standalone_hooks, educational_takeaways, story_beats, product_moments, speaker_highlights. |
title_style | string | Best-effort title style guidance for generated moment titles. Possible values: descriptive, punchy, educational, social. |
audience | string | Intended audience used as best-effort model guidance. Does not change the output schema. Up to 160 characters. |
brand_terms | array of string | Preferred brand or domain terms to use when supported by the source content. The combined length of all terms must be 240 characters or fewer. Up to 10 items. Each item: up to 40 characters. |
topic_taxonomy | object | Controlled vocabulary used to steer notable audible concepts without changing the response schema. |
rubric_priorities | array of string | Rubric dimensions to use as tie-breakers after applying selection strategy. Best-effort guidance only. Up to 4 items. Possible values: clarity_in_isolation, emotional_intensity, novelty, soundbite_quality. |
output_steering.scope
| Field | Type | Description |
|---|---|---|
start_time | number | Start of the execution window in seconds from the beginning of the media. When omitted, the window starts at the beginning. |
end_time | number | End of the execution window in seconds from the beginning of the media. When omitted, the window extends to the end. Greater than 0. |
output_steering.topic_taxonomy
| Field | Type | Description |
|---|---|---|
name | string | Optional customer-facing name for the taxonomy. Up to 100 characters. |
values | array of object | Required. Controlled vocabulary values used as best-effort model guidance. Up to 50 items. |
allow_other | boolean | Required. When false, the model should prefer values from the taxonomy. When true, non-taxonomy values may be used when no taxonomy value applies. |
output_steering.topic_taxonomy.values[]
| Field | Type | Description |
|---|---|---|
label | string | Required. Canonical taxonomy value to prefer when supported by the source content. Up to 100 characters. |
description | string | Short explanation of when this value applies. Up to 300 characters. |
aliases | array of string | Accepted alternate names that should normalize to the canonical label. Up to 10 items. Each item: up to 100 characters. |
target_duration
| Field | Type | Description |
|---|---|---|
min | number | Required. Preferred minimum highlight duration in seconds, with millisecond precision. Greater than 0. Maximum 9007199254740.99. |
max | number | Required. Preferred maximum highlight duration in seconds, with millisecond precision. Greater than 0. Maximum 9007199254740.99. |
Use output_steering.scope to skip an intro, ad reads, or a segment you have already clipped.
Use output_steering when you want best-effort control over which moments are selected and how they're described. These fields guide the workflow but do not guarantee exact output. All output_steering fields are optional; include only the fields you need.
{
"parameters": {
"asset_id": "YOUR_ASSET_ID",
"max_moments": 5,
"output_steering": {
"selection_strategy": "standalone_hooks",
"title_style": "social",
"audience": "developers scrolling a social feed",
"brand_terms": ["Mux Video", "Mux Data"],
"rubric_priorities": ["soundbite_quality", "emotional_intensity"],
"topic_taxonomy": {
"name": "Themes",
"values": [
{
"label": "Video as data",
"description": "Treating video content as structured, queryable information",
"aliases": ["structured video", "queryable video"]
},
{
"label": "Developer experience"
}
],
"allow_other": true
}
}
}
}The outputs object is included in the job once its status is completed. You'll receive it on the robots.v1.job.find_key_moments.completed webhook (recommended), or you can fetch it with GET /robots/v1/jobs/find-key-moments/{JOB_ID}. It contains:
| Field | Type | Description |
|---|---|---|
moments | array of object | Required. Extracted key moments, ordered by their absolute position on the original asset timeline. |
moments[]
| Field | Type | Description |
|---|---|---|
cues | array of object | Required. Contiguous transcript segments that comprise this moment. Empty when video selection identifies the moment without transcript evidence. |
overall_score | number | Required. Weighted quality score from 0.0 to 1.0 based on the audible and/or visual evidence available to the selected analysis mode. |
title | string | Required. Short catchy title for the moment (3-8 words). |
quotable_segment | object | Best short, verbatim quote from within this moment. Omitted when the selected video moment has no source-grounded transcript quote. |
audible_narrative | string | Required. One-sentence summary of what is being said during the moment. Empty when no transcript evidence is available. |
notable_audible_concepts | array of string | Required. Multi-word descriptive phrases (2-5 words each) capturing key audible concepts. Empty when no transcript evidence is available. Each item: at least 3 characters. |
visual_narrative | string | One-sentence summary of what is visually happening. Present for video assets only. |
notable_visual_concepts | array of object | Scored visual concepts extracted from sampled frames. Present for video assets only. |
start_time | number | Required. Key moment start time in seconds on the original asset timeline. Fractional seconds are supported. |
end_time | number | Required. Key moment end time in seconds on the original asset timeline. Fractional seconds are supported. |
moments[].cues[]
| Field | Type | Description |
|---|---|---|
text | string | Required. Transcript text for this cue. |
start_time | number | Required. Cue start time in seconds on the original asset timeline. Fractional seconds are supported. |
end_time | number | Required. Cue end time in seconds on the original asset timeline. Fractional seconds are supported. |
moments[].quotable_segment
| Field | Type | Description |
|---|---|---|
text | string | Required. Verbatim transcript quote selected from within the key moment. |
time | number | Required. Quote start timestamp in seconds on the original asset timeline. Fractional seconds are supported. |
moments[].notable_visual_concepts[]
| Field | Type | Description |
|---|---|---|
concept | string | Required. Multi-word visual concept (2-5 words). At least 3 characters. |
score | number | Required. Relevance score from 0.0 to 1.0 measuring how important the visual concept is to the moment's available evidence. |
rationale | string | Required. Brief explanation of the relevance score. |
This example uses a five-minute asset, consuming 4,000 units. It is the job delivered in the robots.v1.job.find_key_moments.completed webhook's data field and returned by GET /robots/v1/jobs/find-key-moments/{JOB_ID}:
{
"data": {
"id": "rjob_mno345",
"workflow": "find-key-moments",
"status": "completed",
"units_consumed": 4000,
"created_at": 1746403200,
"updated_at": 1746403260,
"parameters": {
"asset_id": "YOUR_ASSET_ID",
"max_moments": 3
},
"outputs": {
"moments": [
{
"start_time": 12.4,
"end_time": 28.9,
"overall_score": 0.92,
"title": "The Future of Video Data",
"quotable_segment": {
"time": 16.2,
"text": "Every video you upload is a dataset waiting to be queried."
},
"audible_narrative": "The speaker explains how AI transforms video from passive content into structured, queryable data.",
"notable_audible_concepts": ["video as data", "AI transformation", "structured information"],
"visual_narrative": "The speaker gestures at a diagram showing video processing pipeline stages.",
"notable_visual_concepts": [
{ "concept": "pipeline diagram", "score": 0.87, "rationale": "Directly illustrates the concept being discussed" }
],
"cues": [
{ "start_time": 12.4, "end_time": 16.2, "text": "What's exciting is that video isn't just content anymore." },
{ "start_time": 16.2, "end_time": 22.1, "text": "Every video you upload is a dataset waiting to be queried." }
]
}
]
}
}
}