Run this model interactively with your own prompts.
Quick Start
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/kling-video/v1.5/pro/image-to-video", arguments={ "prompt": "Snowflakes fall as a car moves along the road.", "image_url": "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
import { fal } from "@fal-ai/client";const result = await fal.subscribe("fal-ai/kling-video/v1.5/pro/image-to-video", { input: { prompt: "Snowflakes fall as a car moves along the road.", image_url: "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg" }, logs: true, onQueueUpdate: (update) => { if (update.status === "IN_PROGRESS") { update.logs.map((log) => log.message).forEach(console.log); } },});console.log(result.data);console.log(result.requestId);
curl --request POST \ --url https://fal.run/fal-ai/kling-video/v1.5/pro/image-to-video \ --header "Authorization: Key $FAL_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "Snowflakes fall as a car moves along the road.", "image_url": "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg"}'
Input Schema
string
required
string
required
DurationEnum
default:"5"
The duration of the generated video in seconds Default value: "5"Possible values: 5, 10
AspectRatioEnum
default:"16:9"
The aspect ratio of the generated video frame Default value: "16:9"Possible values: 16:9, 9:16, 1:1
string
URL of the image to be used for the end of the video
string
default:"blur, distort, and low quality"
Default value: "blur, distort, and low quality"
float
default:"0.5"
The CFG (Classifier Free Guidance) scale is a measure of how close you want
the model to stick to your prompt. Default value: 0.5Range: 0 to 1
string
URL of the image for Static Brush Application Area (Mask image created by users using the motion brush)
list<DynamicMask>
List of dynamic masks
Output Schema
File
required
The generated video
Input Example
{ "prompt": "Snowflakes fall as a car moves along the road.", "image_url": "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg", "duration": "5", "aspect_ratio": "16:9", "negative_prompt": "blur, distort, and low quality", "cfg_scale": 0.5, "static_mask_url": "https://storage.googleapis.com/falserverless/kling/new_static_mask.png", "dynamic_masks": [ { "mask_url": "https://storage.googleapis.com/falserverless/kling/new_dynamic_mask.png", "trajectories": [ { "x": 279, "y": 219 }, { "x": 417, "y": 65 } ] } ]}
Run this model interactively with your own prompts.
Quick Start
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/kling-video/v1.5/pro/text-to-video", arguments={ "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse." }, with_logs=True, on_queue_update=on_queue_update,)print(result)
import { fal } from "@fal-ai/client";const result = await fal.subscribe("fal-ai/kling-video/v1.5/pro/text-to-video", { input: { prompt: "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse." }, logs: true, onQueueUpdate: (update) => { if (update.status === "IN_PROGRESS") { update.logs.map((log) => log.message).forEach(console.log); } },});console.log(result.data);console.log(result.requestId);
curl --request POST \ --url https://fal.run/fal-ai/kling-video/v1.5/pro/text-to-video \ --header "Authorization: Key $FAL_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse."}'
Input Schema
string
required
DurationEnum
default:"5"
The duration of the generated video in seconds Default value: "5"Possible values: 5, 10
AspectRatioEnum
default:"16:9"
The aspect ratio of the generated video frame Default value: "16:9"Possible values: 16:9, 9:16, 1:1
string
default:"blur, distort, and low quality"
Default value: "blur, distort, and low quality"
float
default:"0.5"
The CFG (Classifier Free Guidance) scale is a measure of how close you want
the model to stick to your prompt. Default value: 0.5Range: 0 to 1
Output Schema
File
required
The generated video
Input Example
{ "prompt": "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.", "duration": "5", "aspect_ratio": "16:9", "negative_prompt": "blur, distort, and low quality", "cfg_scale": 0.5}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"fal","colors":{"primary":"#5718C0","light":"#C0B1FF","dark":"#5718C0"},"logo":{"light":"https://mintcdn.com/fal-d8505a2e/0cIaYtN4gA36hPQJ/logo/light.svg?fit=max\u0026auto=format\u0026n=0cIaYtN4gA36hPQJ\u0026q=85\u0026s=4b6014d36569092b761c871db9df6a41","dark":"https://mintcdn.com/fal-d8505a2e/0cIaYtN4gA36hPQJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=0cIaYtN4gA36hPQJ\u0026q=85\u0026s=c1760d019183048af07d008cd2377ca4","href":"https://fal.ai/docs"},"favicon":"https://mintcdn.com/fal-d8505a2e/8WsQEbl1OYp5vQ4g/favicon.svg?fit=max\u0026auto=format\u0026n=8WsQEbl1OYp5vQ4g\u0026q=85\u0026s=9b5e82f7c6b96d136d51bce8e2cdd0e2","api":{"params":{"expanded":"all"},"playground":{"display":"interactive","proxy":false},"examples":{"defaults":"required","languages":["curl","python","javascript"],"prefill":true}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://fal.ai/enterprise#contact-sales","label":"Contact Sales"}],"primary":{"type":"button","label":"Login","href":"https://fal.ai/login"}},"footer":{"socials":{"discord":"https://discord.gg/fal-ai","x":"https://twitter.com/fal","github":"https://github.com/fal-ai","linkedin":"https://www.linkedin.com/company/features-and-labels"}},"seo":{"metatags":{"og:image":"/logo/light.svg","google-site-verification":"kcN2RYfXHsfUeWlkX6-E32JdCXwUdHA5w5NIXr2xWTY"},"organization":{"id":"https://fal.ai/#organization","legalName":"Features \u0026 Labels Inc.","url":"https://fal.ai/","logo":"https://fal.ai/apple-touch-icon.png","sameAs":["https://discord.gg/fal-ai","https://github.com/fal-ai","https://www.reddit.com/r/fal/","https://twitter.com/fal","https://www.linkedin.com/company/features-and-labels/","https://www.youtube.com/@Fal.AI.Official","https://www.instagram.com/madeonfal","https://www.tiktok.com/@madeonfal"]}},"fonts":{"heading":{"family":"Focal","source":"https://mintlify-assets.b-cdn.net/fonts/Focal-Regular-Web.woff2","format":"woff2"},"body":{"family":"Public Sans"}},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"posthog":{"apiKey":"phc_BkrygUwvQjwRHnwDjFQtoY77ts2fse3HVTHQUJk5BNO","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["fal has two developer products. Model APIs run hosted models through an API key. fal Serverless deploys your own Python apps and models on fal GPUs.","To call a hosted model, start with the [Quick Start](https://fal.ai/docs/documentation/quickstart.md) and the [Model APIs overview](https://fal.ai/docs/documentation/model-apis/overview.md).","To deploy your own model with fal Serverless, start with these pages:","- [Introduction to Serverless](https://fal.ai/docs/documentation/serverless/index.md): What fal Serverless is and the three ways to deploy on it.","- [Installation \u0026 Setup](https://fal.ai/docs/documentation/development/getting-started/installation.md): Install the fal CLI with `pip install fal` and authenticate.","- [Quick Start](https://fal.ai/docs/documentation/development/getting-started/quick-start.md): Build a Hello World app, test it with `fal run`, and ship it with `fal deploy`.","- [App Lifecycle](https://fal.ai/docs/documentation/development/app-lifecycle.md): How a `fal.App` goes from code to running runners.","- [Define Your Endpoints](https://fal.ai/docs/documentation/development/endpoints-overview.md): Structure the API endpoints that your app exposes.","- [Deploy to Production](https://fal.ai/docs/documentation/deployment/deploy-to-production.md): Persistent URLs, authentication modes, and automatic scaling.","- [Machine Types](https://fal.ai/docs/documentation/deployment/machine-types.md): Available GPU and CPU machine types and how to choose one.","- [Pricing](https://fal.ai/docs/documentation/serverless/pricing.md): Per-second billing and the runner states that are billed.","- [Scaling Parameter Reference](https://fal.ai/docs/documentation/deployment/scale-your-application.md): Parameters that control runners, concurrency, and scale to zero.","- [Optimizing Cold Starts](https://fal.ai/docs/documentation/serverless/optimizations/optimize-cold-starts.md): Causes of cold starts and ways to make them shorter.","- [Examples](https://fal.ai/docs/examples/index.md): Complete Serverless apps for image, video, audio, 3D, realtime, and multi-GPU workloads.","- [Migrating to fal](https://fal.ai/docs/documentation/development/migrating-to-fal.md): Guides to move an existing Docker server or an app from another platform to fal.","fal Serverless deploys need access that the fal team approves for each account. Request access at https://fal.ai/dashboard/serverless-get-started."]},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.fal.ai/"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/fal-ai"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.fal.ai/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fal-d8505a2e","hasAudioNarration":false,"actualSubdomain":"fal-d8505a2e","customDomains":["fal.ai"],"gitSource":{"type":"github","owner":"fal-ai","repo":"fal-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af9dac25a8e334304f99a32","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Documentation","count":199},{"language":"default","tag":"Model API Reference","count":138},{"language":"default","tag":"Serverless","count":100},{"language":"default","tag":"Platform API","count":86},{"language":"default","tag":"API Endpoints","count":83},{"language":"default","tag":"Image Generation","count":60},{"language":"default","tag":"Video Generation","count":60},{"language":"default","tag":"SDK Reference","count":55},{"language":"default","tag":"fal Agent","count":45},{"language":"default","tag":"Development","count":37}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@fal.ai","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"assistant-bash","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":true},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:'Focal Medium';src:url('https://mintlify-assets.b-cdn.net/fonts/Focal-Medium-Web.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}#content-area::after{content:'';position:fixed;top:80px;right:24px;width:85px;height:225px;background:url('/docs/images/page-decoration.svg') no-repeat center;background-size:contain;pointer-events:none;z-index:10;opacity:0.8}.dark #content-area::after{opacity:0.4}@media (max-width: 1325px){#content-area::after{display:none}}#content-area,#content-area>div,[class*=\"prose\"]{max-width:900px!important}#hero-section{position:relative}#hero-section>*{position:relative;z-index:1}ul#sidebar-group>li>a,ul#sidebar-group>li>button{font-weight:600!important}li[data-group-tag]>ul li>a,li[data-group-tag]>ul li>button{margin-left:2rem!important}#sidebar-content{padding-left:1rem;overflow-x:clip;width:350px!important;min-width:350px!important}@media (min-width: 1024px){#sidebar{width:350px!important}#content-container{margin-left:350px!important}#navbar-transition-maple{left:350px!important}}#sidebar-content{background-color:#f7f7f8!important}.dark #sidebar-content{background-color:#14151A!important}@media (min-width: 1024px){ul.w-\\[calc\\(19rem-1px\\)\\]{width:350px!important;background-color:#f7f7f8!important}.dark ul.w-\\[calc\\(19rem-1px\\)\\]{background-color:#14151A!important}}#sidebar-content::before{content:'';position:absolute;top:0;left:-100vw;width:100vw;height:100%;background-color:#f7f7f8;z-index:-1}.dark #sidebar-content::before{background-color:#14151A}.card-group img[data-component-part=\"card-image\"],.card img[data-component-part=\"card-image\"]{aspect-ratio:16 / 9;height:auto!important;object-fit:cover!important;width:100%!important}.code-group pre,pre[class*=\"language-\"]{max-height:600px;overflow-y:auto}@media (min-width: 1024px){div[id=\"content-container\"]{max-width:100%!important}.peer.is-not-center~.peer-\\[\\.is-not-center\\]\\:max-w-8xl,.peer.is-not-custom~.peer-\\[\\.is-not-custom\\]\\:max-w-8xl,.max-w-8xl{max-width:100%!important}}@media (max-width: 1440px){.peer.is-not-center~.peer-\\[\\.is-not-center\\]\\:max-w-8xl,.peer.is-not-custom~.peer-\\[\\.is-not-custom\\]\\:max-w-8xl,.max-w-8xl{max-width:100%!important}}@media (min-width: 1920px){.peer.is-not-center~.peer-\\[\\.is-not-center\\]\\:max-w-8xl,.peer.is-not-custom~.peer-\\[\\.is-not-custom\\]\\:max-w-8xl,.max-w-8xl{max-width:75%!important}}*:not(li.toc-item):not(li.toc-item *):not(.link):not(.flex-1):not(.flex-1 *){border-radius:4px!important}#navbar input,#navbar [id*=\"search\"],nav input,header input{border-radius:4px!important}#navbar button,#navbar a,#navbar a>*,nav button,nav a,nav a>*,header button,header a,header a>*{border-radius:4px!important}a[href*=\"login\"],a[href*=\"login\"]>*{border-radius:4px!important}#navbar a[href=\"https://fal.ai/\"],#navbar a[href=\"https://fal.ai/\"]>*,nav a[href=\"https://fal.ai/\"],nav a[href=\"https://fal.ai/\"]>*,header a[href=\"https://fal.ai/\"],header a[href=\"https://fal.ai/\"]>*{border-radius:0!important}body{font-feature-settings:'ss01' on!important}[data-tooltip],.tooltip-trigger,span[style*=\"border-bottom\"][style*=\"dotted\"],button[data-state]>span[style*=\"dotted\"],span[class*=\"tooltip\"],[data-radix-tooltip-trigger]{border-bottom-color:#5718C0!important;color:#5718C0!important;text-decoration-color:#5718C0!important}.dark [data-tooltip],.dark .tooltip-trigger,.dark span[style*=\"border-bottom\"][style*=\"dotted\"],.dark button[data-state]>span[style*=\"dotted\"],.dark span[class*=\"tooltip\"],.dark [data-radix-tooltip-trigger]{border-bottom-color:#C0B1FF!important;color:#C0B1FF!important;text-decoration-color:#C0B1FF!important}[data-radix-tooltip-content] a,[role=\"tooltip\"] a,[data-state=\"delayed-open\"]~[data-radix-tooltip-content] a,div[class*=\"tooltip\"] a[href]{color:#C0B1FF!important;text-decoration:underline!important;text-decoration-color:#C0B1FF!important}[data-radix-tooltip-content] a:hover,[role=\"tooltip\"] a:hover,div[class*=\"tooltip\"] a[href]:hover{color:#ddd0ff!important;text-decoration-color:#ddd0ff!important}.mcp-card:hover{border-color:#a78bfa!important;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)!important}.dark .mcp-card:hover{border-color:#8b5cf6!important}#serverless-access-popup{position:fixed;bottom:20px;right:20px;max-width:400px;background:white;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 25px rgba(0, 0, 0, 0.1);padding:20px;z-index:9999;animation:slideInUp 0.3s ease-out;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif}.dark #serverless-access-popup{background:#1f2937;border-color:#374151;box-shadow:0 10px 25px rgba(0, 0, 0, 0.3)}#serverless-access-popup.hidden{display:none}@keyframes slideInUp{from{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}#serverless-access-popup .popup-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}#serverless-access-popup .popup-title{font-size:16px;font-weight:600;color:#111827;margin:0}.dark #serverless-access-popup .popup-title{color:#f9fafb}#serverless-access-popup .popup-close{background:none;border:none;font-size:20px;color:#6b7280;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color 0.2s}#serverless-access-popup .popup-close:hover{background-color:#f3f4f6;color:#111827}.dark #serverless-access-popup .popup-close:hover{background-color:#374151;color:#f9fafb}#serverless-access-popup .popup-content{color:#4b5563;font-size:14px;line-height:1.6;margin-bottom:16px}.dark #serverless-access-popup .popup-content{color:#d1d5db}#serverless-access-popup .popup-action{display:inline-block;background-color:#5718C0;color:white;padding:10px 16px;border-radius:6px;text-decoration:none;font-size:14px;font-weight:500;transition:background-color 0.2s;border:none;cursor:pointer}#serverless-access-popup .popup-action:hover{background-color:#4612a0;color:white}@media (max-width: 640px){#serverless-access-popup{left:20px;right:20px;max-width:none}}button[aria-label=\"Try it\"],button[aria-label=\"Send\"],.tryit-button{background-color:rgb(var(--primary-dark) / var(--tw-bg-opacity))}html:has([content=\"Model search - fal\"]) #authorization-authorization [data-component-part=\"field-required-pill\"],html:has([content=\"Model search - fal\"]) [title=\"Authorization\"] [data-component-part=\"field-required-pill\"]{display:none!important}[data-tag=\"Breaking Change\"],.tag[data-tag=\"Breaking Change\"],span:has-text(\"Breaking Change\"){background-color:#fee2e2!important;color:#991b1b!important;border:1px solid #fca5a5!important;font-weight:600!important}.dark [data-tag=\"Breaking Change\"],.dark .tag[data-tag=\"Breaking Change\"],.dark span:has-text(\"Breaking Change\"){background-color:#7f1d1d!important;color:#fecaca!important;border:1px solid #991b1b!important}div:has(>[data-tag=\"Breaking Change\"]){border-left:4px solid #dc2626!important;padding-left:1rem!important}.dark div:has(>[data-tag=\"Breaking Change\"]){border-left-color:#ef4444!important}body:has(#docs-hero-page) #content-area>header,body:has(#docs-hero-page) article>header:first-child,body:has(#docs-hero-page) .prose>h1:first-child,body:has(#docs-hero-page) [class*=\"PageHeader\"],body:has(#docs-hero-page) [class*=\"page-header\"]{display:none!important}.fal-hero-badge{display:inline-flex;align-items:center;gap:0.5rem;padding:0.375rem 0.875rem;background:rgba(87, 24, 192, 0.1);border:1px solid rgba(87, 24, 192, 0.25);border-radius:4px;font-size:0.75rem;color:#5718C0;margin-bottom:1.25rem;font-family:'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;text-transform:uppercase;letter-spacing:0.08em;font-weight:500}.dark .fal-hero-badge{background:rgba(87, 24, 192, 0.15);border-color:rgba(87, 24, 192, 0.35);color:#c0b1ff}.fal-badge-dot{width:6px;height:6px;background:#00ffcc;border-radius:50%;animation:falPulse 2s ease-in-out infinite}@keyframes falPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.4;transform:scale(0.8)}}.fal-hero-title{font-family:'Focal Medium', 'Focal', sans-serif!important;font-size:56px!important;font-weight:500!important;line-height:1!important;margin:16px 0 10px 0!important;padding:0!important;letter-spacing:-1.12px!important;color:#242426!important}.dark .fal-hero-title{color:#fafafa!important}.fal-hero-subtitle{font-family:'Focal Medium', 'Focal', sans-serif;font-size:20px;font-weight:500;line-height:1;letter-spacing:-0.4px;color:#242426;margin-bottom:10px}.dark .fal-hero-subtitle{color:#fafafa}.fal-hero-body{font-size:16px;line-height:1.4;margin-bottom:1rem;color:#787881;letter-spacing:-0.32px}.fal-hero-body strong{color:#242426}.dark .fal-hero-body strong{color:#fafafa}.fal-hero-search{display:flex;align-items:center;width:100%;max-width:360px;padding:8px 10px;font-size:13px;color:#9ca3af;background:white;border:1px solid rgba(18, 18, 22, 0.1);cursor:pointer;text-align:left;transition:border-color 0.2s;margin-bottom:1rem}.fal-hero-search:hover{border-color:rgba(18, 18, 22, 0.2)}.dark .fal-hero-search{background:#1f2937;border-color:rgba(255, 255, 255, 0.1);color:#6b7280}.fal-hero-search-icon{width:14px;height:14px;margin-right:8px;flex-shrink:0;color:#787881}.fal-hero-search-text{flex:1}.fal-hero-mcp-link{display:flex;align-items:center;gap:5px;margin-left:auto;padding:3px 8px;font-size:11px;font-weight:600;color:#5718C0!important;background:rgba(133, 83, 255, 0.08);text-decoration:none!important;white-space:nowrap;transition:background 0.2s}.fal-hero-mcp-link:hover{background:rgba(133, 83, 255, 0.15)}.dark .fal-hero-mcp-link{color:#C0B1FF!important;background:rgba(133, 83, 255, 0.15)}.dark .fal-hero-mcp-link:hover{background:rgba(133, 83, 255, 0.25)}.fal-stats-row{display:flex;gap:0.5rem;flex-wrap:wrap;margin-top:1.5rem}.fal-stat-item{position:relative;display:flex;flex-direction:column;gap:8px;min-width:99px}.fal-stat-value{font-family:'Focal Medium', 'Focal', sans-serif;font-size:24px;font-weight:500;line-height:1;letter-spacing:-0.4px;color:#242426;cursor:default}.dark .fal-stat-value{color:#fafafa}.fal-stat-label{font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.28px;color:#787881}.fal-hero-section{display:flex;gap:2rem;align-items:flex-start;margin-bottom:1.5rem}.fal-hero-text{flex:1;min-width:0}.fal-hero-image{flex:1;min-width:0}.fal-hero-image img{width:100%;height:auto;display:block}.fal-hero-img-dark{display:none!important}.dark .fal-hero-img-light{display:none!important}.dark .fal-hero-img-dark{display:block!important}.dark .fal-hero-img-dark{display:block!important}.fal-feature-card{transition:all 0.3s ease!important;position:relative;overflow:hidden}.fal-feature-card:hover{transform:translateY(-2px)}@media (max-width: 768px){.fal-hero-section{flex-direction:column;align-items:center}.fal-hero-text{width:100%}.fal-stats-row{gap:1rem}.fal-stat-value{font-size:18px}.fal-hero-image{display:flex;justify-content:center;width:100%}.fal-hero-image img{width:auto;max-width:100%;max-height:260px}}.fal-lifecycle-step{position:relative;margin-bottom:1rem;border-radius:8px;overflow:hidden}.fal-lifecycle-step.serverless{background:linear-gradient(135deg, rgba(51, 134, 254, 0.1) 0%, rgba(51, 134, 254, 0.02) 100%);border-left:3px solid #3386FE}.dark .fal-lifecycle-step.serverless{background:linear-gradient(135deg, rgba(51, 134, 254, 0.15) 0%, rgba(51, 134, 254, 0.05) 100%)}.fal-lifecycle-step.modelapis{background:linear-gradient(135deg, rgba(133, 83, 255, 0.1) 0%, rgba(133, 83, 255, 0.02) 100%);border-left:3px solid #8553FF}.dark .fal-lifecycle-step.modelapis{background:linear-gradient(135deg, rgba(133, 83, 255, 0.2) 0%, rgba(133, 83, 255, 0.05) 100%)}.fal-step-header{display:flex;align-items:center;gap:0.75rem;padding:1rem 1.25rem 0.5rem}.fal-step-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:0.875rem;font-weight:600;flex-shrink:0}.fal-lifecycle-step.serverless .fal-step-number{background:rgba(51, 134, 254, 0.15);color:#1841B5}.dark .fal-lifecycle-step.serverless .fal-step-number{background:rgba(51, 134, 254, 0.25);color:#8EC8FF}.fal-lifecycle-step.modelapis .fal-step-number{background:rgba(133, 83, 255, 0.15);color:#5718C0}.dark .fal-lifecycle-step.modelapis .fal-step-number{background:rgba(133, 83, 255, 0.25);color:#C0B1FF}.fal-step-title{font-size:1.125rem;font-weight:600;flex-grow:1}.fal-step-logo{height:18px;opacity:0.9}.fal-lifecycle-step .fal-step-logo{filter:none}.fal-step-content{padding:0 1.25rem 1rem}.fal-step-content p:first-child{margin-top:0}.fal-step-content ul{margin-bottom:0}@media (max-width: 640px){.fal-step-header{flex-wrap:wrap}.fal-step-logo{order:-1;width:100%;margin-bottom:0.5rem;height:16px}}"}],"page":{"pagePath":"model-api-reference/video-generation-api/kling-video-v1.5-pro","slug":"/model-api-reference/video-generation-api/kling-video-v1.5-pro","pageMetadata":{"title":"Kling Video V1.5 Pro API","sidebarTitle":"Kling Video V1.5 Pro","description":"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)","href":"/model-api-reference/video-generation-api/kling-video-v1.5-pro"},"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: \"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\"\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},{Card,CodeBlock,CodeGroup,Heading,ParamField,Tab,Tabs}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Image To Video`,id:`image-to-video`,\"data-child-heading-ids\":`[\"quick-start\",\"input-schema\",\"output-schema\",\"input-example\",\"output-example\"]`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Endpoint:`}),` `,_jsx(_components.code,{children:`POST https://fal.run/fal-ai/kling-video/v1.5/pro/image-to-video`}),`\n`,_jsx(_components.strong,{children:`Endpoint ID:`}),` `,_jsx(_components.code,{children:`fal-ai/kling-video/v1.5/pro/image-to-video`})]}),_jsx(Card,{title:`Try it in the Playground`,icon:`play`,href:`https://fal.ai/models/fal-ai/kling-video/v1.5/pro/image-to-video/playground`,children:_jsx(_components.p,{children:`Run this model interactively with your own prompts.`})}),_jsx(Heading,{level:`3`,id:`quick-start`,children:`Quick Start`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` isinstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(update, fal_client.InProgress):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` log `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` update.logs:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(log[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client.subscribe(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fal-ai/kling-video/v1.5/pro/image-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` arguments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Snowflakes fall as a car moves along the road.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/kling_input.jpeg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` with_logs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on_queue_update,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`16`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@fal-ai/client\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fal-ai/kling-video/v1.5/pro/image-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Snowflakes fall as a car moves along the road.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` image_url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://storage.googleapis.com/falserverless/kling/kling_input.jpeg\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logs:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onQueueUpdate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"IN_PROGRESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`logs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`forEach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`requestId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,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:`8`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://fal.run/fal-ai/kling-video/v1.5/pro/image-to-video`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Key `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FAL_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` --header`}),_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:` --data`}),_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:` \"prompt\": \"Snowflakes fall as a car moves along the road.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\": \"https://storage.googleapis.com/falserverless/kling/kling_input.jpeg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),_jsx(Heading,{level:`3`,id:`input-schema`,children:`Input Schema`}),_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`}),_jsx(ParamField,{body:`image_url`,type:`string`,required:true,id:`param-image-url`}),_jsxs(ParamField,{body:`duration`,type:`DurationEnum`,default:`5`,id:`param-duration`,children:[_jsxs(_components.p,{children:[`The duration of the generated video in seconds Default value: `,_jsx(_components.code,{children:`\"5\"`})]}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`10`})]})]}),_jsxs(ParamField,{body:`aspect_ratio`,type:`AspectRatioEnum`,default:`16:9`,id:`param-aspect-ratio`,children:[_jsxs(_components.p,{children:[`The aspect ratio of the generated video frame Default value: `,_jsx(_components.code,{children:`\"16:9\"`})]}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`})]})]}),_jsx(ParamField,{body:`tail_image_url`,type:`string`,id:`param-tail-image-url`,children:_jsx(_components.p,{children:`URL of the image to be used for the end of the video`})}),_jsx(ParamField,{body:`negative_prompt`,type:`string`,default:`blur, distort, and low quality`,id:`param-negative-prompt`,children:_jsxs(_components.p,{children:[`Default value: `,_jsx(_components.code,{children:`\"blur, distort, and low quality\"`})]})}),_jsxs(ParamField,{body:`cfg_scale`,type:`float`,default:`0.5`,id:`param-cfg-scale`,children:[_jsxs(_components.p,{children:[`The CFG (Classifier Free Guidance) scale is a measure of how close you want\nthe model to stick to your prompt. Default value: `,_jsx(_components.code,{children:`0.5`})]}),_jsxs(_components.p,{children:[`Range: `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`1`})]})]}),_jsx(ParamField,{body:`static_mask_url`,type:`string`,id:`param-static-mask-url`,children:_jsx(_components.p,{children:`URL of the image for Static Brush Application Area (Mask image created by users using the motion brush)`})}),_jsx(ParamField,{body:`dynamic_masks`,type:`list\u003cDynamicMask>`,id:`param-dynamic-masks`,children:_jsx(_components.p,{children:`List of dynamic masks`})}),_jsx(Heading,{level:`3`,id:`output-schema`,children:`Output Schema`}),_jsx(ParamField,{body:`video`,type:`File`,required:true,id:`param-video`,children:_jsx(_components.p,{children:`The generated video`})}),_jsx(Heading,{level:`3`,id:`input-example`,children:`Input Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Snowflakes fall as a car moves along the road.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/kling_input.jpeg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negative_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur, distort, and low quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cfg_scale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"static_mask_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/new_static_mask.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dynamic_masks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mask_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/new_dynamic_mask.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trajectories\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"x\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`279`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"y\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`219`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"x\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`417`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"y\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`65`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`output-example`,children:`Output Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/kling_i2v_output.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`Text To Video`,id:`text-to-video`,\"data-child-heading-ids\":`[\"quick-start-2\",\"input-schema-2\",\"output-schema-2\",\"input-example-2\",\"output-example-2\"]`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Endpoint:`}),` `,_jsx(_components.code,{children:`POST https://fal.run/fal-ai/kling-video/v1.5/pro/text-to-video`}),`\n`,_jsx(_components.strong,{children:`Endpoint ID:`}),` `,_jsx(_components.code,{children:`fal-ai/kling-video/v1.5/pro/text-to-video`})]}),_jsx(Card,{title:`Try it in the Playground`,icon:`play`,href:`https://fal.ai/models/fal-ai/kling-video/v1.5/pro/text-to-video/playground`,children:_jsx(_components.p,{children:`Run this model interactively with your own prompts.`})}),_jsx(Heading,{level:`3`,id:`quick-start-2`,children:`Quick Start`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` isinstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(update, fal_client.InProgress):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` log `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` update.logs:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(log[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client.subscribe(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fal-ai/kling-video/v1.5/pro/text-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` arguments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` with_logs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on_queue_update,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`15`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@fal-ai/client\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fal-ai/kling-video/v1.5/pro/text-to-video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logs:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onQueueUpdate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"IN_PROGRESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`logs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`forEach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`requestId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,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:`7`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://fal.run/fal-ai/kling-video/v1.5/pro/text-to-video`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Key `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FAL_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` --header`}),_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:` --data`}),_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:` \"prompt\": \"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),_jsx(Heading,{level:`3`,id:`input-schema-2`,children:`Input Schema`}),_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt-1`}),_jsxs(ParamField,{body:`duration`,type:`DurationEnum`,default:`5`,id:`param-duration-1`,children:[_jsxs(_components.p,{children:[`The duration of the generated video in seconds Default value: `,_jsx(_components.code,{children:`\"5\"`})]}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`10`})]})]}),_jsxs(ParamField,{body:`aspect_ratio`,type:`AspectRatioEnum`,default:`16:9`,id:`param-aspect-ratio-1`,children:[_jsxs(_components.p,{children:[`The aspect ratio of the generated video frame Default value: `,_jsx(_components.code,{children:`\"16:9\"`})]}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`})]})]}),_jsx(ParamField,{body:`negative_prompt`,type:`string`,default:`blur, distort, and low quality`,id:`param-negative-prompt-1`,children:_jsxs(_components.p,{children:[`Default value: `,_jsx(_components.code,{children:`\"blur, distort, and low quality\"`})]})}),_jsxs(ParamField,{body:`cfg_scale`,type:`float`,default:`0.5`,id:`param-cfg-scale-1`,children:[_jsxs(_components.p,{children:[`The CFG (Classifier Free Guidance) scale is a measure of how close you want\nthe model to stick to your prompt. Default value: `,_jsx(_components.code,{children:`0.5`})]}),_jsxs(_components.p,{children:[`Range: `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`1`})]})]}),_jsx(Heading,{level:`3`,id:`output-schema-2`,children:`Output Schema`}),_jsx(ParamField,{body:`video`,type:`File`,required:true,id:`param-video-1`,children:_jsx(_components.p,{children:`The generated video`})}),_jsx(Heading,{level:`3`,id:`input-example-2`,children:`Input Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negative_prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"blur, distort, and low quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cfg_scale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`output-example-2`,children:`Output Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://v2.fal.media/files/fb33a862b94d4d7195e610e4cbc5d392_output.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`Effects`,id:`effects`,\"data-child-heading-ids\":`[\"quick-start-3\",\"input-schema-3\",\"output-schema-3\",\"input-example-3\",\"output-example-3\"]`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Endpoint:`}),` `,_jsx(_components.code,{children:`POST https://fal.run/fal-ai/kling-video/v1.5/pro/effects`}),`\n`,_jsx(_components.strong,{children:`Endpoint ID:`}),` `,_jsx(_components.code,{children:`fal-ai/kling-video/v1.5/pro/effects`})]}),_jsx(Card,{title:`Try it in the Playground`,icon:`play`,href:`https://fal.ai/models/fal-ai/kling-video/v1.5/pro/effects/playground`,children:_jsx(_components.p,{children:`Run this model interactively with your own prompts.`})}),_jsx(Heading,{level:`3`,id:`quick-start-3`,children:`Quick Start`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` isinstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(update, fal_client.InProgress):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` log `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` update.logs:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(log[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fal_client.subscribe(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fal-ai/kling-video/v1.5/pro/effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` arguments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"effect_scene\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hug\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` with_logs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` on_queue_update`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on_queue_update,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`15`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@fal-ai/client\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fal-ai/kling-video/v1.5/pro/effects\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` input:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` effect_scene:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hug\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logs:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onQueueUpdate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"IN_PROGRESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`logs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`forEach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`requestId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,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:`7`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://fal.run/fal-ai/kling-video/v1.5/pro/effects`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Key `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FAL_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` --header`}),_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:` --data`}),_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:` \"effect_scene\": \"hug\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),_jsx(Heading,{level:`3`,id:`input-schema-3`,children:`Input Schema`}),_jsx(ParamField,{body:`input_image_urls`,type:`list\u003cstring>`,id:`param-input-image-urls`,children:_jsx(_components.p,{children:`URL of images to be used for hug, kiss or heart_gesture video.`})}),_jsxs(ParamField,{body:`effect_scene`,type:`EffectSceneEnum`,required:true,id:`param-effect-scene`,children:[_jsx(_components.p,{children:`The effect scene to use for the video generation`}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`hug`}),`, `,_jsx(_components.code,{children:`kiss`}),`, `,_jsx(_components.code,{children:`heart_gesture`}),`, `,_jsx(_components.code,{children:`squish`}),`, `,_jsx(_components.code,{children:`expansion`}),`, `,_jsx(_components.code,{children:`fuzzyfuzzy`}),`, `,_jsx(_components.code,{children:`bloombloom`}),`, `,_jsx(_components.code,{children:`dizzydizzy`}),`, `,_jsx(_components.code,{children:`jelly_press`}),`, `,_jsx(_components.code,{children:`jelly_slice`}),`, `,_jsx(_components.code,{children:`jelly_squish`}),`, `,_jsx(_components.code,{children:`jelly_jiggle`}),`, `,_jsx(_components.code,{children:`pixelpixel`}),`, `,_jsx(_components.code,{children:`yearbook`}),`, `,_jsx(_components.code,{children:`instant_film`}),`, `,_jsx(_components.code,{children:`anime_figure`}),`, `,_jsx(_components.code,{children:`rocketrocket`}),`, `,_jsx(_components.code,{children:`fly_fly`}),`, `,_jsx(_components.code,{children:`disappear`}),`, `,_jsx(_components.code,{children:`lightning_power`}),`, `,_jsx(_components.code,{children:`bullet_time`}),`, `,_jsx(_components.code,{children:`bullet_time_360`}),`, `,_jsx(_components.code,{children:`media_interview`}),`, `,_jsx(_components.code,{children:`day_to_night`}),`, `,_jsx(_components.code,{children:`let's_ride`}),`, `,_jsx(_components.code,{children:`jumpdrop`}),`, `,_jsx(_components.code,{children:`swish_swish`}),`, `,_jsx(_components.code,{children:`running_man`}),`, `,_jsx(_components.code,{children:`jazz_jazz`}),`, `,_jsx(_components.code,{children:`swing_swing`}),`, `,_jsx(_components.code,{children:`skateskate`}),`, `,_jsx(_components.code,{children:`building_sweater`}),`, `,_jsx(_components.code,{children:`pure_white_wings`}),`, `,_jsx(_components.code,{children:`black_wings`}),`, `,_jsx(_components.code,{children:`golden_wing`}),`, `,_jsx(_components.code,{children:`pink_pink_wings`}),`, `,_jsx(_components.code,{children:`rampage_ape`}),`, `,_jsx(_components.code,{children:`a_list_look`}),`, `,_jsx(_components.code,{children:`countdown_teleport`}),`, `,_jsx(_components.code,{children:`firework_2026`}),`, `,_jsx(_components.code,{children:`instant_christmas`}),`, `,_jsx(_components.code,{children:`birthday_star`}),`, `,_jsx(_components.code,{children:`firework`}),`, `,_jsx(_components.code,{children:`celebration`}),`, `,_jsx(_components.code,{children:`tiger_hug_pro`}),`, `,_jsx(_components.code,{children:`pet_lion_pro`}),`, `,_jsx(_components.code,{children:`guardian_spirit`}),`, `,_jsx(_components.code,{children:`squeeze_scream`}),`, `,_jsx(_components.code,{children:`inner_voice`}),`, `,_jsx(_components.code,{children:`memory_alive`}),`, `,_jsx(_components.code,{children:`guess_what`}),`, `,_jsx(_components.code,{children:`eagle_snatch`}),`, `,_jsx(_components.code,{children:`hug_from_past`}),`, `,_jsx(_components.code,{children:`instant_kid`}),`, `,_jsx(_components.code,{children:`dollar_rain`}),`, `,_jsx(_components.code,{children:`cry_cry`}),`, `,_jsx(_components.code,{children:`building_collapse`}),`, `,_jsx(_components.code,{children:`mushroom`}),`, `,_jsx(_components.code,{children:`jesus_hug`}),`, `,_jsx(_components.code,{children:`shark_alert`}),`, `,_jsx(_components.code,{children:`lie_flat`}),`, `,_jsx(_components.code,{children:`polar_bear_hug`}),`, `,_jsx(_components.code,{children:`brown_bear_hug`}),`, `,_jsx(_components.code,{children:`office_escape_plow`}),`, `,_jsx(_components.code,{children:`watermelon_bomb`}),`, `,_jsx(_components.code,{children:`boss_coming`}),`, `,_jsx(_components.code,{children:`wig_out`}),`, `,_jsx(_components.code,{children:`car_explosion`}),`, `,_jsx(_components.code,{children:`tiger_hug`}),`, `,_jsx(_components.code,{children:`siblings`}),`, `,_jsx(_components.code,{children:`construction_worker`}),`, `,_jsx(_components.code,{children:`snatched`}),`, `,_jsx(_components.code,{children:`felt_felt`}),`, `,_jsx(_components.code,{children:`plushcut`}),`, `,_jsx(_components.code,{children:`drunk_dance`}),`, `,_jsx(_components.code,{children:`drunk_dance_pet`}),`, `,_jsx(_components.code,{children:`daoma_dance`}),`, `,_jsx(_components.code,{children:`bouncy_dance`}),`, `,_jsx(_components.code,{children:`smooth_sailing_dance`}),`, `,_jsx(_components.code,{children:`new_year_greeting`}),`, `,_jsx(_components.code,{children:`lion_dance`}),`, `,_jsx(_components.code,{children:`prosperity`}),`, `,_jsx(_components.code,{children:`great_success`}),`, `,_jsx(_components.code,{children:`golden_horse_fortune`}),`, `,_jsx(_components.code,{children:`red_packet_box`}),`, `,_jsx(_components.code,{children:`lucky_horse_year`}),`, `,_jsx(_components.code,{children:`lucky_red_packet`}),`, `,_jsx(_components.code,{children:`lucky_money_come`}),`, `,_jsx(_components.code,{children:`lion_dance_pet`}),`, `,_jsx(_components.code,{children:`dumpling_making_pet`}),`, `,_jsx(_components.code,{children:`fish_making_pet`}),`, `,_jsx(_components.code,{children:`pet_red_packet`}),`, `,_jsx(_components.code,{children:`lantern_glow`}),`, `,_jsx(_components.code,{children:`expression_challenge`}),`, `,_jsx(_components.code,{children:`overdrive`}),`, `,_jsx(_components.code,{children:`heart_gesture_dance`}),`, `,_jsx(_components.code,{children:`poping`}),`, `,_jsx(_components.code,{children:`martial_arts`}),`, `,_jsx(_components.code,{children:`running`}),`, `,_jsx(_components.code,{children:`nezha`}),`, `,_jsx(_components.code,{children:`motorcycle_dance`}),`, `,_jsx(_components.code,{children:`subject_3_dance`}),`, `,_jsx(_components.code,{children:`ghost_step_dance`}),`, `,_jsx(_components.code,{children:`phantom_jewel`}),`, `,_jsx(_components.code,{children:`zoom_out`}),`, `,_jsx(_components.code,{children:`cheers_2026`}),`, `,_jsx(_components.code,{children:`kiss_pro`}),`, `,_jsx(_components.code,{children:`fight_pro`}),`, `,_jsx(_components.code,{children:`hug_pro`}),`, `,_jsx(_components.code,{children:`heart_gesture_pro`}),`, `,_jsx(_components.code,{children:`dollar_rain_pro`}),`, `,_jsx(_components.code,{children:`pet_bee_pro`}),`, `,_jsx(_components.code,{children:`santa_random_surprise`}),`, `,_jsx(_components.code,{children:`magic_match_tree`}),`, `,_jsx(_components.code,{children:`happy_birthday`}),`, `,_jsx(_components.code,{children:`thumbs_up_pro`}),`, `,_jsx(_components.code,{children:`surprise_bouquet`}),`, `,_jsx(_components.code,{children:`bouquet_drop`}),`, `,_jsx(_components.code,{children:`3d_cartoon_1_pro`}),`, `,_jsx(_components.code,{children:`glamour_photo_shoot`}),`, `,_jsx(_components.code,{children:`box_of_joy`}),`, `,_jsx(_components.code,{children:`first_toast_of_the_year`}),`, `,_jsx(_components.code,{children:`my_santa_pic`}),`, `,_jsx(_components.code,{children:`santa_gift`}),`, `,_jsx(_components.code,{children:`steampunk_christmas`}),`, `,_jsx(_components.code,{children:`snowglobe`}),`, `,_jsx(_components.code,{children:`christmas_photo_shoot`}),`, `,_jsx(_components.code,{children:`ornament_crash`}),`, `,_jsx(_components.code,{children:`santa_express`}),`, `,_jsx(_components.code,{children:`particle_santa_surround`}),`, `,_jsx(_components.code,{children:`coronation_of_frost`}),`, `,_jsx(_components.code,{children:`spark_in_the_snow`}),`, `,_jsx(_components.code,{children:`scarlet_and_snow`}),`, `,_jsx(_components.code,{children:`cozy_toon_wrap`}),`, `,_jsx(_components.code,{children:`bullet_time_lite`}),`, `,_jsx(_components.code,{children:`magic_cloak`}),`, `,_jsx(_components.code,{children:`balloon_parade`}),`, `,_jsx(_components.code,{children:`jumping_ginger_joy`}),`, `,_jsx(_components.code,{children:`c4d_cartoon_pro`}),`, `,_jsx(_components.code,{children:`venomous_spider`}),`, `,_jsx(_components.code,{children:`throne_of_king`}),`, `,_jsx(_components.code,{children:`luminous_elf`}),`, `,_jsx(_components.code,{children:`woodland_elf`}),`, `,_jsx(_components.code,{children:`japanese_anime_1`}),`, `,_jsx(_components.code,{children:`american_comics`}),`, `,_jsx(_components.code,{children:`snowboarding`}),`, `,_jsx(_components.code,{children:`witch_transform`}),`, `,_jsx(_components.code,{children:`vampire_transform`}),`, `,_jsx(_components.code,{children:`pumpkin_head_transform`}),`, `,_jsx(_components.code,{children:`demon_transform`}),`, `,_jsx(_components.code,{children:`mummy_transform`}),`, `,_jsx(_components.code,{children:`zombie_transform`}),`, `,_jsx(_components.code,{children:`cute_pumpkin_transform`}),`, `,_jsx(_components.code,{children:`cute_ghost_transform`}),`, `,_jsx(_components.code,{children:`knock_knock_halloween`}),`, `,_jsx(_components.code,{children:`halloween_escape`}),`, `,_jsx(_components.code,{children:`baseball`}),`, `,_jsx(_components.code,{children:`trampoline`}),`, `,_jsx(_components.code,{children:`trampoline_night`}),`, `,_jsx(_components.code,{children:`pucker_up`}),`, `,_jsx(_components.code,{children:`feed_mooncake`}),`, `,_jsx(_components.code,{children:`flyer`}),`, `,_jsx(_components.code,{children:`dishwasher`}),`, `,_jsx(_components.code,{children:`pet_chinese_opera`}),`, `,_jsx(_components.code,{children:`magic_fireball`}),`, `,_jsx(_components.code,{children:`gallery_ring`}),`, `,_jsx(_components.code,{children:`pet_moto_rider`}),`, `,_jsx(_components.code,{children:`muscle_pet`}),`, `,_jsx(_components.code,{children:`pet_delivery`}),`, `,_jsx(_components.code,{children:`mythic_style`}),`, `,_jsx(_components.code,{children:`steampunk`}),`, `,_jsx(_components.code,{children:`3d_cartoon_2`}),`, `,_jsx(_components.code,{children:`pet_chef`}),`, `,_jsx(_components.code,{children:`santa_gifts`}),`, `,_jsx(_components.code,{children:`santa_hug`}),`, `,_jsx(_components.code,{children:`girlfriend`}),`, `,_jsx(_components.code,{children:`boyfriend`}),`, `,_jsx(_components.code,{children:`heart_gesture_1`}),`, `,_jsx(_components.code,{children:`pet_wizard`}),`, `,_jsx(_components.code,{children:`smoke_smoke`}),`, `,_jsx(_components.code,{children:`gun_shot`}),`, `,_jsx(_components.code,{children:`double_gun`}),`, `,_jsx(_components.code,{children:`pet_warrior`}),`, `,_jsx(_components.code,{children:`long_hair`}),`, `,_jsx(_components.code,{children:`pet_dance`}),`, `,_jsx(_components.code,{children:`wool_curly`}),`, `,_jsx(_components.code,{children:`pet_bee`}),`, `,_jsx(_components.code,{children:`marry_me`}),`, `,_jsx(_components.code,{children:`piggy_morph`}),`, `,_jsx(_components.code,{children:`ski_ski`}),`, `,_jsx(_components.code,{children:`magic_broom`}),`, `,_jsx(_components.code,{children:`splashsplash`}),`, `,_jsx(_components.code,{children:`surfsurf`}),`, `,_jsx(_components.code,{children:`fairy_wing`}),`, `,_jsx(_components.code,{children:`angel_wing`}),`, `,_jsx(_components.code,{children:`dark_wing`}),`, `,_jsx(_components.code,{children:`emoji`})]})]}),_jsxs(ParamField,{body:`duration`,type:`DurationEnum`,default:`5`,id:`param-duration-2`,children:[_jsxs(_components.p,{children:[`The duration of the generated video in seconds Default value: `,_jsx(_components.code,{children:`\"5\"`})]}),_jsxs(_components.p,{children:[`Possible values: `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`10`})]})]}),_jsx(Heading,{level:`3`,id:`output-schema-3`,children:`Output Schema`}),_jsx(ParamField,{body:`video`,type:`File`,required:true,id:`param-video-2`,children:_jsx(_components.p,{children:`The generated video`})}),_jsx(Heading,{level:`3`,id:`input-example-3`,children:`Input Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://storage.googleapis.com/falserverless/juggernaut_examples/VHXMavzPyI27zi6JseyL4.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://storage.googleapis.com/falserverless/juggernaut_examples/QEW5VrzccxGva7mPfEXjf.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effect_scene\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`output-example-3`,children:`Output Example`}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"content_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video/mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"output.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://storage.googleapis.com/falserverless/kling/kling_ex.mp4.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/model-api-reference/video-generation-api/kling-1.5`,children:`Kling 1.5`}),` — Video Generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/model-api-reference/video-generation-api/kling-1.6`,children:`Kling 1.6`}),` — Video Generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/model-api-reference/video-generation-api/kling-1.0`,children:`Kling 1.0`}),` — Video Generation`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`limitations`,children:`Limitations`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`duration`}),` restricted to: `,_jsx(_components.code,{children:`5`}),`, `,_jsx(_components.code,{children:`10`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`aspect_ratio`}),` restricted to: `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cfg_scale`}),` range: 0 to 1`]}),`\n`]})]})}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":"Kling Video V1.5 Pro API","sidebarTitle":"Kling Video V1.5 Pro","description":"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)","href":"/model-api-reference/video-generation-api/kling-video-v1.5-pro"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick Start","slug":"quick-start","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Input Schema","slug":"input-schema","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Output Schema","slug":"output-schema","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Input Example","slug":"input-example","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Output Example","slug":"output-example","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Quick Start","slug":"quick-start-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Input Schema","slug":"input-schema-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Output Schema","slug":"output-schema-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Input Example","slug":"input-example-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Output Example","slug":"output-example-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Quick Start","slug":"quick-start-3","depth":3,"children":[],"tabId":"effects"},{"title":"Input Schema","slug":"input-schema-3","depth":3,"children":[],"tabId":"effects"},{"title":"Output Schema","slug":"output-schema-3","depth":3,"children":[],"tabId":"effects"},{"title":"Input Example","slug":"input-example-3","depth":3,"children":[],"tabId":"effects"},{"title":"Output Example","slug":"output-example-3","depth":3,"children":[],"tabId":"effects"},{"title":"Related","slug":"related","depth":2,"children":[]},{"title":"Limitations","slug":"limitations","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/fal-d8505a2e/fbe6cc384b7bbd12/serverless-popup.js","/docs/_mintlify/custom/fal-d8505a2e/9fa06cdd91073ccf/content/playground-hardening.js","/docs/_mintlify/custom/fal-d8505a2e/c80ff4b00a7410c4/content/api-key-formatter.js"],"subdomain":"fal-d8505a2e","siteName":"fal","title":"Kling Video V1.5 Pro API - fal","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-14T20:57:42.273Z","originalFileLocation":"model-api-reference/video-generation-api/kling-video-v1.5-pro.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=\"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=\"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\">\u003cmeta data-mint-head name=\"application-name\" content=\"fal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_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=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kling Video V1.5 Pro API - fal\">\u003cmeta data-mint-head property=\"og:description\" content=\"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"fal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fal-d8505a2e.mintlify.site/docs/logo/light.svg\">\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=\"Kling Video V1.5 Pro API - fal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fal-d8505a2e.mintlify.site/docs/logo/light.svg\">\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=\"/docs/mintlify-assets/_mintlify/favicons/fal-d8505a2e/cUEBujT4zfUs0Rxq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"fal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5718C0\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"kcN2RYfXHsfUeWlkX6-E32JdCXwUdHA5w5NIXr2xWTY\">\u003clink data-mint-head rel=\"canonical\" href=\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://fal.ai/#organization\",\"name\":\"fal\",\"legalName\":\"Features \u0026 Labels Inc.\",\"url\":\"https://fal.ai/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://fal.ai/apple-touch-icon.png\"},\"sameAs\":[\"https://discord.gg/fal-ai\",\"https://github.com/fal-ai\",\"https://www.reddit.com/r/fal/\",\"https://twitter.com/fal\",\"https://www.linkedin.com/company/features-and-labels/\",\"https://www.youtube.com/@Fal.AI.Official\",\"https://www.instagram.com/madeonfal\",\"https://www.tiktok.com/@madeonfal\"]},{\"@type\":\"WebSite\",\"@id\":\"https://fal.ai/docs#website\",\"name\":\"fal\",\"url\":\"https://fal.ai/docs\",\"publisher\":{\"@id\":\"https://fal.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro#webpage\",\"url\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro\",\"name\":\"Kling Video V1.5 Pro API\",\"description\":\"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\",\"dateModified\":\"2026-04-14T20:57:42.273Z\",\"isPartOf\":{\"@id\":\"https://fal.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video Generation\",\"item\":\"https://fal.ai/docs/model-api-reference/video-generation-api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling Video\",\"item\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-ai-avatar-v2\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Kling Video V1.5 Pro API\",\"item\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro#article\",\"headline\":\"Kling Video V1.5 Pro API\",\"name\":\"Kling Video V1.5 Pro API\",\"description\":\"API reference for Kling Video V1.5 Pro. Generate video clips from your images using Kling 1.5 (pro)\",\"url\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro\",\"mainEntityOfPage\":{\"@id\":\"https://fal.ai/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro#webpage\"},\"image\":\"https://fal.ai/logo/light.svg\",\"dateModified\":\"2026-04-14T20:57:42.273Z\",\"publisher\":{\"@id\":\"https://fal.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://fal.ai/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/model-api-reference/video-generation-api/kling-video-v1.5-pro.md","siteName":"fal","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.fal.ai/"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/fal-ai"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.fal.ai/"}]},"tabs":[{"tab":"Documentation","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/docs.svg","pages":[{"title":"Documentation","href":"/documentation"}]},{"tab":"Examples","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/grid-9.svg","pages":[{"title":"Examples","href":"/examples"}]},{"tab":"Model API Reference","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/ar-cube-1.svg","pages":[{"title":"Model API Reference","href":"/model-api-reference"},{"group":"Video Generation","pages":[{"title":"Video Generation API","sidebarTitle":"Overview","href":"/model-api-reference/video-generation-api/overview"},{"group":"Birefnet","pages":[{"title":"Birefnet V2 API","sidebarTitle":"Birefnet V2","href":"/model-api-reference/video-generation-api/birefnet-v2"}]},{"group":"Bria","pages":[{"title":"Bria Video API","sidebarTitle":"Bria Video","href":"/model-api-reference/video-generation-api/bria-video"}]},{"group":"Bytedance","pages":[{"title":"Bytedance Dreamactor API","sidebarTitle":"Bytedance Dreamactor","href":"/model-api-reference/video-generation-api/bytedance-dreamactor"},{"title":"Bytedance Omnihuman API","sidebarTitle":"Bytedance Omnihuman","href":"/model-api-reference/video-generation-api/bytedance-omnihuman"},{"group":"Seedance","pages":[{"group":"V1","pages":[{"title":"Bytedance Seedance V1 Lite API","sidebarTitle":"Bytedance Seedance V1 Lite","href":"/model-api-reference/video-generation-api/bytedance-seedance-v1-lite"},{"group":"Pro","pages":[{"title":"Bytedance Seedance V1 Pro Fast API","sidebarTitle":"Bytedance Seedance V1 Pro Fast","href":"/model-api-reference/video-generation-api/bytedance-seedance-v1-pro-fast"},{"title":"Bytedance Seedance V1 Pro Image To Video API","sidebarTitle":"Bytedance Seedance V1 Pro Image To Video","href":"/model-api-reference/video-generation-api/bytedance-seedance-v1-pro-image-to-video"},{"title":"Bytedance Seedance V1 Pro Text To Video API","sidebarTitle":"Bytedance Seedance V1 Pro Text To Video","href":"/model-api-reference/video-generation-api/bytedance-seedance-v1-pro-text-to-video"}]}]},{"group":"V1.5","pages":[{"title":"Bytedance Seedance V1.5 Pro API","sidebarTitle":"Bytedance Seedance V1.5 Pro","href":"/model-api-reference/video-generation-api/bytedance-seedance-v1.5-pro"}]}]},{"group":"Seedance 2.0","pages":[{"title":"Bytedance Seedance 2.0 Fast API","sidebarTitle":"Bytedance Seedance 2.0 Fast","href":"/model-api-reference/video-generation-api/bytedance-seedance-2.0-fast"},{"title":"Bytedance Seedance 2.0 Image To Video API","sidebarTitle":"Bytedance Seedance 2.0 Image To Video","href":"/model-api-reference/video-generation-api/bytedance-seedance-2.0-image-to-video"},{"title":"Bytedance Seedance 2.0 Reference To Video API","sidebarTitle":"Bytedance Seedance 2.0 Reference To Video","href":"/model-api-reference/video-generation-api/bytedance-seedance-2.0-reference-to-video"},{"title":"Bytedance Seedance 2.0 Text To Video API","sidebarTitle":"Bytedance Seedance 2.0 Text To Video","href":"/model-api-reference/video-generation-api/bytedance-seedance-2.0-text-to-video"}]},{"title":"Bytedance Video Stylize API","sidebarTitle":"Bytedance Video Stylize","href":"/model-api-reference/video-generation-api/bytedance-video-stylize"}]},{"group":"Kling Video","pages":[{"group":"Ai Avatar","pages":[{"title":"Kling Video Ai Avatar V2 API","sidebarTitle":"Kling Video Ai Avatar V2","href":"/model-api-reference/video-generation-api/kling-video-ai-avatar-v2"}]},{"title":"Kling Video Lipsync API","sidebarTitle":"Kling Video Lipsync","href":"/model-api-reference/video-generation-api/kling-video-lipsync"},{"group":"O1","pages":[{"title":"Kling Video O1 Image To Video API","sidebarTitle":"Kling Video O1 Image To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-image-to-video"},{"title":"Kling Video O1 Reference To Video API","sidebarTitle":"Kling Video O1 Reference To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-reference-to-video"},{"group":"Standard","pages":[{"title":"Kling Video O1 Standard Image To Video API","sidebarTitle":"Kling Video O1 Standard Image To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-standard-image-to-video"},{"title":"Kling Video O1 Standard Reference To Video API","sidebarTitle":"Kling Video O1 Standard Reference To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-standard-reference-to-video"},{"title":"Kling Video O1 Standard Video To Video API","sidebarTitle":"Kling Video O1 Standard Video To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-standard-video-to-video"}]},{"title":"Kling Video O1 Video To Video API","sidebarTitle":"Kling Video O1 Video To Video","href":"/model-api-reference/video-generation-api/kling-video-o1-video-to-video"}]},{"group":"O3","pages":[{"group":"Pro","pages":[{"title":"Kling Video O3 Pro Image To Video API","sidebarTitle":"Kling Video O3 Pro Image To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-pro-image-to-video"},{"title":"Kling Video O3 Pro Reference To Video API","sidebarTitle":"Kling Video O3 Pro Reference To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-pro-reference-to-video"},{"title":"Kling Video O3 Pro Text To Video API","sidebarTitle":"Kling Video O3 Pro Text To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-pro-text-to-video"},{"title":"Kling Video O3 Pro Video To Video API","sidebarTitle":"Kling Video O3 Pro Video To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-pro-video-to-video"}]},{"group":"Standard","pages":[{"title":"Kling Video O3 Standard Image To Video API","sidebarTitle":"Kling Video O3 Standard Image To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-standard-image-to-video"},{"title":"Kling Video O3 Standard Reference To Video API","sidebarTitle":"Kling Video O3 Standard Reference To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-standard-reference-to-video"},{"title":"Kling Video O3 Standard Text To Video API","sidebarTitle":"Kling Video O3 Standard Text To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-standard-text-to-video"},{"title":"Kling Video O3 Standard Video To Video API","sidebarTitle":"Kling Video O3 Standard Video To Video","href":"/model-api-reference/video-generation-api/kling-video-o3-standard-video-to-video"}]}]},{"group":"V1","pages":[{"title":"Kling Video V1 Pro API","sidebarTitle":"Kling Video V1 Pro","href":"/model-api-reference/video-generation-api/kling-video-v1-pro"},{"title":"Kling Video V1 Standard API","sidebarTitle":"Kling Video V1 Standard","description":"API reference for Kling Video V1 Standard. Generate video clips from your images using Kling 1.0","href":"/model-api-reference/video-generation-api/kling-video-v1-standard"}]},{"group":"V1.5","pages":[{"title":"Kling Video V1.5 Pro API","sidebarTitle":"Kling Video V1.5 Pro","href":"/model-api-reference/video-generation-api/kling-video-v1.5-pro"}]},{"group":"V1.6","pages":[{"title":"Kling Video V1.6 Pro API","sidebarTitle":"Kling Video V1.6 Pro","description":"API reference for Kling Video V1.6 Pro. Generate video clips from your images using Kling 1.6 (pro)","href":"/model-api-reference/video-generation-api/kling-video-v1.6-pro"},{"title":"Kling Video V1.6 Standard API","sidebarTitle":"Kling Video V1.6 Standard","href":"/model-api-reference/video-generation-api/kling-video-v1.6-standard"}]},{"group":"V2","pages":[{"title":"Kling Video V2 Master API","sidebarTitle":"Kling Video V2 Master","href":"/model-api-reference/video-generation-api/kling-video-v2-master"}]},{"group":"V2.1","pages":[{"title":"Kling Video V2.1 Master API","sidebarTitle":"Kling Video V2.1 Master","href":"/model-api-reference/video-generation-api/kling-video-v2.1-master"},{"title":"Kling Video V2.1 Pro API","sidebarTitle":"Kling Video V2.1 Pro","href":"/model-api-reference/video-generation-api/kling-video-v2.1-pro"},{"title":"Kling Video V2.1 Standard API","sidebarTitle":"Kling Video V2.1 Standard","href":"/model-api-reference/video-generation-api/kling-video-v2.1-standard"}]},{"group":"V2.5 Turbo","pages":[{"title":"Kling Video V2.5 Turbo Pro API","sidebarTitle":"Kling Video V2.5 Turbo Pro","href":"/model-api-reference/video-generation-api/kling-video-v2.5-turbo-pro"},{"title":"Kling Video V2.5 Turbo Standard API","sidebarTitle":"Kling Video V2.5 Turbo Standard","href":"/model-api-reference/video-generation-api/kling-video-v2.5-turbo-standard"}]},{"group":"V2.6","pages":[{"title":"Kling Video V2.6 Pro API","sidebarTitle":"Kling Video V2.6 Pro","href":"/model-api-reference/video-generation-api/kling-video-v2.6-pro"},{"title":"Kling Video V2.6 Standard API","sidebarTitle":"Kling Video V2.6 Standard","href":"/model-api-reference/video-generation-api/kling-video-v2.6-standard"}]},{"group":"V3","pages":[{"title":"Kling Video V3 Pro API","sidebarTitle":"Kling Video V3 Pro","href":"/model-api-reference/video-generation-api/kling-video-v3-pro"},{"title":"Kling Video V3 Standard API","sidebarTitle":"Kling Video V3 Standard","href":"/model-api-reference/video-generation-api/kling-video-v3-standard"}]}]},{"group":"Seedvr","pages":[{"title":"Seedvr Upscale API","sidebarTitle":"Seedvr Upscale","href":"/model-api-reference/video-generation-api/seedvr-upscale"}]},{"group":"Sora 2","pages":[{"title":"Sora 2 Characters API","sidebarTitle":"Sora 2 Characters","href":"/model-api-reference/video-generation-api/sora-2-characters"},{"title":"Sora 2 Image To Video API","sidebarTitle":"Sora 2 Image To Video","href":"/model-api-reference/video-generation-api/sora-2-image-to-video"},{"title":"Sora 2 Text To Video API","sidebarTitle":"Sora 2 Text To Video","href":"/model-api-reference/video-generation-api/sora-2-text-to-video"},{"title":"Sora 2 Video To Video API","sidebarTitle":"Sora 2 Video To Video","href":"/model-api-reference/video-generation-api/sora-2-video-to-video"}]},{"group":"Topaz","pages":[{"title":"Topaz Upscale API","sidebarTitle":"Topaz Upscale","href":"/model-api-reference/video-generation-api/topaz-upscale"}]},{"group":"Veo3.1","pages":[{"title":"Veo3.1 API","sidebarTitle":"Veo3.1","href":"/model-api-reference/video-generation-api/veo3.1"},{"title":"Veo3.1 Extend Video API","sidebarTitle":"Veo3.1 Extend Video","href":"/model-api-reference/video-generation-api/veo3.1-extend-video"},{"title":"Veo3.1 Fast API","sidebarTitle":"Veo3.1 Fast","href":"/model-api-reference/video-generation-api/veo3.1-fast"},{"title":"Veo3.1 First Last Frame To Video API","sidebarTitle":"Veo3.1 First Last Frame To Video","href":"/model-api-reference/video-generation-api/veo3.1-first-last-frame-to-video"},{"title":"Veo3.1 Image To Video API","sidebarTitle":"Veo3.1 Image To Video","href":"/model-api-reference/video-generation-api/veo3.1-image-to-video"},{"title":"Veo3.1 Lite API","sidebarTitle":"Veo3.1 Lite","href":"/model-api-reference/video-generation-api/veo3.1-lite"},{"title":"Veo3.1 Reference To Video API","sidebarTitle":"Veo3.1 Reference To Video","href":"/model-api-reference/video-generation-api/veo3.1-reference-to-video"}]},{"group":"Xai","pages":[{"title":"Xai Grok Imagine Video API","sidebarTitle":"Xai Grok Imagine Video","href":"/model-api-reference/video-generation-api/xai-grok-imagine-video"}]}]},{"group":"Image Generation","pages":[{"title":"Image Generation API","sidebarTitle":"Overview","href":"/model-api-reference/image-generation-api/overview"},{"title":"Birefnet API","sidebarTitle":"Birefnet","href":"/model-api-reference/image-generation-api/birefnet"},{"group":"Bria","pages":[{"title":"Bria Background API","sidebarTitle":"Bria Background","href":"/model-api-reference/image-generation-api/bria-background"},{"title":"Bria Embed Product API","sidebarTitle":"Bria Embed Product","href":"/model-api-reference/image-generation-api/bria-embed-product"},{"title":"Bria Eraser API","sidebarTitle":"Bria Eraser","href":"/model-api-reference/image-generation-api/bria-eraser"},{"title":"Bria Expand API","sidebarTitle":"Bria Expand","href":"/model-api-reference/image-generation-api/bria-expand"},{"title":"Bria Fibo API","sidebarTitle":"Bria Fibo","href":"/model-api-reference/image-generation-api/bria-fibo"},{"title":"Bria Fibo Edit API","sidebarTitle":"Bria Fibo Edit","href":"/model-api-reference/image-generation-api/bria-fibo-edit"},{"title":"Bria Fibo Lite API","sidebarTitle":"Bria Fibo Lite","href":"/model-api-reference/image-generation-api/bria-fibo-lite"},{"title":"Bria Genfill API","sidebarTitle":"Bria Genfill","href":"/model-api-reference/image-generation-api/bria-genfill"},{"title":"Bria Product Shot API","sidebarTitle":"Bria Product Shot","href":"/model-api-reference/image-generation-api/bria-product-shot"},{"title":"Bria Reimagine API","sidebarTitle":"Bria Reimagine","href":"/model-api-reference/image-generation-api/bria-reimagine"},{"title":"Bria Replace Background API","sidebarTitle":"Bria Replace Background","href":"/model-api-reference/image-generation-api/bria-replace-background"},{"title":"Bria Text To Image API","sidebarTitle":"Bria Text To Image","href":"/model-api-reference/image-generation-api/bria-text-to-image"}]},{"group":"Bytedance","pages":[{"group":"Dreamina","pages":[{"title":"Bytedance Dreamina V3.1 API","sidebarTitle":"Bytedance Dreamina V3.1","href":"/model-api-reference/image-generation-api/bytedance-dreamina-v3.1"}]},{"group":"Seedream","pages":[{"title":"Bytedance Seedream V3 API","sidebarTitle":"Bytedance Seedream V3","href":"/model-api-reference/image-generation-api/bytedance-seedream-v3"},{"title":"Bytedance Seedream V4 API","sidebarTitle":"Bytedance Seedream V4","href":"/model-api-reference/image-generation-api/bytedance-seedream-v4"},{"title":"Bytedance Seedream V4.5 API","sidebarTitle":"Bytedance Seedream V4.5","href":"/model-api-reference/image-generation-api/bytedance-seedream-v4.5"},{"group":"V5","pages":[{"title":"Bytedance Seedream V5 Lite API","sidebarTitle":"Bytedance Seedream V5 Lite","href":"/model-api-reference/image-generation-api/bytedance-seedream-v5-lite"}]}]}]},{"title":"Florence 2 Large API","sidebarTitle":"Florence 2 Large","href":"/model-api-reference/image-generation-api/florence-2-large"},{"group":"Flux","pages":[{"title":"Flux Dev API","sidebarTitle":"Flux Dev","href":"/model-api-reference/image-generation-api/flux-dev"},{"title":"Flux Krea API","sidebarTitle":"Flux Krea","href":"/model-api-reference/image-generation-api/flux-krea"},{"title":"Flux Schnell API","sidebarTitle":"Flux Schnell","href":"/model-api-reference/image-generation-api/flux-schnell"},{"title":"Flux Srpo API","sidebarTitle":"Flux Srpo","href":"/model-api-reference/image-generation-api/flux-srpo"}]},{"title":"Flux 2 Pro API","sidebarTitle":"Flux 2 Pro","href":"/model-api-reference/image-generation-api/flux-2-pro"},{"title":"Flux Lora API","sidebarTitle":"Flux Lora","href":"/model-api-reference/image-generation-api/flux-lora"},{"group":"Flux Pro","pages":[{"group":"Kontext","pages":[{"title":"Flux Pro Kontext API","sidebarTitle":"Flux Pro Kontext","href":"/model-api-reference/image-generation-api/flux-pro-kontext"},{"title":"Flux Pro Kontext Max API","sidebarTitle":"Flux Pro Kontext Max","href":"/model-api-reference/image-generation-api/flux-pro-kontext-max"},{"title":"Flux Pro Kontext Multi API","sidebarTitle":"Flux Pro Kontext Multi","href":"/model-api-reference/image-generation-api/flux-pro-kontext-multi"},{"title":"Flux Pro Kontext Text To Image API","sidebarTitle":"Flux Pro Kontext Text To Image","href":"/model-api-reference/image-generation-api/flux-pro-kontext-text-to-image"}]},{"title":"Flux Pro V1 API","sidebarTitle":"Flux Pro V1","href":"/model-api-reference/image-generation-api/flux-pro-v1"},{"title":"Flux Pro V1.1 API","sidebarTitle":"Flux Pro V1.1","href":"/model-api-reference/image-generation-api/flux-pro-v1.1"},{"title":"Flux Pro V1.1 Ultra API","sidebarTitle":"Flux Pro V1.1 Ultra","href":"/model-api-reference/image-generation-api/flux-pro-v1.1-ultra"},{"title":"Flux Pro V1.1 Ultra Finetuned API","sidebarTitle":"Flux Pro V1.1 Ultra Finetuned","href":"/model-api-reference/image-generation-api/flux-pro-v1.1-ultra-finetuned"}]},{"title":"Gemini 3 Pro Image Preview API","sidebarTitle":"Gemini 3 Pro Image Preview","href":"/model-api-reference/image-generation-api/gemini-3-pro-image-preview"},{"title":"Gpt Image 1.5 API","sidebarTitle":"Gpt Image 1.5","href":"/model-api-reference/image-generation-api/gpt-image-1.5"},{"group":"Ideogram","pages":[{"title":"Ideogram Character API","sidebarTitle":"Ideogram Character","href":"/model-api-reference/image-generation-api/ideogram-character"},{"title":"Ideogram Upscale API","sidebarTitle":"Ideogram Upscale","href":"/model-api-reference/image-generation-api/ideogram-upscale"},{"group":"V2","pages":[{"title":"Ideogram V2 API","sidebarTitle":"Ideogram V2","href":"/model-api-reference/image-generation-api/ideogram-v2"},{"title":"Ideogram V2 Edit API","sidebarTitle":"Ideogram V2 Edit","href":"/model-api-reference/image-generation-api/ideogram-v2-edit"},{"title":"Ideogram V2 Remix API","sidebarTitle":"Ideogram V2 Remix","href":"/model-api-reference/image-generation-api/ideogram-v2-remix"},{"title":"Ideogram V2 Turbo API","sidebarTitle":"Ideogram V2 Turbo","href":"/model-api-reference/image-generation-api/ideogram-v2-turbo"}]},{"group":"V2a","pages":[{"title":"Ideogram V2a API","sidebarTitle":"Ideogram V2a","href":"/model-api-reference/image-generation-api/ideogram-v2a"},{"title":"Ideogram V2a Remix API","sidebarTitle":"Ideogram V2a Remix","href":"/model-api-reference/image-generation-api/ideogram-v2a-remix"},{"title":"Ideogram V2a Turbo API","sidebarTitle":"Ideogram V2a Turbo","href":"/model-api-reference/image-generation-api/ideogram-v2a-turbo"}]},{"title":"Ideogram V3 API","sidebarTitle":"Ideogram V3","href":"/model-api-reference/image-generation-api/ideogram-v3"}]},{"title":"Imageutils API","sidebarTitle":"Imageutils","href":"/model-api-reference/image-generation-api/imageutils"},{"title":"Nano Banana API","sidebarTitle":"Nano Banana","href":"/model-api-reference/image-generation-api/nano-banana"},{"title":"Nano Banana 2 API","sidebarTitle":"Nano Banana 2","href":"/model-api-reference/image-generation-api/nano-banana-2"},{"title":"Nano Banana Pro API","sidebarTitle":"Nano Banana Pro","href":"/model-api-reference/image-generation-api/nano-banana-pro"},{"group":"Seedvr","pages":[{"group":"Upscale","pages":[{"title":"Seedvr Upscale Image API","sidebarTitle":"Seedvr Upscale Image","href":"/model-api-reference/image-generation-api/seedvr-upscale-image"}]}]},{"group":"Topaz","pages":[{"title":"Topaz Upscale API","sidebarTitle":"Topaz Upscale","href":"/model-api-reference/image-generation-api/topaz-upscale"}]},{"group":"Xai","pages":[{"title":"Xai Grok Imagine Image API","sidebarTitle":"Xai Grok Imagine Image","href":"/model-api-reference/image-generation-api/xai-grok-imagine-image"}]},{"group":"Z Image","pages":[{"title":"Z Image Base API","sidebarTitle":"Z Image Base","href":"/model-api-reference/image-generation-api/z-image-base"},{"group":"Turbo","pages":[{"title":"Z Image Turbo API","sidebarTitle":"Z Image Turbo","href":"/model-api-reference/image-generation-api/z-image-turbo"},{"title":"Z Image Turbo Controlnet API","sidebarTitle":"Z Image Turbo Controlnet","href":"/model-api-reference/image-generation-api/z-image-turbo-controlnet"},{"title":"Z Image Turbo Image To Image API","sidebarTitle":"Z Image Turbo Image To Image","href":"/model-api-reference/image-generation-api/z-image-turbo-image-to-image"},{"title":"Z Image Turbo Inpaint API","sidebarTitle":"Z Image Turbo Inpaint","href":"/model-api-reference/image-generation-api/z-image-turbo-inpaint"},{"title":"Z Image Turbo Lora API","sidebarTitle":"Z Image Turbo Lora","href":"/model-api-reference/image-generation-api/z-image-turbo-lora"},{"title":"Z Image Turbo Tiling API","sidebarTitle":"Z Image Turbo Tiling","href":"/model-api-reference/image-generation-api/z-image-turbo-tiling"}]}]}]},{"group":"Audio","pages":[{"title":"Audio API","sidebarTitle":"Overview","href":"/model-api-reference/audio-api/overview"},{"group":"Kling Video","pages":[{"title":"Kling Video Create Voice API","sidebarTitle":"Kling Video Create Voice","href":"/model-api-reference/audio-api/kling-video-create-voice"},{"title":"Kling Video V1 API","sidebarTitle":"Kling Video V1","href":"/model-api-reference/audio-api/kling-video-v1"},{"title":"Kling Video Video To Audio API","sidebarTitle":"Kling Video Video To Audio","href":"/model-api-reference/audio-api/kling-video-video-to-audio"}]},{"title":"Whisper API","sidebarTitle":"Whisper","href":"/model-api-reference/audio-api/whisper"},{"group":"Xai","pages":[{"title":"Xai Tts API","sidebarTitle":"Xai Tts","href":"/model-api-reference/audio-api/xai-tts"}]}]},{"group":"Vision","pages":[{"title":"Vision API","sidebarTitle":"Overview","href":"/model-api-reference/vision-api/overview"},{"title":"Florence 2 Large API","sidebarTitle":"Florence 2 Large","href":"/model-api-reference/vision-api/florence-2-large"},{"title":"Imageutils API","sidebarTitle":"Imageutils","href":"/model-api-reference/vision-api/imageutils"},{"group":"Openrouter","pages":[{"title":"Openrouter Router API","sidebarTitle":"Openrouter Router","href":"/model-api-reference/vision-api/openrouter-router"}]}]},{"group":"3D","pages":[{"title":"3D API","sidebarTitle":"Overview","href":"/model-api-reference/3d-api/overview"},{"group":"Hunyuan 3d","pages":[{"group":"V3.1","pages":[{"title":"Hunyuan 3d V3.1 Part API","sidebarTitle":"Hunyuan 3d V3.1 Part","href":"/model-api-reference/3d-api/hunyuan-3d-v3.1-part"},{"title":"Hunyuan 3d V3.1 Pro API","sidebarTitle":"Hunyuan 3d V3.1 Pro","href":"/model-api-reference/3d-api/hunyuan-3d-v3.1-pro"},{"title":"Hunyuan 3d V3.1 Rapid API","sidebarTitle":"Hunyuan 3d V3.1 Rapid","href":"/model-api-reference/3d-api/hunyuan-3d-v3.1-rapid"},{"title":"Hunyuan 3d V3.1 Smart Topology API","sidebarTitle":"Hunyuan 3d V3.1 Smart Topology","href":"/model-api-reference/3d-api/hunyuan-3d-v3.1-smart-topology"}]}]},{"title":"Trellis API","sidebarTitle":"Trellis","href":"/model-api-reference/3d-api/trellis"},{"title":"Trellis 2 API","sidebarTitle":"Trellis 2","href":"/model-api-reference/3d-api/trellis-2"}]}]},{"tab":"SDK Reference","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/code-brackets.svg","pages":[{"title":"SDK Reference","href":"/api-reference"}]},{"tab":"Inference API","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/file-json.svg","pages":[{"title":"Inference API","href":"/api-reference/inference-api"}]},{"tab":"Platform API","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/layers-three.svg","pages":[{"title":"Platform API","href":"/api-reference/platform-apis"}]},{"tab":"Changelog","icon":"https://mintlify.s3.us-west-1.amazonaws.com/fal-d8505a2e/images/icons/clock.svg","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Kling Video V1.5 Pro API - fal","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":[],"chunks":[]}