Generate a title, description, and keyword tags for a video with the Mux Robots API, and steer the style, audience, and tag vocabulary. Use this workflow to fill metadata for user uploads or a large video library.
Generate a title, description, and keyword tags for a video. This is useful for auto-populating metadata in a CMS, improving search and discovery, or creating social media descriptions from video content. See the Summarize API referenceAPI for the full endpoint specification. See Mux Robots pricing for unit costs.
Check the shared workflow prerequisites before creating a job.
Summarization works best when your asset has a text track. Without one, the workflow relies on sampled stills from the video, which can reduce accuracy. For the best results, make sure your asset has captions, either auto-generated or manually added, before running a summarize job.
summarize jobcurl https://api.mux.com/robots/v1/jobs/summarize \
-H "Content-Type: application/json" \
-X POST \
-d '{
"parameters": {
"asset_id": "YOUR_ASSET_ID",
"tone": "neutral"
}
}' \
-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.summarize.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/summarize/{JOB_ID} with the id from the response until the status is completed.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Required. The Mux asset ID of the video to summarize. |
tone | string | Tone for the generated summary. "neutral" for straightforward analysis, "playful" for witty and conversational, "professional" for executive-level reporting. |
output_steering | object | Curated output_steering controls for execution scope, summary style, audience, brand terminology, and tag taxonomy. Scope is enforced; other controls guide model behavior but do not guarantee exact output. |
title_length | integer | Maximum title length in words. Minimum 1. |
description_length | integer | Maximum description length in words. Minimum 1. |
tag_count | integer | Maximum number of tags to include in the generated output. Defaults to 10. Minimum 1. |
language_code | string | BCP 47 language code of the caption source. An explicit language must match a ready source exactly, including case; for example, en does not match en-US. Translation target exclusion and track replacement instead compare base languages case-insensitively. When omitted, automatic selection applies. Uses the first ready subtitle in asset track order without English preference. Audio-only assets with one ready text track lacking subtitle metadata can use that legacy transcript. |
output_language_code | string | BCP 47 language code for the generated summary output (e.g. "en", "fr", "ja"). Auto-detected from the transcript if omitted. |
update_asset_meta | boolean | When true, the generated title is written to the Mux asset's metadata (asset.meta.title) once the summary completes. Defaults to false. Best-effort: a metadata-write failure does not fail the summary. Check outputs.asset_updates.title for the outcome. |
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. The summary and tags are generated only from media within this window. 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. |
tag_taxonomy | object | Controlled vocabulary for tag generation. This steers tags and may be deterministically filtered after generation. Supports up to 50 values and 2000 serialized characters. |
summary_style | string | Best-effort style guidance for the generated title and description. Possible values: concise, detailed, editorial. |
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. |
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.tag_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 for generated tags. Supports 1-50 values. |
allow_other | boolean | Required. When false, generated tags are filtered to taxonomy labels and aliases. When true, unmatched tags may remain. |
output_steering.tag_taxonomy.values[]
| Field | Type | Description |
|---|---|---|
label | string | Required. Canonical tag value to prefer in generated tags, up to 100 characters. |
description | string | Short explanation of when this tag applies, up to 300 characters. |
aliases | array of string | Accepted alternate names that should normalize to the canonical label. Up to 10 aliases, each up to 100 characters. |
Choose tone for where the summary will appear: neutral for straightforward, factual analysis, playful for witty copy such as social media posts, and professional for polished language such as reports or investor updates.
Use output_steering when you want best-effort control over how the summary is generated. 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",
"tone": "professional",
"output_steering": {
"summary_style": "concise",
"audience": "online shoppers comparing kitchen gadgets",
"brand_terms": ["Ember", "Ember Ceramic Mug 2"],
"tag_taxonomy": {
"name": "Product categories",
"values": [
{
"label": "Smart home",
"description": "App-connected or temperature-controlled devices",
"aliases": ["connected device", "smart gadget"]
},
{
"label": "Kitchen accessories"
}
],
"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.summarize.completed webhook (recommended), or you can fetch it with GET /robots/v1/jobs/summarize/{JOB_ID}. It contains:
| Field | Type | Description |
|---|---|---|
title | string | Required. Generated title capturing the essence of the video. |
description | string | Required. Generated description of the video content (typically 2-4 sentences). |
tags | array of string | Required. Generated keyword tags for the video. |
asset_updates | object | Recorded asset title update outcome. Omitted when no outcome was recorded, including historical jobs. |
asset_updates
| Field | Type | Description |
|---|---|---|
title | object |
asset_updates.title
| Field | Type | Description |
|---|---|---|
status | string | Required. Outcome of the requested asset title update. Possible values: updated, failed. |
This example uses a five-minute asset, consuming 650 units. It is the job delivered in the robots.v1.job.summarize.completed webhook's data field and returned by GET /robots/v1/jobs/summarize/{JOB_ID}:
{
"data": {
"id": "rjob_abc123",
"workflow": "summarize",
"status": "completed",
"units_consumed": 650,
"created_at": 1746403200,
"updated_at": 1746403260,
"parameters": {
"asset_id": "YOUR_ASSET_ID",
"tone": "professional",
"output_steering": {
"summary_style": "concise",
"audience": "online shoppers comparing kitchen gadgets",
"brand_terms": ["Ember", "Ember Ceramic Mug 2"],
"tag_taxonomy": {
"name": "Product categories",
"values": [
{
"label": "Smart home",
"description": "App-connected or temperature-controlled devices",
"aliases": ["connected device", "smart gadget"]
},
{
"label": "Kitchen accessories"
}
],
"allow_other": true
}
}
},
"outputs": {
"title": "Ember Ceramic Mug 2 — Temperature Control Demo",
"description": "A hands-on look at the Ember Ceramic Mug 2, demonstrating its app-controlled temperature settings, battery life, and auto-sleep feature on the charging coaster.",
"tags": ["ceramic mug", "temperature control", "smart mug", "kitchen gadget", "gift idea", "coffee accessories", "app-controlled", "rechargeable", "white", "14oz"]
}
}
}