Creates a new job that uses AI to answer questions about 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.
One or more questions to ask about the video. Each question can specify its own answer_options.
The question to ask about the video content.
Allowed answer values for this question. Defaults to ["yes", "no"].
BCP 47 language code of the caption track to analyze (e.g. "en", "fr"). When omitted, the SDK uses the default track.
{
"parameters": {
"asset_id": "mux_asset_123abc",
"questions": [
{
"question": "How many people are speaking on camera?",
"answer_options": [
"one",
"two",
"three or more"
]
}
]
}
}{
"data": {
"id": "rjob_example123",
"workflow": "ask-questions",
"status": "pending",
"units_consumed": 0,
"created_at": 1700000000,
"updated_at": 1700000060,
"parameters": {
"asset_id": "mux_asset_123abc",
"questions": [
{
"question": "How many people are speaking on camera?",
"answer_options": [
"one",
"two",
"three or more"
]
}
]
}
}
}