Topic, summary, timestamped chapters, and content tags.
Example video to be captioned.
Example Response
Topic: The story of a multi-generational family bakery, its history, its destruction by fire, and the determination to rebuild and adapt the business for a new era.Summary: The video chronicles the history of the Jenny Lee Bakery, a beloved institution in McKees Rocks, Pennsylvania, run by the Baker family for generations. It details the bakery's founding in 1941, its role in the community, and the passion for baking passed down through generations. The story takes a tragic turn with a devastating fire and a recession, leading to the closure and demolition of the bakery. However, the narrative concludes with the current generation, Scott Baker, deciding to rebuild the business with a modern, wholesale-focused approach.Chapters (mm:ss format):00:00 - 00:15: Scott Baker introduces himself and his family's deep-rooted connection to the McKees Rocks community through the Jenny Lee Bakery, which his grandfather opened in 1941.00:15 - 00:31: A long-time employee and customer, Donna, shares fond memories of visiting the bakery for treats after church and later working there herself.00:31 - 00:48: The video shows the transition to the next generation, with Scott's father, Bernie, taking over. Scott recalls his own childhood experiences working in the bakery and developing a love for the family business.00:48 - 01:14: The narrative shifts to a tragic event, as Donna recounts learning that the bakery was on fire on Thanksgiving, a moment that cost her her job. Newspaper headlines confirm the devastating blaze.01:14 - 01:42: Scott and his father, Bernie, recall the despair of seeing their life's work destroyed by the fire. The combination of the fire and the subsequent recession led to the difficult decision to close the bakery, which was later demolished.01:42 - 02:08: Feeling burnt out, Scott was advised by his father to pursue a different career. However, Scott felt that baking was in his blood and was determined to revive the family business in McKees Rocks.02:08 - 02:23: After researching the modern market and realizing the decline of traditional retail bakeries, Scott devises a new plan. He decides to adapt by creating a wholesale bakery to supply baked goods to other stores.
{ "topic": "The story of a multi-generational family bakery, its history, its destruction by fire, and the determination to rebuild and adapt the business for a new era.", "summary": "The video chronicles the history of the Jenny Lee Bakery, a beloved institution in McKees Rocks, Pennsylvania, run by the Baker family for generations. It details the bakery's founding in 1941, its role in the community, and the passion for baking passed down through generations. The story takes a tragic turn with a devastating fire and a recession, leading to the closure and demolition of the bakery. However, the narrative concludes with the current generation, Scott Baker, deciding to rebuild the business with a modern, wholesale-focused approach.", "chapters": [ { "start_time": "00:00:00", "end_time": "00:00:15", "description": "Scott Baker introduces himself and his family's deep-rooted connection to the McKees Rocks community through the Jenny Lee Bakery, which his grandfather opened in 1941." }, { "start_time": "00:00:15", "end_time": "00:00:31", "description": "A long-time employee and customer, Donna, shares fond memories of visiting the bakery for treats after church and later working there herself." } ]}
import { VlmRun } from "vlmrun";import { z } from "zod";import { zodToJsonSchema } from "zod-to-json-schema";// Define the response schema with Zodconst ParsedVideoResponseSchema = z.object({ topic: z.string().describe("Topic of the video"), summary: z.string().describe("Summary of the video content"), chapters: z.array(z.object({ start_time: z.string().describe("Start time in HH:MM:SS format"), end_time: z.string().describe("End time in HH:MM:SS format"), description: z.string().describe("Description of the chapter") })).describe("Video chapters")});// Initialize the VLMRun clientconst client = new VlmRun({ apiKey: "<VLMRUN_API_KEY>", baseURL: "https://api.vlm.run/v1"});// Parse the video with structured outputconst response = await client.agent.completions.create({ model: "vlmrun-orion-1:auto", messages: [ { role: "user", content: [ { type: "text", text: "Parse this video" }, { type: "video_url", video_url: { url: "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4" } } ] } ], response_format: { type: "json_schema", schema: zodToJsonSchema(ParsedVideoResponseSchema) }});const result = ParsedVideoResponseSchema.parse(JSON.parse(response.choices[0].message.content));
FAQ
How do I ask the model for more detailed captions?
Add a word count to the prompt. The model returns a longer caption.
A list of objects. Each object has start_time, end_time, and description.
Can I get timestamps for different parts of the video?
Each segment includes start_time and end_time.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VLM Run","description":"One API key for every visual model. Send a document or an image, get JSON back.","colors":{"primary":"#1F5ACA","light":"#4D8BFF","dark":"#102A56"},"logo":{"light":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=fbea8392452b746e14273d7670a4f535","dark":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon-white.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=e58c8973ce1978adf1ce6359665a916a"},"favicon":"https://mintcdn.com/autonomiai/0Yrk6nqaa_NlkPay/assets/logo/vlm-run-icon.svg?fit=max\u0026auto=format\u0026n=0Yrk6nqaa_NlkPay\u0026q=85\u0026s=fbea8392452b746e14273d7670a4f535","api":{"openapi":["https://api.vlm.run/openapi.json","https://gateway.vlm.run/openapi.json"],"params":{"expanded":"all"},"playground":{"display":"simple"},"examples":{"languages":["python","javascript","ruby","curl"]}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FAFCFE","dark":"#010917"}},"navbar":{"links":[{"href":"mailto:support@vlm.run","label":"Contact"},{"href":"https://github.com/vlm-run/vlmrun-hub","label":"Hub"},{"href":"https://github.com/vlm-run/vlmrun-cookbook","label":"Cookbooks"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.vlm.run"}},"footer":{"socials":{"x":"https://x.com/vlmrun","github":"https://github.com/vlm-run/vlm-cookbook","linkedin":"https://www.linkedin.com/company/vlm-run"}},"seo":{"metatags":{"og:type":"website","og:site_name":"VLM Run","twitter:card":"summary_large_image","twitter:site":"@vlmrun"}},"fonts":{"heading":{"family":"Aeonik Pro","weight":400,"source":"fonts/AeonikPro-Regular.woff2","format":"woff2"},"body":{"family":"Aeonik Pro","weight":400,"source":"fonts/AeonikPro-Regular.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"dark-plus"}},"latex":true},"integrations":{"ga4":{"measurementId":"G-DKFNLZ8F83"}},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/autonomiai/0lq3Q9EPRCLt1zej/images/og-background.png?fit=max\u0026auto=format\u0026n=0lq3Q9EPRCLt1zej\u0026q=85\u0026s=010b9a1e01253f5f9d02474d89f85294"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"autonomiai","hasAudioNarration":false,"actualSubdomain":"autonomiai","customDomains":["docs.vlm.run"],"gitSource":{"type":"github","owner":"vlm-run","repo":"docs","deployBranch":"release","contentDirectory":"public","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af8a42574b4f0f02ee12098","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Orion","count":42},{"language":"default","tag":"Developers","count":35},{"language":"default","tag":"Gateway","count":31},{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"SDKs","count":24},{"language":"default","tag":"Orion API","count":15},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"Skills","count":14},{"language":"default","tag":"Python","count":12},{"language":"default","tag":"Node.js","count":12}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600\u0026display=swap');:root{--vlm-primary: #1F5ACA;--vlm-primary-hover: #1848A2;--vlm-primary-vivid: #1265FF;--vlm-primary-mid: #1F5ACA;--vlm-primary-dark: #1848A2;--vlm-primary-light: #4D8BFF;--vlm-primary-border: #234D9F;--vlm-primary-tint: #E0EAFA;--vlm-primary-badge: #EEF2F9;--vlm-navy: #102A56;--vlm-navy-dark: #010917;--vlm-navy-mid: #102255;--vlm-muted: #576782;--vlm-surface: #FAFCFE;--vlm-border: #E1ECFA;--vlm-dark-border: #182231;--vlm-toc-active: #274275;--vlm-cap-blue: rgb(100, 151, 246);--vlm-cap-green: rgb(185, 246, 100);--vlm-cap-purple: rgb(177, 118, 255);--vlm-shadow-btn:\n rgba(0, 0, 0, 0.20) 0px -2px 0px 0px inset,\n rgba(0, 0, 0, 0.20) 0px 1px 2px 0px}:root{--vlm-docs-version: \"Docs updated 2026-08-15\"}body{color:var(--vlm-navy);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{color:var(--vlm-navy);letter-spacing:0}#content>h2{margin-top:3rem;margin-bottom:1.5rem}#content>h3{margin-top:2.25rem;margin-bottom:1rem}#content>h4{margin-top:1.75rem;margin-bottom:0.75rem}#content>:is(h2,h3,h4):first-child{margin-top:0}#content>:is(h2,h3,h4)+table{margin-top:0}#content [data-table-wrapper=\"true\"]{margin-top:0;padding-top:0}#content [data-table-wrapper=\"true\"] table{margin-top:0}#content input.fold-rows{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"] tbody tr:nth-child(n+7){display:none}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]{position:relative}#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:2.75rem;background:linear-gradient(to bottom, transparent, #fff);pointer-events:none}#content label.fold-rows-label{display:flex;justify-content:center;margin-top:0.25rem;margin-bottom:1.5rem;font-size:0.75rem;font-weight:500;color:var(--vlm-muted);cursor:pointer}#content input.fold-rows:checked+[data-table-wrapper=\"true\"]+label.fold-rows-label .when-closed,#content input.fold-rows:not(:checked)+[data-table-wrapper=\"true\"]+label.fold-rows-label .when-open{display:none}#content [data-component-part=\"tabs-list\"]{margin-top:1.75rem!important;gap:1.75rem!important}#content [data-component-part=\"tab-button\"]{padding-top:0.85rem!important;padding-bottom:0.7rem!important;border-bottom-width:2px!important;color:var(--vlm-muted)!important;font-size:1rem!important;font-weight:500!important;line-height:1.5rem!important}#content [data-component-part=\"tab-button\"]:hover{color:var(--vlm-navy)!important}#content [data-component-part=\"tab-button\"][data-active=\"true\"]{color:var(--vlm-navy)!important;border-bottom-color:var(--vlm-navy)!important}p,li{color:var(--vlm-muted);letter-spacing:-0.01em}#navigation-items .sidebar-group-header,#navigation-items .sidebar-group-header .sidebar-title{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--vlm-muted)}a{color:var(--vlm-primary);transition:color 200ms ease-out, opacity 200ms ease-out}a:hover{color:var(--vlm-primary-hover)}.prose a,article a{text-decoration-color:color-mix(in srgb, var(--vlm-primary) 35%, transparent);text-underline-offset:3px;transition:text-decoration-color 200ms ease-out, color 200ms ease-out}.prose a:hover,article a:hover{text-decoration-color:var(--vlm-primary)}#navbar a[href=\"https://app.vlm.run\"],.navbar a[href=\"https://app.vlm.run\"],header a[href=\"https://app.vlm.run\"]{border-radius:20px!important;border:1px solid var(--vlm-primary-border)!important;background-color:var(--vlm-primary-mid)!important;color:#fff!important;box-shadow:var(--vlm-shadow-btn);transition:transform 300ms ease-out,\n box-shadow 300ms ease-out,\n background-color 300ms ease-out,\n opacity 300ms ease-out}#navbar a[href=\"https://app.vlm.run\"]:hover,.navbar a[href=\"https://app.vlm.run\"]:hover,header a[href=\"https://app.vlm.run\"]:hover{transform:translateY(-1px);background-color:var(--vlm-primary-dark)!important;opacity:0.95}#navigation-items a,#sidebar a,nav[aria-label=\"Sidebar\"] a{color:var(--vlm-navy)}#navigation-items a:hover,#sidebar a:hover,nav[aria-label=\"Sidebar\"] a:hover{color:var(--vlm-primary)}#navigation-items a[aria-current=\"page\"],#navigation-items a[data-active=\"true\"],#sidebar a[aria-current=\"page\"],#sidebar a[data-active=\"true\"],nav[aria-label=\"Sidebar\"] a[aria-current=\"page\"]{color:var(--vlm-primary)!important;font-weight:500}#navigation-items li li>a,#navigation-items li li>div>a,#navigation-items li li>button,#navigation-items li li>div>button{padding-left:2.5rem!important}#navigation-items li li li>a,#navigation-items li li li>div>a,#navigation-items li li li>button,#navigation-items li li li>div>button{padding-left:3.5rem!important}#content-side-layout:has(#table-of-contents){width:max-content!important;max-width:13rem!important;margin-left:0!important;margin-right:0.75rem!important;padding-right:0!important;align-items:flex-end!important;flex:0 0 auto!important;box-sizing:border-box!important}@media (min-width: 1280px){#content-area{width:auto!important;max-width:none!important;flex:1 1 auto!important;margin-left:0!important;margin-right:0!important;padding-left:2rem!important;padding-right:2rem!important}#content-area:has(#content)>header,#content{width:100%;max-width:48rem;margin-left:auto!important;margin-right:auto!important}}#table-of-contents-layout{width:max-content!important;max-width:13rem!important;margin-left:auto!important;padding-left:0!important;padding-right:0!important}#table-of-contents{width:max-content!important;max-width:13rem!important}#content-side-layout:has(#table-of-contents) h2{font-family:'Aeonik Pro', ui-sans-serif, system-ui, sans-serif!important;font-size:0.8125rem!important;line-height:1.25rem!important;font-weight:500!important;letter-spacing:0.01em!important;color:var(--vlm-muted)!important}#table-of-contents-content a,#table-of-contents a{font-size:0.8125rem!important;line-height:1.25rem!important;color:var(--vlm-muted)!important}#content-area{width:auto!important;max-width:none!important}#content{max-width:48rem}#content li{text-wrap:pretty}#toc a[aria-current=\"true\"],#toc a[aria-current=\"location\"],#toc a[data-active=\"true\"],nav[aria-label=\"On this page\"] a[aria-current=\"true\"],nav[aria-label=\"On this page\"] a[aria-current=\"location\"],nav[aria-label=\"On this page\"] a[data-active=\"true\"],#table-of-contents a[aria-current=\"true\"],#table-of-contents a[aria-current=\"location\"],#table-of-contents a[data-active=\"true\"]{color:var(--vlm-toc-active)!important;font-weight:500;box-shadow:none!important;border:none!important;padding-left:0!important}.card,[class*=\"card\"][role=\"link\"],a.card{background-color:#ffffff;border:1px solid var(--vlm-border);border-radius:12px;transition:transform 300ms ease-out,\n border-color 300ms ease-out,\n box-shadow 300ms ease-out}.card:hover,[class*=\"card\"][role=\"link\"]:hover,a.card:hover{transform:translateY(-1px);border-color:var(--vlm-primary);box-shadow:0 4px 12px -4px color-mix(in srgb, var(--vlm-primary) 20%, transparent)}.card-demo{color:var(--vlm-primary-mid);background-color:var(--vlm-primary-tint);border-color:var(--vlm-primary-tint)}.callout-info,[role=\"note\"][data-type=\"info\"],[role=\"note\"][data-type=\"note\"]{background-color:var(--vlm-primary-badge);border-color:var(--vlm-border);color:var(--vlm-navy)}.callout-tip,[role=\"note\"][data-type=\"tip\"]{background-color:color-mix(in srgb, var(--vlm-cap-green) 18%, white);border-color:color-mix(in srgb, var(--vlm-cap-green) 45%, white);color:var(--vlm-navy)}pre,[class*=\"code-block\"] pre{border:0;border-radius:0;background:transparent}:not(pre)>code{background-color:#F0F2F5;color:var(--vlm-navy);padding:0.05rem 0.15rem;border-radius:4px;font-size:0.875em}#content a code,#header a code{color:inherit}#header .eyebrow{display:none}#content>:is(h2,h3,h4)+[data-table-wrapper]{margin-top:0!important;padding-top:0!important}#content>:is(h2,h3,h4)+[data-table-wrapper] table{margin-top:0}table{width:100%;margin:1.5rem 0;border:1px solid var(--vlm-border)!important;border-radius:6px;border-collapse:separate!important;border-spacing:0!important;background-color:#ffffff;font-size:0.875rem;color:var(--vlm-navy)}thead th{background-color:var(--vlm-surface);border:0!important;border-bottom:1px solid var(--vlm-border)!important;padding:0.7rem 1rem!important;font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--vlm-navy);vertical-align:middle}thead th .unit-help{display:inline-flex;align-items:center;justify-content:center;width:0.875rem;height:0.875rem;margin-left:0.35rem;border:1px solid var(--vlm-border);border-radius:999px;background:#fff;color:var(--vlm-muted);font-family:'Aeonik Pro', ui-sans-serif, system-ui, sans-serif;font-size:0.625rem;font-weight:600;letter-spacing:0;text-transform:none;line-height:1;text-decoration:none;vertical-align:1px;cursor:help}thead th button:has(.unit-help){display:inline-flex;align-items:center;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:0;text-transform:none;vertical-align:middle;cursor:help}thead tr:first-child th:first-child{border-top-left-radius:6px}thead tr:first-child th:last-child{border-top-right-radius:6px}tbody tr:last-child td:first-child{border-bottom-left-radius:6px}tbody tr:last-child td:last-child{border-bottom-right-radius:6px}thead tr+tr th{border-bottom:1px solid var(--vlm-border)!important;padding-top:0.5rem!important;padding-bottom:0.75rem!important;font-size:10.5px}thead th[align=\"left\"]{text-align:left}thead th[align=\"center\"]{text-align:center}thead th[align=\"right\"]{text-align:right}thead th code{background:transparent!important;color:var(--vlm-navy)!important;padding:0!important;font-size:inherit!important;letter-spacing:0.12em!important;text-transform:uppercase!important}tbody tr{background-color:#ffffff}tbody td{border:0!important;border-bottom:1px solid var(--vlm-border)!important;padding:0.7rem 1rem!important;vertical-align:middle;color:var(--vlm-navy);line-height:1.55}tbody td:has(br),tbody td:has(ul),tbody td:has(p){vertical-align:top}tbody td ul{margin:0;padding-left:1.25rem}tbody td li+li{margin-top:0.35em}tbody td li kbd{font-family:'Geist Mono', ui-monospace, monospace;font-weight:600;font-size:0.8125rem;line-height:1.3;letter-spacing:-0.01em;color:var(--vlm-navy);background:transparent;border:1px solid var(--vlm-border);padding:0.05rem 0.3rem;margin:0;border-radius:3px;white-space:nowrap;box-shadow:none!important;text-shadow:none;filter:none;-webkit-box-shadow:none!important}table code{white-space:nowrap}tbody tr:last-child td{border-bottom:0!important}thead th:first-child,tbody td:first-child{padding-left:1.125rem!important}thead th:last-child,tbody td:last-child{padding-right:1.125rem!important}.rotated-row-headers thead th:first-child,.rotated-row-headers tbody td:first-child{padding-left:0.5rem!important;padding-right:0.5rem!important}.rotated-row-headers tbody td:first-child{border-right:1px solid var(--vlm-border)!important}tbody td:first-child,tbody td[rowspan]+td{font-weight:500;color:var(--vlm-navy)}tbody td[align=\"center\"],tbody td[align=\"right\"]{font-weight:500;color:var(--vlm-navy)}table code{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:13px;font-weight:500}td[align=\"left\"]{text-align:left}td[align=\"center\"]{text-align:center}td[align=\"right\"]{text-align:right}tbody td code{background:transparent!important;color:inherit!important;padding:0!important;font-size:inherit!important;border-radius:0!important;font-weight:inherit!important}.accordion table,[data-accordion-content] table{margin:0.75rem 0;font-size:0.8125rem}.accordion tbody td,[data-accordion-content] tbody td,.accordion thead th,[data-accordion-content] thead th{padding:0.75rem 1rem!important}.accordion thead th:first-child,[data-accordion-content] thead th:first-child,.accordion tbody td:first-child,[data-accordion-content] tbody td:first-child{padding-left:1.25rem!important}.accordion thead th:last-child,[data-accordion-content] thead th:last-child,.accordion tbody td:last-child,[data-accordion-content] tbody td:last-child{padding-right:1.25rem!important}.gateway-models-catalog table{table-layout:fixed;width:100%;font-size:0.8125rem}.gateway-models-catalog thead th{padding:0.5rem 0.625rem!important;font-size:10px;letter-spacing:0.08em;line-height:1.35;white-space:normal;vertical-align:bottom}.gateway-models-catalog tbody td{padding:0.5rem 0.625rem!important;font-size:0.8125rem;line-height:1.45;vertical-align:top}.gateway-models-catalog thead th:first-child,.gateway-models-catalog tbody td:first-child{width:26%;padding-left:0.75rem!important;white-space:normal;word-break:break-word}.gateway-models-catalog thead th:nth-child(2),.gateway-models-catalog tbody td:nth-child(2){width:4.75rem;max-width:4.75rem;white-space:normal;word-break:break-word;hyphens:auto;text-align:center;font-size:0.75rem;line-height:1.35}.gateway-models-catalog table code{white-space:normal;word-break:break-word;font-size:0.75rem}.gateway-models-catalog tbody td:first-child a{word-break:break-word}.gateway-models-catalog thead th:last-child,.gateway-models-catalog tbody td:last-child{padding-right:0.75rem!important}html.dark table{background-color:transparent;border-color:var(--vlm-dark-border)!important}html.dark thead tr,html.dark thead tr th,html.dark tbody tr{background-color:transparent}html.dark thead th,html.dark tbody td{color:inherit;border-color:var(--vlm-dark-border)!important}.integration-hero{width:100%;aspect-ratio:1024 / 500;background-image:url('/assets/blog-backdrop.png');background-size:cover;background-position:center;border:1px solid var(--vlm-border);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:4%;margin:1.5rem 0 2rem;overflow:hidden}.integration-hero-tile{width:17.6%;aspect-ratio:1 / 1;background-color:rgba(255, 255, 255, 0.96);border:1px solid var(--vlm-border);border-radius:12px;box-shadow:0 1px 2px rgba(16, 42, 86, 0.04),\n 0 4px 12px rgba(31, 90, 202, 0.05);overflow:hidden}.integration-hero-tile{display:flex;align-items:center;justify-content:center}.integration-hero-tile img,.integration-hero-tile svg{display:block;width:60%;height:60%;max-width:60%;margin:0!important;object-fit:contain;object-position:center}.integration-hero-tile:has(img[alt=\"n8n\"]) img{width:90%;height:90%;max-width:90%}.integration-hero-tile:has(img[alt=\"Zapier\"]) img{width:56%;height:56%;max-width:56%}.integration-hero-tile:has(img[alt=\"MongoDB\"]) img{width:88%;height:88%;max-width:88%}.integration-hero-tile:has(img[alt=\"Voxel51 FiftyOne\"]) img{width:68%;height:68%;max-width:68%}.platform-figure{position:relative;border:1px solid var(--vlm-border);border-radius:8px;padding:3.5% 3% 56px;margin:1.5rem 0 2rem;overflow:hidden;background-color:#ffffff}.platform-figure::before{content:\"\";position:absolute;inset:0;background-image:url('/images/platform-background.png');background-size:cover;background-position:center;background-repeat:no-repeat;opacity:0.6;pointer-events:none;z-index:0}.platform-figure>*,.platform-figure img{position:relative;z-index:1}.platform-figure img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--vlm-border);box-shadow:0 1px 2px rgba(16, 42, 86, 0.10),\n 0 12px 32px rgba(31, 90, 202, 0.14)}.platform-card-grid .card img,.platform-card-grid [class*=\"card\"][role=\"link\"] img{background-color:#ffffff;background-image:url('/images/platform-background.png');background-size:cover;background-position:center;background-repeat:no-repeat;padding:14px;box-sizing:border-box;border-radius:10px 10px 0 0;border:1px solid var(--vlm-border);border-bottom:0;box-shadow:0 1px 2px rgba(16, 42, 86, 0.05)}.domain-column{width:240px;display:inline-block}.function-column{width:240px;display:inline-block}.allowed-inputs-column{width:160px;display:inline-block}.description-column{width:100%;display:inline-block}.tag{padding:2px 8px;border-radius:12px;font-size:0.9em;font-weight:500;display:inline-block;margin-right:8px;margin-bottom:4px}.tag-document{background:color-mix(in srgb, var(--vlm-cap-green) 22%, white);color:#2F6B14}.tag-image{background:color-mix(in srgb, var(--vlm-cap-blue) 22%, white);color:var(--vlm-primary-dark)}.tag-video{background:color-mix(in srgb, var(--vlm-cap-purple) 22%, white);color:#5A2BB8}.tag-audio{background:var(--vlm-primary-badge);color:var(--vlm-primary-dark)}.tag-url{background:var(--vlm-primary-badge);color:var(--vlm-primary-dark)}.tag-ref{background:color-mix(in srgb, var(--vlm-cap-purple) 14%, white);color:#5A2BB8}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.glass{background:rgba(255, 255, 255, 0.05);border:1px solid rgba(255, 255, 255, 0.1)}.shadow-btn{box-shadow:var(--vlm-shadow-btn)}#footer{flex-wrap:wrap;row-gap:1.25rem}#footer::after{content:var(--vlm-docs-version, \"\");flex-basis:100%;order:99;font-family:'Geist Mono', ui-monospace, monospace;font-size:12px;letter-spacing:0.02em;color:var(--vlm-muted)}.hero-video{display:block;width:100%;height:auto;border-radius:6px;background:var(--vlm-navy-dark)}p:has(>.changelog-tag:first-child),span:has(>.changelog-tag:first-child){padding-left:88px;text-indent:-88px}.changelog-tag{display:inline-block;box-sizing:border-box;width:76px;margin-right:8px;padding:1px 0;text-align:center;text-indent:0;border:1px solid var(--vlm-border);border-radius:4px;background:var(--vlm-primary-badge);color:var(--vlm-muted);font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:11px;font-weight:500;letter-spacing:0.08em;line-height:1.5;text-transform:uppercase;vertical-align:1px}.support-dot{color:var(--vlm-primary-light)}html:not([data-legacy=\"1\"]) #navigation-items>div:has(a[href=\"/api-reference/structured-extraction\"]){display:none}"}],"page":{"pagePath":"agents/capabilities/video/captioning","slug":"/agents/capabilities/video/captioning","pageMetadata":{"title":"Caption \u0026 Tag","description":"Topic, summary, timestamped chapters, and content tags.","icon":"video","href":"/agents/capabilities/video/captioning"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Topic, summary, timestamped chapters, and content tags.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Frame,Heading,Tip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Frame,{caption:`Example video to be captioned.`,children:_jsx(`video`,{className:`mint-block dark:mint-hidden`,src:`https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4`,controls:true,loop:true,muted:true,playsinline:true})}),`\n`,_jsx(Heading,{level:`2`,id:`example-response`,children:`Example Response`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Chat Completions`,wrap:`true`,expandable:`true`,numberOfLines:`13`,language:`mdx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`mdx`,children:_jsxs(_components.code,{language:`mdx`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`Topic: The story of a multi-generational family bakery, its history, its destruction by fire, and the determination to rebuild and adapt the business for a new era.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`Summary: The video chronicles the history of the Jenny Lee Bakery, a beloved institution in McKees Rocks, Pennsylvania, run by the Baker family for generations. It details the bakery's founding in 1941, its role in the community, and the passion for baking passed down through generations. The story takes a tragic turn with a devastating fire and a recession, leading to the closure and demolition of the bakery. However, the narrative concludes with the current generation, Scott Baker, deciding to rebuild the business with a modern, wholesale-focused approach.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`Chapters (mm:ss format):`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`00:00 - 00:15: Scott Baker introduces himself and his family's deep-rooted connection to the McKees Rocks community through the Jenny Lee Bakery, which his grandfather opened in 1941.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`00:15 - 00:31: A long-time employee and customer, Donna, shares fond memories of visiting the bakery for treats after church and later working there herself.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`00:31 - 00:48: The video shows the transition to the next generation, with Scott's father, Bernie, taking over. Scott recalls his own childhood experiences working in the bakery and developing a love for the family business.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`00:48 - 01:14: The narrative shifts to a tragic event, as Donna recounts learning that the bakery was on fire on Thanksgiving, a moment that cost her her job. Newspaper headlines confirm the devastating blaze.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`01:14 - 01:42: Scott and his father, Bernie, recall the despair of seeing their life's work destroyed by the fire. The combination of the fire and the subsequent recession led to the difficult decision to close the bakery, which was later demolished.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`01:42 - 02:08: Feeling burnt out, Scott was advised by his father to pursue a different career. However, Scott felt that baking was in his blood and was determined to revive the family business in McKees Rocks.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`02:08 - 02:23: After researching the modern market and realizing the decline of traditional retail bakeries, Scott devises a new plan. He decides to adapt by creating a wholesale bakery to supply baked goods to other stores.`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Structured Outputs`,expandable:`true`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"topic\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"The story of a multi-generational family bakery, its history, its destruction by fire, and the determination to rebuild and adapt the business for a new era.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"The video chronicles the history of the Jenny Lee Bakery, a beloved institution in McKees Rocks, Pennsylvania, run by the Baker family for generations. It details the bakery's founding in 1941, its role in the community, and the passion for baking passed down through generations. The story takes a tragic turn with a devastating fire and a recession, leading to the closure and demolition of the bakery. However, the narrative concludes with the current generation, Scott Baker, deciding to rebuild the business with a modern, wholesale-focused approach.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"chapters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"start_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"00:00:00\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"end_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"00:00:15\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Scott Baker introduces himself and his family's deep-rooted connection to the McKees Rocks community through the Jenny Lee Bakery, which his grandfather opened in 1941.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"start_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"00:00:15\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"end_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"00:00:31\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"A long-time employee and customer, Donna, shares fond memories of visiting the bakery for treats after church and later working there herself.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage-example`,children:`Usage Example`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`/agents/structured-responses`,children:`Structured Outputs API`}),` for structured, validated responses.`]})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`20`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` vlmrun.client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` VLMRun`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Initialize the VLMRun client`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` VLMRun(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cVLMRUN_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Caption the video`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` client.agent.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"vlmrun-orion-1:auto\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Parse this video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(response.choices[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python - Structured Outputs`,numberOfLines:`35`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`35`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` vlmrun.client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` VLMRun`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` pydantic `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` BaseModel, Field`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Define the response schema`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` ParsedVideoChapter`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:`BaseModel`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` start_time: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Start time in HH:MM:SS format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` end_time: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"End time in HH:MM:SS format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` description: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Description of the chapter\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:` ParsedVideoResponse`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#4EC9B0`},children:`BaseModel`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` topic: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Topic of the video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` summary: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Summary of the video content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` chapters: list[ParsedVideoChapter] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` Field(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Video chapters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Initialize the VLMRun client`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` VLMRun(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cVLMRUN_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Parse the video with structured output`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` client.agent.completions.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"vlmrun-orion-1:auto\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Parse this video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#9CDCFE`},children:` response_format`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"json_schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`: ParsedVideoResponse.model_json_schema()}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# Validate the response`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ParsedVideoResponse.model_validate_json(response.choices[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`].message.content)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`# >>> ParsedVideoResponse(topic=\"...\", summary=\"...\", chapters=[...])`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`21`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`VlmRun`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"vlmrun\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` VlmRun`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cVLMRUN_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.vlm.run/v1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`agent`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`completions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"vlmrun-orion-1:auto\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` messages:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`text:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Parse this video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`video_url:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`url:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`choices`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js - Structured Outputs`,expandable:`true`,numberOfLines:`40`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light dark-plus`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#24292e`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`40`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`VlmRun`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"vlmrun\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"zod\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`zodToJsonSchema`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"zod-to-json-schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`// Define the response schema with Zod`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` ParsedVideoResponseSchema`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`object`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` topic:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Topic of the video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` summary:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Summary of the video content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` chapters:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`array`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`object`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` start_time:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Start time in HH:MM:SS format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` end_time:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"End time in HH:MM:SS format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` z`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Description of the chapter\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` })).`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`describe`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:`\"Video chapters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`// Initialize the VLMRun client`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` VlmRun`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cVLMRUN_API_KEY>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.vlm.run/v1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A9955`},children:`// Parse the video with structured output`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`agent`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`completions`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"vlmrun-orion-1:auto\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` messages:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`text:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"Parse this video\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"video_url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`video_url:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`url:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"https://storage.googleapis.com/vlm-data-public-prod/hub/examples/video.transcription/bakery.mp4\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` response_format:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#CE9178`},children:` \"json_schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` schema:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:` zodToJsonSchema`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`ParsedVideoResponseSchema`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:` ParsedVideoResponseSchema`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`choices`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`How do I ask the model for more detailed captions?`,icon:`comment`,id:`how-do-i-ask-the-model-for-more-detailed-captions`,children:_jsx(_components.p,{children:`Add a word count to the prompt. The model returns a longer caption.`})}),_jsx(Accordion,{title:`What tags are supported for videos?`,icon:`tags`,id:`what-tags-are-supported-for-videos`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Content Types`}),`: presentation, tutorial, interview, documentary, news`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scenes`}),`: office, outdoor, studio, classroom, conference room`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`People`}),`: presenter, audience, speaker, interviewer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Objects`}),`: whiteboard, charts, graphs, computer, microphone`]}),`\n`]})}),_jsx(Accordion,{title:`What format do the video segments come in?`,icon:`crop`,id:`what-format-do-the-video-segments-come-in`,children:_jsxs(_components.p,{children:[`A list of objects. Each object has `,_jsx(_components.code,{children:`start_time`}),`, `,_jsx(_components.code,{children:`end_time`}),`, and `,_jsx(_components.code,{children:`description`}),`.`]})}),_jsx(Accordion,{title:`Can I get timestamps for different parts of the video?`,icon:`clock`,id:`can-i-get-timestamps-for-different-parts-of-the-video`,children:_jsxs(_components.p,{children:[`Each segment includes `,_jsx(_components.code,{children:`start_time`}),` and `,_jsx(_components.code,{children:`end_time`}),`.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"dark-plus"}},"config":{},"pageMetadata":{"title":"Caption \u0026 Tag","description":"Topic, summary, timestamped chapters, and content tags.","icon":"video","href":"/agents/capabilities/video/captioning"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example Response","slug":"example-response","depth":2,"children":[]},{"title":"Usage Example","slug":"usage-example","depth":2,"children":[]},{"title":"FAQ","slug":"faq","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/autonomiai/a2d609d7d372c9af/unifygtm.js","/_mintlify/custom/autonomiai/12b17cdd767d0ac7/legacy.js"],"dynamicCss":".mint-block {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"autonomiai","siteName":"VLM Run","title":"Caption \u0026 Tag - VLM Run","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-07T16:11:43.049Z","originalFileLocation":"agents/capabilities/video/captioning.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Topic, summary, timestamped chapters, and content tags.\">\u003cmeta data-mint-head name=\"application-name\" content=\"VLM Run\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Caption \u0026amp; Tag - VLM Run\">\u003cmeta data-mint-head property=\"og:description\" content=\"Topic, summary, timestamped chapters, and content tags.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VLM Run\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vlm.run/agents/capabilities/video/captioning\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://autonomiai.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Caption+%26+Tag\u0026amp;description=Topic%2C+summary%2C+timestamped+chapters%2C+and+content+tags.\u0026amp;theme=9e78e25362d3b3059041160c\u0026amp;signature=20d2bcf8b1022cf2319197b54d7db13781f9f2ce55a16814049775a60450fb57\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Caption \u0026amp; Tag - VLM Run\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Topic, summary, timestamped chapters, and content tags.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://autonomiai.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Caption+%26+Tag\u0026amp;description=Topic%2C+summary%2C+timestamped+chapters%2C+and+content+tags.\u0026amp;theme=9e78e25362d3b3059041160c\u0026amp;signature=20d2bcf8b1022cf2319197b54d7db13781f9f2ce55a16814049775a60450fb57\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/autonomiai/pD_ZZ-IBiToGpeSG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VLM Run\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1F5ACA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vlm.run/agents/capabilities/video/captioning\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agents/capabilities/video/captioning.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VLM Run\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VLM Run\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agents/capabilities/video/captioning.md","siteName":"VLM Run","nav":{"global":null,"tabs":[{"tab":"Gateway","icon":"network-wired","groups":[{"group":"Overview","pages":[{"title":"Introduction","sidebarTitle":"Introduction","icon":"compass","href":"/gateway/introduction"},{"title":"Quickstart","icon":"rocket","href":"/gateway/quickstart"},{"title":"Authentication","icon":"key","href":"/gateway/authentication"}]},{"group":"Platform","pages":[{"title":"Pricing","icon":"dollar-sign","href":"/gateway/pricing"},{"title":"Rate Limits","icon":"bolt-lightning","href":"/gateway/rate-limits"},{"title":"Error Codes","icon":"circle-exclamation","href":"/gateway/error-codes"}]},{"group":"OpenAI Compatibility","pages":[{"title":"Visual Intelligence","icon":"eye","href":"/gateway/visual-intelligence"},{"title":"Models","icon":"table-list","href":"/gateway/models"},{"title":"Methods","icon":"list-check","href":"/gateway/methods"},{"title":"Response Formats","icon":"brackets-curly","href":"/gateway/response-formats"},{"title":"Supported Inputs","icon":"images","href":"/gateway/multimodal-inputs"},{"title":"Response Types","icon":"shapes","href":"/gateway/response-types"},{"title":"OpenAI SDK Compatibility","icon":"arrow-right-arrow-left","href":"/gateway/openai-compatibility"}]},{"group":"TypeSafe Compatibility","pages":[{"title":"System One","icon":"scale-balanced","href":"/gateway/system-one"},{"title":"Models","sidebarTitle":"TypeSafe models","icon":"cubes","href":"/gateway/typesafe-models"},{"title":"TypeSafe SDK Compatibility","icon":"arrow-right-arrow-left","href":"/gateway/jev-compatibility"}]},{"group":"Realtime","pages":[{"title":"Realtime","icon":"tower-broadcast","href":"/gateway/realtime"},{"title":"Realtime Frames","icon":"video","href":"/gateway/realtime-frames"},{"title":"Realtime System One","icon":"bolt","href":"/gateway/realtime-systemone"}]},{"group":"MCP","pages":[{"title":"MCP Server","sidebarTitle":"Overview","icon":"plug","href":"/gateway/mcp-server"},{"title":"MCP Authentication","sidebarTitle":"Authentication","icon":"key","href":"/gateway/mcp-authentication"},{"title":"Connect an Agent","sidebarTitle":"Connect an Agent","icon":"plug-circle-bolt","href":"/gateway/mcp-clients"},{"title":"MCP Tools","sidebarTitle":"Tools","icon":"wrench","href":"/gateway/mcp-tools"},{"title":"MCP Reference","sidebarTitle":"Reference","icon":"book","href":"/gateway/mcp-reference"}]},{"group":"Misc","pages":[{"title":"FAQ","icon":"message-lines","href":"/gateway/faq"},{"title":"Skills","icon":"wand-magic-sparkles","href":"/gateway/skills"},{"title":"Changelog","icon":"clock-rotate-left","href":"/gateway/changelog"}]}]},{"tab":"Orion","icon":"robot","groups":[{"group":"Overview","pages":[{"title":"Introduction","icon":"robot","href":"/agents/introduction"},{"title":"Chat with Orion","icon":"comments","href":"/agents/chat"},{"title":"Pricing","sidebarTitle":"Pricing","icon":"dollar-sign","href":"/pricing"}]},{"group":"Orion","pages":[{"title":"Toolsets","icon":"toolbox","href":"/agents/toolsets"},{"title":"Code Execution","icon":"terminal","href":"/agents/code-execution"}]},{"group":"Input \u0026 Outputs","pages":[{"title":"Multi-modal Inputs","icon":"file-upload","href":"/agents/inputs"},{"title":"Structured Responses","icon":"brackets-curly","href":"/agents/structured-responses"},{"title":"Multi-modal Artifacts","icon":"box-open","href":"/agents/artifacts"},{"title":"Supported Files","icon":"file","mode":"wide","href":"/supported-files"}]},{"group":"Skills","pages":[{"title":"Orion Skills","icon":"wand-magic-sparkles","href":"/skills/introduction"},{"title":"Quickstart","icon":"rocket","href":"/skills/quickstart"},{"title":"Reference","icon":"book","href":"/skills/reference"},{"group":"Use Skills","expanded":false,"pages":[{"title":"Model Request","icon":"image","href":"/skills/usage/generation"},{"title":"Agent Execution","icon":"robot","href":"/skills/usage/agent"},{"title":"Chat Completions","icon":"comments","href":"/skills/usage/chat"},{"title":"Version Pinning","icon":"thumbtack","href":"/skills/usage/version-pinning"}]},{"group":"Manage Skills","expanded":false,"pages":[{"title":"Create Skills","icon":"plus","href":"/skills/manage/create"},{"title":"List \u0026 Lookup","icon":"magnifying-glass","href":"/skills/manage/list-lookup"},{"title":"Update Skills","icon":"arrows-rotate","href":"/skills/manage/update"}]},{"group":"Skill Specification","expanded":false,"pages":[{"title":"Skill Structure","icon":"folder-tree","href":"/skills/spec/overview"},{"title":"SKILL.md","icon":"file-lines","href":"/skills/spec/skill-md"},{"title":"vlmrun.yaml","icon":"gears","href":"/skills/spec/vlmrun-yaml"},{"title":"schema.json","icon":"brackets-curly","href":"/skills/spec/schema-json"}]}]},{"group":"Platform","pages":[{"title":"Platform","sidebarTitle":"Overview","icon":"play","href":"/platform/overview"},{"title":"Chat","icon":"comments","href":"/platform/chat"},{"title":"Settings","icon":"gear","href":"/platform/settings"},{"title":"Webhooks","icon":"webhook","href":"/webhooks"}]},{"group":"Observability","pages":[{"title":"Observe","sidebarTitle":"Overview","icon":"chart-line","href":"/platform/observe/overview"},{"title":"Requests","icon":"arrow-right-arrow-left","href":"/platform/observe/requests"},{"title":"Executions","icon":"list-check","href":"/platform/observe/executions"},{"title":"Completions","icon":"comment","href":"/platform/observe/completions"},{"title":"Evaluations","icon":"chart-line","href":"/platform/observe/evaluations"}]},{"group":"Frameworks","pages":[{"title":"OpenAI Compatibility","icon":"plug","href":"/agents/integrations/integrations-openai-compatibility"},{"title":"Instructor Compatibility","icon":"code","href":"/agents/integrations/integrations-instructor"},{"title":"Mastra Compatibility","icon":"plug","href":"/agents/integrations/integrations-mastra"},{"title":"Pydantic AI Compatibility","icon":"code","href":"/agents/integrations/integrations-pydantic-ai"}]},{"group":"Integrations","pages":[{"title":"Zapier","icon":"bolt","href":"/integrations/integrations-zapier"},{"title":"n8n","icon":"gear","href":"/integrations/integrations-n8n"},{"title":"Voxel51 FiftyOne","icon":"eye","href":"/integrations/integrations-voxel51"},{"title":"MongoDB","icon":"database","href":"/integrations/integrations-mongodb"}]}]},{"tab":"Guides","icon":"book-open","groups":[{"group":"Gateway","pages":[{"title":"Document OCR","icon":"file-lines","href":"/gateway/guides/document-ocr"},{"title":"Word Boxes","icon":"highlighter","href":"/gateway/guides/word-boxes"},{"title":"Document Classification","icon":"folder-tree","href":"/gateway/guides/document-classification"},{"title":"Field Extraction","icon":"table-list","href":"/gateway/guides/systemone-field-extraction"}]},{"group":"Documents","pages":[{"title":"Parsing Documents","icon":"book","href":"/guides/doc-ai/guide-parsing-documents"},{"title":"Classifying Documents","icon":"tag","href":"/guides/doc-ai/guide-classifying-documents"},{"title":"Document Redaction \u0026 Edit","icon":"shield-check","href":"/guides/doc-ai/guide-document-redaction"},{"title":"Parsing Invoices","icon":"file-invoice","href":"/guides/doc-ai/guide-parsing-invoices"},{"title":"Parsing Intake Forms","icon":"user-plus","href":"/guides/doc-ai/guide-healthcare-parsing-intake-forms"},{"title":"Providing Feedback","icon":"thumbs-up","href":"/guides/feedback"}]},{"group":"Images","pages":[{"title":"Classifying Images","icon":"tag","href":"/guides/image-ai/guide-classifying-images"},{"title":"Cataloging Images","icon":"magnifying-glass","href":"/guides/image-ai/guide-cataloging-images"}]},{"group":"Video and audio","pages":[{"title":"Transcribing Video","icon":"video","href":"/guides/video-ai/guide-video-transcription"},{"title":"Transcribing Audio","icon":"headphones","href":"/guides/audio-ai/guide-audio-transcription"}]}]},{"tab":"API reference","icon":"server","anchors":[{"anchor":"Gateway API","icon":"network-wired","groups":[{"group":"OpenAI Compatible API","pages":[{"title":"Health","icon":"heartbeat","openapi":"https://gateway.vlm.run/openapi.json GET /health","href":"/gateway/api-reference/get-health"},{"title":"Chat Completions","icon":"comments","openapi":"https://gateway.vlm.run/openapi.json POST /openai/chat/completions","href":"/gateway/api-reference/post-chat-completions"},{"title":"List Models","icon":"table-list","openapi":"https://gateway.vlm.run/openapi.json GET /openai/models","href":"/gateway/api-reference/get-models"},{"title":"Get Model","icon":"cube","openapi":"https://gateway.vlm.run/openapi.json GET /openai/models/{model_id}","href":"/gateway/api-reference/get-model-by-id"},{"title":"Get Completion","icon":"receipt","openapi":"https://gateway.vlm.run/openapi.json GET /openai/completions/{completion_id}","href":"/gateway/api-reference/get-completion"},{"title":"Embeddings","icon":"vector-square","openapi":"https://gateway.vlm.run/openapi.json POST /openai/embeddings","href":"/gateway/api-reference/post-embeddings"},{"title":"Audio Transcriptions","icon":"microphone","openapi":"https://gateway.vlm.run/openapi.json POST /openai/audio/transcriptions","href":"/gateway/api-reference/post-audio-transcriptions"}]},{"group":"TypeSafe Compatible API","pages":[{"title":"System One","openapi":"https://gateway.vlm.run/openapi.json POST /typesafe/v1/systemone","icon":"scale-balanced","href":"/gateway/api-reference/post-systemone"},{"title":"List Models","openapi":"https://gateway.vlm.run/openapi.json GET /typesafe/v1/models","icon":"table-list","href":"/gateway/api-reference/get-typesafe-models"}]},{"group":"Realtime API","pages":[{"title":"Realtime Frames","icon":"video","href":"/gateway/api-reference/ws-realtime"},{"title":"Realtime System One","icon":"bolt","href":"/gateway/api-reference/ws-systemone"}]}]},{"anchor":"Orion API","icon":"robot","groups":[{"group":"Getting started","pages":[{"title":"Overview","icon":"book","href":"/api-reference/index"},{"title":"Health","openapi":"https://api.vlm.run/openapi.json GET /v1/health","href":"/api-reference/v1/health"}]},{"group":"Chat Completions","pages":[{"title":"Chat Completions","openapi":"https://api.vlm.run/openapi.json POST /v1/openai/chat/completions","href":"/api-reference/v1/post-chat-completions"},{"title":"List models","openapi":"https://api.vlm.run/openapi.json GET /v1/models","href":"/api-reference/v1/get-models"}]},{"group":"Generate","pages":[{"title":"Structured Extraction","href":"/api-reference/structured-extraction"},{"title":"Image → JSON","openapi":"https://api.vlm.run/openapi.json POST /v1/image/generate","href":"/api-reference/v1/post-image-generate"},{"title":"Doc → JSON","openapi":"https://api.vlm.run/openapi.json POST /v1/document/generate","href":"/api-reference/v1/post-document-generate"},{"title":"Audio → JSON","openapi":"https://api.vlm.run/openapi.json POST /v1/audio/generate","href":"/api-reference/v1/post-audio-generate"},{"title":"Video → JSON","openapi":"https://api.vlm.run/openapi.json POST /v1/video/generate","href":"/api-reference/v1/post-video-generate"},{"title":"Get Prediction by ID","openapi":"https://api.vlm.run/openapi.json GET /v1/predictions/{id}","href":"/api-reference/v1/predictions/get-predictions-by-id"},{"title":"Get Predictions","openapi":"https://api.vlm.run/openapi.json GET /v1/predictions","href":"/api-reference/v1/predictions/get-predictions-list"}]},{"group":"Agents","pages":[{"title":"Lookup Agent","openapi":"https://api.vlm.run/openapi.json POST /v1/agent/lookup","href":"/api-reference/v1/post-agent-lookup"},{"title":"List Agents","openapi":"https://api.vlm.run/openapi.json GET /v1/agent","href":"/api-reference/v1/get-agent"},{"title":"Create Agent","openapi":"https://api.vlm.run/openapi.json POST /v1/agent/create","href":"/api-reference/v1/post-agent-create"},{"title":"Execute Agent","openapi":"https://api.vlm.run/openapi.json POST /v1/agent/execute","href":"/api-reference/v1/post-agent-execute"},{"title":"Get Execution by ID","openapi":"https://api.vlm.run/openapi.json GET /v1/agent/executions/{id}","href":"/api-reference/v1/get-agent-executions-by-id"},{"title":"List Executions","openapi":"https://api.vlm.run/openapi.json GET /v1/agent/executions","href":"/api-reference/v1/get-agent-executions"}]},{"group":"Files","pages":[{"title":"Upload File","openapi":"https://api.vlm.run/openapi.json POST /v1/files","href":"/api-reference/v1/files/post-file-upload"},{"title":"Get File by ID","openapi":"https://api.vlm.run/openapi.json GET /v1/files/{file_id}","href":"/api-reference/v1/files/get-files-by-id"},{"title":"List Files","openapi":"https://api.vlm.run/openapi.json GET /v1/files","href":"/api-reference/v1/files/get-files-list"},{"title":"Delete File","openapi":"https://api.vlm.run/openapi.json DELETE /v1/files/{file_id}","href":"/api-reference/v1/files/delete-file"},{"title":"Get Artifact","openapi":"https://api.vlm.run/openapi.json GET /v1/artifacts","href":"/api-reference/v1/get-artifact-by-id"}]},{"group":"Skills","pages":[{"title":"List Skills","openapi":"https://api.vlm.run/openapi.json GET /v1/skills","href":"/api-reference/v1/skills/get-skills-list"},{"title":"Lookup Skill","openapi":"https://api.vlm.run/openapi.json POST /v1/skills/lookup","href":"/api-reference/v1/skills/post-skill-lookup"},{"title":"Get Skill","openapi":"https://api.vlm.run/openapi.json GET /v1/skills/{skill_id}","href":"/api-reference/v1/skills/get-skill-by-id"},{"title":"Create Skill","openapi":"https://api.vlm.run/openapi.json POST /v1/skills/create","href":"/api-reference/v1/skills/post-skill-create"},{"title":"Update Skill","openapi":"https://api.vlm.run/openapi.json POST /v1/skills/{skill_id}/update","href":"/api-reference/v1/skills/post-skill-update"},{"title":"Get Skill Download URL","openapi":"https://api.vlm.run/openapi.json GET /v1/skills/{skill_id}/download","href":"/api-reference/v1/skills/get-skill-download"}]},{"group":"Feedback","pages":[{"title":"Submit Feedback","openapi":"https://api.vlm.run/openapi.json POST /v1/feedback/submit","href":"/api-reference/v1/post-submit-feedback"}]}]}]},{"tab":"Developers","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Getting Started","sidebarTitle":"Introduction","href":"/sdk-reference/getting-started"}]},{"group":"SDKs","pages":[{"group":"Python","expanded":false,"pages":[{"title":"SDK Overview","href":"/sdk-reference/components/overview"},{"title":"Client Reference","href":"/sdk-reference/components/client"},{"title":"client.agent","href":"/sdk-reference/components/agent"},{"title":"client.files","href":"/sdk-reference/components/files"},{"title":"client.models","href":"/sdk-reference/components/models"},{"title":"client.hub","href":"/sdk-reference/components/hub"},{"title":"client.image","href":"/sdk-reference/predictions/image"},{"title":"client.document","href":"/sdk-reference/predictions/document"},{"title":"client.audio","href":"/sdk-reference/predictions/audio"},{"title":"client.video","href":"/sdk-reference/predictions/video"},{"title":"client.predictions","href":"/sdk-reference/components/predictions"},{"title":"client.gateway","href":"/sdk-reference/components/gateway"}]},{"group":"Node.js","expanded":false,"pages":[{"title":"Getting Started","href":"/sdk-reference/node/getting-started"},{"title":"client","href":"/sdk-reference/node/components/client"},{"title":"client.agent","href":"/sdk-reference/node/components/agent"},{"title":"client.files","href":"/sdk-reference/node/components/files"},{"title":"client.models","href":"/sdk-reference/node/components/models"},{"title":"client.hub","href":"/sdk-reference/node/components/hub"},{"title":"client.image","href":"/sdk-reference/node/predictions/image"},{"title":"client.document","href":"/sdk-reference/node/predictions/document"},{"title":"client.audio","href":"/sdk-reference/node/predictions/audio"},{"title":"client.video","href":"/sdk-reference/node/predictions/video"},{"title":"client.predictions","href":"/sdk-reference/node/components/predictions"},{"title":"client.gateway","href":"/sdk-reference/node/components/gateway"}]}]},{"group":"CLI","pages":[{"title":"Getting Started","icon":"terminal","href":"/cli/getting-started"},{"title":"config","icon":"gear","href":"/cli/config"},{"title":"files","icon":"file","href":"/cli/files"},{"title":"skills","icon":"wand-magic-sparkles","href":"/cli/skills"}]},{"group":"CLI - Gateway","pages":[{"title":"gateway","sidebarTitle":"gw","icon":"network-wired","href":"/cli/gateway"},{"title":"chat","sidebarTitle":"gw chat","icon":"comments","href":"/cli/gateway/chat"},{"title":"systemone","sidebarTitle":"gw systemone","icon":"scale-balanced","href":"/cli/gateway/systemone"}]},{"group":"CLI - Orion","pages":[{"title":"chat","icon":"comments","href":"/cli/chat"},{"title":"execute","icon":"bolt","href":"/cli/execute"},{"title":"executions","icon":"clock-rotate-left","href":"/cli/executions"}]}]}]},"basePath":"","title":"Caption \u0026 Tag - VLM Run","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["07c022d89b"],"chunks":["Frame-D2acuaLg.js","DynamicMarkdown-Co5nikxh.js"]}