{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"JoggAI API","colors":{"primary":"#2E5CFF","light":"#2E5CFF","dark":"#2E5CFF"},"logo":{"light":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312320557.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=60564135d6f732afa55cb2402b5b822d","dark":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Dark-logo.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=aa8916e58a85e73105f1d28ef6357d6f"},"favicon":"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312319951.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=7670acffaa09107ec308969f94fe1f17","navbar":{"links":[{"href":"mailto:support@jogg.ai","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://app.jogg.ai/"}},"footer":{"socials":{"x":"https://x.com/Jogg_ai","facebook":"https://www.facebook.com/profile.php?id=61560344774204","linkedin":"https://www.linkedin.com/company/jogg-ai","youtube":"https://www.youtube.com/@joggai","discord":"https://discord.gg/RwrwZcSRCq"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Roadmap","icon":"pencil","href":"https://updates.jogg.ai/roadmap"},{"anchor":"Changelog","icon":"code","href":"https://updates.jogg.ai/changelog"},{"anchor":"Share Your Ideas","icon":"envelope","href":"https://updates.jogg.ai/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"joggai","hasAudioNarration":false,"actualSubdomain":"joggai","customDomains":["docs.jogg.ai"],"gitSource":{"type":"github","owner":"joggai-tech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6af183882126ef8f812fc240","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":57},{"language":"default","tag":"Workflows Guides","count":13},{"language":"default","tag":"Video","count":13},{"language":"default","tag":"Avatar","count":7},{"language":"default","tag":"Asset","count":5},{"language":"default","tag":"Webhook","count":5},{"language":"default","tag":"Create Avatar Videos","count":4},{"language":"default","tag":"QuickStart","count":4},{"language":"default","tag":"Voice","count":4},{"language":"default","tag":"Product","count":2}]},"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":"llms-txt-v2","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/v2/Video/CreateVideoWithTemplate","slug":"/api-reference/v2/Video/CreateVideoWithTemplate","pageMetadata":{"title":"Create Video with Template","openapi":"POST /v2/create_video_with_template","description":"Create a video using a template with custom variables and settings.\nTemplates support various variable types including text, image, video, and script.\n","href":"/api-reference/v2/Video/CreateVideoWithTemplate"},"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: \"Create a video using a template with custom variables and settings.\\nTemplates support various variable types including text, image, video, and script.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Create a video using a pre-designed template. Templates provide consistent branding and faster video creation.`}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsx(Heading,{level:`3`,id:`basic-example-with-text-and-script-variables`,children:`Basic Example with Text and Script Variables`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.jogg.ai/v2/create_video_with_template'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template_id\": 1234,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"video_name\": \"Product Showcase\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_id\": 127,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_type\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_language\": \"english\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_id\": \"en-US-ChristopherNeural\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"variables\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"text\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"product_name\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Amazing Smart Watch\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Check out our amazing product!\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-with-image-variable-url`,children:`Example with Image Variable (URL)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.jogg.ai/v2/create_video_with_template'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template_id\": 1234,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_language\": \"english\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"variables\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"product_image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/product.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Check out this amazing product!\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-with-image-variable-asset-id`,children:`Example with Image Variable (Asset ID)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.jogg.ai/v2/create_video_with_template'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template_id\": 1234,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_language\": \"english\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"variables\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"product_image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"asset_id\": 5678`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"script\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"Check out this amazing product!\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`variable-properties`,children:`Variable Properties`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`For text/script type: Required, the text content. For image/video type: Optional, can be used as URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Media resource URL for image/video type (choose url or asset_id)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`asset_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Asset ID for image/video type, obtained from /v2/upload/asset (choose url or asset_id)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`related-guides`,children:`Related Guides`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Get Templates`,href:`/api-reference/v2/Template/GetTemplates`,children:_jsx(_components.p,{children:`Browse available templates`})}),_jsx(Card,{title:`Upload Media`,href:`/api-reference/v2/API Documentation/UploadMedia`,children:_jsx(_components.p,{children:`Upload assets to get asset_id`})})]})]})}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":{"config":{},"pageMetadata":{"title":"Create Video with Template","openapi":"POST /v2/create_video_with_template","description":"Create a video using a template with custom variables and settings.\nTemplates support various variable types including text, image, video, and script.\n","href":"/api-reference/v2/Video/CreateVideoWithTemplate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example Usage","slug":"example-usage","depth":2,"children":[{"title":"Basic Example with Text and Script Variables","slug":"basic-example-with-text-and-script-variables","depth":3,"children":[]},{"title":"Example with Image Variable (URL)","slug":"example-with-image-variable-url","depth":3,"children":[]},{"title":"Example with Image Variable (Asset ID)","slug":"example-with-image-variable-asset-id","depth":3,"children":[]}]},{"title":"Variable Properties","slug":"variable-properties","depth":2,"children":[]},{"title":"Related Guides","slug":"related-guides","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Video"],"summary":"Create video from template","description":"Create a video using a template with custom variables and settings.\nTemplates support various variable types including text, image, video, and script.\n","requestBody":"7eb2caa2-08fd-43e3-9d72-cc4fad4ee6f8","responses":{"200":"7b84875f-4531-4477-9132-b680e87231ce"},"method":"post","type":"path","servers":["96615429-67a8-4f47-8174-a31957b3c19f"],"security":["71ba0c86-b503-42ce-a9fe-0fa52c0002ef"],"path":"/v2/create_video_with_template","baseUrlOptions":["https://api.jogg.ai"],"title":"Create video from template","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["template_id","voice_language","variables"],"properties":{"template_id":{"type":"integer","description":"Template ID","example":1234,"isRequired":true,"uniqueKey":"template_id","typeLabel":"integer"},"voice_language":{"type":"string","description":"Voice language for text-to-speech","example":"english","isRequired":true,"uniqueKey":"voice_language","typeLabel":"string"},"variables":{"type":"array","description":"Variables to replace in the template","items":{"type":"object","required":["type","name","properties"],"properties":{"type":{"type":"string","description":"Variable type","enum":["text","image","video","script"],"isRequired":true,"uniqueKey":"variables.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Variable name","isRequired":true,"uniqueKey":"variables.items.[INDEX].name","typeLabel":"string"},"properties":{"type":"object","properties":{"content":{"type":"string","description":"Variable content:\n* For text/script type: Required, the text content\n* For image/video type: Optional, can be used as URL (compatible with url field)\n","example":"Product description text","uniqueKey":"variables.items.[INDEX].properties.content","typeLabel":"string"},"url":{"type":"string","description":"Media resource URL for image/video type.\nEither url or asset_id is required for image/video type.\n","format":"uri","example":"https://res.jogg.ai/media/image.jpg","uniqueKey":"variables.items.[INDEX].properties.url","typeLabel":"string\u003curi>"},"asset_id":{"type":"integer","description":"Asset ID for image/video type.\nObtained after uploading via /v2/upload/asset endpoint.\nEither url or asset_id is required for image/video type.\n","example":12345,"uniqueKey":"variables.items.[INDEX].properties.asset_id","typeLabel":"integer"},"webhook_url":{"type":"string","description":"Webhook URL for status notifications","format":"uri","example":"https://example.com/webhook","uniqueKey":"variables.items.[INDEX].properties.webhook_url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"variables.items.[INDEX].properties","typeLabel":"object"}},"uniqueKey":"variables.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"variables","typeLabel":"object[]"},"video_name":{"type":"string","description":"Custom name for the video","example":"My Template Video","uniqueKey":"video_name","typeLabel":"string"},"avatar_id":{"type":"integer","description":"Digital person ID","example":1,"uniqueKey":"avatar_id","typeLabel":"integer"},"avatar_type":{"type":"integer","description":"Source type of the avatar:\n* 0 - Public avatar\n* 1 - Custom avatar\n","enum":[0,1],"example":0,"uniqueKey":"avatar_type","typeLabel":"enum\u003cinteger>"},"voice_id":{"type":"string","description":"Voice ID for text-to-speech","example":"en-US-ChristopherNeural","uniqueKey":"voice_id","typeLabel":"string"},"captions_enabled":{"type":"boolean","description":"Enable captions/subtitles","example":true,"uniqueKey":"captions_enabled","typeLabel":"boolean"},"background_music_id":{"type":"integer","description":"Background music ID","example":1,"uniqueKey":"background_music_id","typeLabel":"integer"},"disable_random_trans":{"type":"boolean","description":"Disable random transitions","example":false,"uniqueKey":"disable_random_trans","typeLabel":"boolean"},"disable_random_moving":{"type":"boolean","description":"Disable random image effects","example":false,"uniqueKey":"disable_random_moving","typeLabel":"boolean"},"disable_trans":{"type":"boolean","description":"Disable all transitions","example":false,"uniqueKey":"disable_trans","typeLabel":"boolean"},"disable_moving":{"type":"boolean","description":"Disable all image effects","example":false,"uniqueKey":"disable_moving","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"template_id":1234,"voice_language":"english","variables":[{"name":"\u003cstring>","properties":{"content":"Product description text","url":"https://res.jogg.ai/media/image.jpg","asset_id":12345,"webhook_url":"https://example.com/webhook"}}],"video_name":"My Template Video","avatar_id":1,"avatar_type":0,"voice_id":"en-US-ChristopherNeural","captions_enabled":true,"background_music_id":1,"disable_random_trans":false,"disable_random_moving":false,"disable_trans":false,"disable_moving":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7b84875f-4531-4477-9132-b680e87231ce":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["code","msg"],"properties":{"code":{"type":"integer","description":"Business status code:\n* 0 - Success\n* 10104 - Record not found\n* 10105 - Invalid API key\n* 18020 - Insufficient credit\n* 18025 - No permission to call APIs\n* 40000 - Parameter error\n* 50000 - System error\n","example":0,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"Response message","example":"Success","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"video_id":{"type":"string","description":"Created video ID","example":"video_123456","uniqueKey":"data.video_id","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":0,"msg":"Success","data":{"video_id":"video_123456"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"71ba0c86-b503-42ce-a9fe-0fa52c0002ef":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"96615429-67a8-4f47-8174-a31957b3c19f":{"url":"https://api.jogg.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication. Obtain your key from the JoggAI dashboard.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/v2/openapi-v2.yaml"},"subdomain":"joggai","siteName":"JoggAI API","title":"Create Video with Template - JoggAI API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-20T06:56:57.937Z","originalFileLocation":"api-reference/v2/Video/CreateVideoWithTemplate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Create a video using a template with custom variables and settings. Templates support various variable types including text, image, video, and script.\">\u003cmeta data-mint-head name=\"application-name\" content=\"JoggAI API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_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/joggai/MKGGnsZD94NcUa6d/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Video with Template - JoggAI API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a video using a template with custom variables and settings. Templates support various variable types including text, image, video, and script.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"JoggAI API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://joggai.mintlify.site/_mintlify/api/og/v2?division=Video\u0026amp;title=Create+Video+with+Template\u0026amp;description=Create+a+video+using+a+template+with+custom+variables+and+settings.%0ATemplates+support+various+variable+types+including+text%2C+image%2C+video%2C+and+script.%0A\u0026amp;theme=45f50e3d65156d794d2965b2\u0026amp;signature=c8f71225af17c60968398d30d5b999c46de95ea31db51545f403f50aee7e1635\">\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=\"Create Video with Template - JoggAI API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a video using a template with custom variables and settings. Templates support various variable types including text, image, video, and script.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://joggai.mintlify.site/_mintlify/api/og/v2?division=Video\u0026amp;title=Create+Video+with+Template\u0026amp;description=Create+a+video+using+a+template+with+custom+variables+and+settings.%0ATemplates+support+various+variable+types+including+text%2C+image%2C+video%2C+and+script.%0A\u0026amp;theme=45f50e3d65156d794d2965b2\u0026amp;signature=c8f71225af17c60968398d30d5b999c46de95ea31db51545f403f50aee7e1635\">\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/joggai/MKGGnsZD94NcUa6d/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"JoggAI API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E5CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/Video/CreateVideoWithTemplate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.jogg.ai/#organization\",\"name\":\"JoggAI API\",\"url\":\"https://docs.jogg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/logo/Group%201312320557.png?fit=max\u0026auto=format\u0026n=2WfnmgQwwQkeXdv3\u0026q=85\u0026s=60564135d6f732afa55cb2402b5b822d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.jogg.ai#website\",\"name\":\"JoggAI API\",\"url\":\"https://docs.jogg.ai\",\"publisher\":{\"@id\":\"https://docs.jogg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate#webpage\",\"url\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate\",\"name\":\"Create Video with Template\",\"description\":\"Create a video using a template with custom variables and settings. Templates support various variable types including text, image, video, and script.\",\"dateModified\":\"2026-03-20T06:56:57.937Z\",\"isPartOf\":{\"@id\":\"https://docs.jogg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video\",\"item\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoFromAvatar\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Video with Template\",\"item\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate#apireference\",\"headline\":\"Create Video with Template\",\"name\":\"Create Video with Template\",\"description\":\"Create a video using a template with custom variables and settings. Templates support various variable types including text, image, video, and script.\",\"url\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.jogg.ai/api-reference/v2/Video/CreateVideoWithTemplate#webpage\"},\"dateModified\":\"2026-03-20T06:56:57.937Z\",\"publisher\":{\"@id\":\"https://docs.jogg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.jogg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"JoggAI API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"JoggAI API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/Video/CreateVideoWithTemplate.md","siteName":"JoggAI API","nav":{"global":{"anchors":[{"anchor":"Roadmap","icon":"pencil","href":"https://updates.jogg.ai/roadmap"},{"anchor":"Changelog","icon":"code","href":"https://updates.jogg.ai/changelog"},{"anchor":"Share Your Ideas","icon":"envelope","href":"https://updates.jogg.ai/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/WelcometoJoggAI"}]},{"tab":"API Documentation","groups":[{"group":"QuickStart","pages":[{"title":"Getting Started","href":"/api-reference/v2/QuickStart/GettingStarted"},{"title":"Pricing","href":"/api-reference/v2/QuickStart/Pricing"},{"title":"Error Handling","href":"/api-reference/v2/QuickStart/ErrorHandling"},{"title":"Rate Limits","href":"/api-reference/v2/QuickStart/RateLimits"}]},{"group":"Workflows Guides","pages":[{"group":"Create Avatar Videos","pages":[{"title":"Create Talking Avatar Videos","href":"/api-reference/v2/API Documentation/CreateAvatarVideos"},{"title":"Avatar Videos with Photo Avatars","href":"/api-reference/v2/API Documentation/AvatarVideosWithPhotoAvatar"},{"title":"Avatar Videos with Transparent Background","href":"/api-reference/v2/API Documentation/AvatarVideosTransparentBackground"},{"title":"Avatar Videos with Custom Audio","href":"/api-reference/v2/API Documentation/AvatarVideosWithAudioSource"}]},{"title":"Create Video from URL/Product","href":"/api-reference/v2/API Documentation/URLtoVideo"},{"title":"Create Video from Template","href":"/api-reference/v2/API Documentation/CreateVideoFromTemplate"},{"title":"Lip Sync Video","href":"/api-reference/v2/API Documentation/LipSyncVideo"},{"title":"Video Translation","href":"/api-reference/v2/API Documentation/VideoTranslation"},{"title":"Create Photo Avatar","href":"/api-reference/v2/API Documentation/CreatePhotoAvatar"},{"title":"Upload Media Assets","href":"/api-reference/v2/API Documentation/UploadMedia"},{"title":"AI Script Generation","href":"/api-reference/v2/API Documentation/AIScripts"},{"title":"Webhook Integration Guide","href":"/api-reference/v2/API Documentation/WebhookIntegration"},{"title":"Check Video Result \u0026 Status","href":"/api-reference/v2/API Documentation/GetResult"}]},{"group":"Video","pages":[{"title":"Create Video from Avatar","openapi":"POST /v2/create_video_from_avatar","href":"/api-reference/v2/Video/CreateVideoFromAvatar"},{"title":"Get Avatar Video Status","openapi":"GET /v2/avatar_video/{id}","href":"/api-reference/v2/Video/AvatarVideoGet"},{"title":"Create Video from Product","openapi":"POST /v2/create_video_from_product","href":"/api-reference/v2/Video/CreateVideoFromProduct"},{"title":"Submit Preview List","openapi":"POST /v2/create_video_from_product/preview_list","href":"/api-reference/v2/Video/SubmitPreviewList"},{"title":"Render Video from Preview","openapi":"POST /v2/create_video_from_product/render_single_preview","href":"/api-reference/v2/Video/RenderSinglePreview"},{"title":"Get Product Video Status","openapi":"GET /v2/product_video/{product_video_id}","description":"Get the current status and details of a product video generation","href":"/api-reference/v2/Video/ProductVideoGet"},{"title":"Create Video with Template","openapi":"POST /v2/create_video_with_template","href":"/api-reference/v2/Video/CreateVideoWithTemplate"},{"title":"Get Template Video","openapi":"GET /v2/template_video/{video_id}","description":"Retrieve video information, status, and metadata by video ID","href":"/api-reference/v2/Video/TemplateVideoGet"},{"title":"Create Lip Sync Video Task","openapi":"POST /v2/create_lip_sync_video","href":"/api-reference/v2/Video/CreateLipSyncVideo"},{"title":"Get Lip Sync Video Task","openapi":"GET /v2/lip_sync_video/{task_id}","href":"/api-reference/v2/Video/GetLipSyncVideo"},{"title":"Translate Video","openapi":"POST /v2/video_translate/","href":"/api-reference/v2/Video/VideoTranslateCreate"},{"title":"Check Translation Status","openapi":"GET /v2/video_translate/{video_translate_id}","href":"/api-reference/v2/Video/VideoTranslateGet"},{"title":"Get Target Languages","openapi":"GET /v2/video_translate/target_languages","href":"/api-reference/v2/Video/VideoTranslateTargetLanguagesList"}]},{"group":"Avatar","pages":[{"title":"Get Public Avatars","openapi":"GET /v2/avatars/public","href":"/api-reference/v2/Avatar/PublicAvatarsGet"},{"title":"Get Custom Avatars","openapi":"GET /v2/avatars/custom","href":"/api-reference/v2/Avatar/CustomAvatarsGet"},{"title":"Get Photo Avatars","openapi":"GET /v2/avatars/photo_avatars","href":"/api-reference/v2/Avatar/PhotoAvatarsGet"},{"title":"Generate Photo Avatar","openapi":"POST /v2/photo_avatar/photo/generate","href":"/api-reference/v2/Avatar/PhotoAvatarGenerate"},{"title":"Get Photo Avatar Status","openapi":"GET /v2/photo_avatar/photo","href":"/api-reference/v2/Avatar/PhotoAvatarStatusGet"},{"title":"Add Motion to Photo Avatar","openapi":"POST /v2/photo_avatar/add_motion","href":"/api-reference/v2/Avatar/PhotoAvatarMotionAdd"},{"title":"Check Motion Status","openapi":"GET /v2/photo_avatar","href":"/api-reference/v2/Avatar/MotionStatusCheck"}]},{"group":"Voice","pages":[{"title":"Get Voices","openapi":"GET /v2/voices","href":"/api-reference/v2/Voice/GetVoices"},{"title":"Get Custom Voices","openapi":"GET /v2/voices/custom","href":"/api-reference/v2/Voice/GetCustomVoices"},{"title":"Synthesize Speech","openapi":"POST /v2/audio/tts/synthesize","href":"/api-reference/v2/Voice/SynthesizeSpeech"},{"title":"Get Speech Task","openapi":"GET /v2/audio/tts/tasks/{task_id}","href":"/api-reference/v2/Voice/GetSpeechTask"}]},{"group":"Asset","pages":[{"title":"Create AI Script","openapi":"POST /v2/ai_scripts","href":"/api-reference/v2/Asset/CreateAIScript"},{"title":"Get AI Script Result","openapi":"GET /v2/ai_scripts/results/{task_id}","href":"/api-reference/v2/Asset/GetAIScriptResult"},{"title":"Get Background Music","openapi":"GET /v2/musics","href":"/api-reference/v2/Asset/GetMusic"},{"title":"Get Visual Styles","openapi":"GET /v2/visual_styles","href":"/api-reference/v2/Asset/GetVisualStyles"},{"title":"Upload Asset","openapi":"POST /v2/upload/asset","href":"/api-reference/v2/Asset/UploadAsset"}]},{"group":"Template","pages":[{"title":"Get Templates","openapi":"GET /v2/templates/custom","href":"/api-reference/v2/Template/GetTemplates"},{"title":"Get Template by ID","openapi":"GET /v2/template/custom/{id}","href":"/api-reference/v2/Template/GetTemplateById"}]},{"group":"Product","pages":[{"title":"Create Product","openapi":"POST /v2/product","href":"/api-reference/v2/Product/CreateProduct"},{"title":"Update Product","openapi":"PUT /v2/product","href":"/api-reference/v2/Product/UpdateProduct"}]},{"group":"User","pages":[{"title":"Get User Info","openapi":"GET /v2/user/whoami","href":"/api-reference/v2/User/GetUserInfo"},{"title":"Get Remaining Quota","openapi":"GET /v2/user/remaining_quota","href":"/api-reference/v2/User/GetRemainingQuota"}]},{"group":"Webhook","pages":[{"title":"List Webhook Endpoints","openapi":"GET /v2/endpoints","href":"/api-reference/v2/Webhook/ListWebhookEndpoints"},{"title":"Add Webhook Endpoint","openapi":"POST /v2/endpoint","href":"/api-reference/v2/Webhook/AddWebhookEndpoint"},{"title":"Update Webhook Endpoint","openapi":"PUT /v2/endpoint/{endpoint_id}","href":"/api-reference/v2/Webhook/UpdateWebhookEndpoint"},{"title":"Delete Webhook Endpoint","openapi":"DELETE /v2/endpoint/{endpoint_id}","href":"/api-reference/v2/Webhook/DeleteWebhookEndpoint"},{"title":"List Webhook Events","openapi":"GET /v2/events","href":"/api-reference/v2/Webhook/ListWebhookEvents"}]}]},{"tab":"V1","hidden":true,"pages":[{"title":"V1","href":"/api-reference/v1/QuickStart/GettingStarted"}]}]},"basePath":"","title":"Create Video with Template - JoggAI API","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}