Creates a new job that uses AI to identify key moments in a Mux Video asset.
Arbitrary string stored with the job and returned in responses. Useful for correlating jobs with your own systems.
The Mux asset ID of the video to analyze.
Maximum number of key moments to extract. Defaults to 5.
Preferred highlight duration range in milliseconds. When provided, the model will aim to select moments within this range.
Preferred minimum highlight duration in milliseconds.
Preferred maximum highlight duration in milliseconds.
{
"parameters": {
"asset_id": "mux_asset_123abc",
"max_moments": 5,
"target_duration_ms": {
"min": 15000,
"max": 45000
}
}
}{
"data": {
"id": "rjob_example123",
"workflow": "find-key-moments",
"status": "pending",
"units_consumed": 0,
"created_at": 1700000000,
"updated_at": 1700000060,
"parameters": {
"asset_id": "mux_asset_123abc",
"max_moments": 5,
"target_duration_ms": {
"min": 15000,
"max": 45000
}
}
}
}