Kling 2.6 в 1080p со звуком принимает только стартовый кадр.
Медиа без type. В промпте ссылайтесь на файлы по порядку в массивах: @image_1, @video_1, @audio_1.
Модель
Что можно передать
Kling 3 Omni
До 7 изображений, либо до 4 изображений и 1 видео
Kling 4.0
До 10 изображений, 5 видео и 3 голосов — всего до 15 файлов
Kling 4.0 Flash
До 10 изображений и 5 видео — всего до 15 файлов
{ "model": "kling-v4", "prompt": "The dancer @image_1 performs the moves from @video_1", "images": ["https://example.com/dancer.jpg"], "videos": ["https://example.com/moves.mp4"]}
Без duration берётся суммарная длительность videos в целых секундах, а если видео нет — 5 секунд.
В Kling 4.0 и Flash aspect_ratio: "auto" подбирает пропорции по референсам.
type: "motion", одно изображение персонажа в images и одно видео с движением в videos. Доступно в Kling 2.6 и Kling 3, в 720p и 1080p.Поле character_orientation выбирает ориентацию персонажа:
Значение
Ориентация
"video"
Как в видео: для сложных движений и поворотов. Используется по умолчанию
"image"
Как на изображении: для движений камеры. Видео — от 3 до 10 секунд
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"NixAI","colors":{"primary":"#EA580C","light":"#EA580C","dark":"#EA580C"},"logo":{"light":"https://mintcdn.com/nixai/OHAL6WG-8CvPTLcb/images/NixAI.png?fit=max\u0026auto=format\u0026n=OHAL6WG-8CvPTLcb\u0026q=85\u0026s=20db0792bdd025076fb6dcf67650b5ed","dark":"https://mintcdn.com/nixai/OHAL6WG-8CvPTLcb/images/NixAI.png?fit=max\u0026auto=format\u0026n=OHAL6WG-8CvPTLcb\u0026q=85\u0026s=20db0792bdd025076fb6dcf67650b5ed","href":"https://nixai.ru"},"favicon":"https://mintcdn.com/nixai/OHAL6WG-8CvPTLcb/images/NixAI.png?fit=max\u0026auto=format\u0026n=OHAL6WG-8CvPTLcb\u0026q=85\u0026s=20db0792bdd025076fb6dcf67650b5ed","api":{"examples":{"languages":["curl","python","javascript","node","php","go","java","ruby","powershell","swift","csharp","dotnet","typescript","c","c++","kotlin","rust","dart"],"prefill":true}},"navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://nixai.ru/dashboard"}},"footer":{"socials":{"telegram":"https://t.me/nixai_ru"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"markdown":{"schema":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nixai","hasAudioNarration":false,"actualSubdomain":"nixai","customDomains":["nixai.ru"],"gitSource":{"type":"github","owner":"nikinik0","repo":"docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0ec822261f029092ffe73f","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Video models","count":33},{"language":"default","tag":"Image models","count":24},{"language":"default","tag":"Audio models","count":5},{"language":"default","tag":"Higgsfield Soul","count":5},{"language":"default","tag":"Seedream","count":4},{"language":"default","tag":"GPT Image","count":3},{"language":"default","tag":"Grok Imagine Image","count":3},{"language":"default","tag":"Grok Imagine Video","count":3},{"language":"default","tag":"Happyhorse","count":3},{"language":"default","tag":"Higgsfield Motion Transfer","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"kling/generations","slug":"/kling/generations","pageMetadata":{"title":"Генерация видео","openapi":"kling/openapi.yaml POST /v1/videos/generations","description":"Создаёт задачу генерации видео и сразу возвращает её `task_id`.","href":"/kling/generations"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Создаёт задачу генерации видео и сразу возвращает её \", _jsx(_components.code, {\n children: \"task_id\"\n }), \".\"]\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Tab,Table,Tabs}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Ответ с `,_jsx(_components.code,{children:`task_id`}),` означает, что задача принята. Параметры проверяются уже во время выполнения: результат или отказ придёт в `,_jsx(_components.a,{href:`/kling/fetch`,children:`проверке статуса`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`режимы`,children:`Режимы`}),`\n`,_jsxs(_components.p,{children:[`Режим определяется тем, что передано в запросе. Какие режимы есть у модели — в `,_jsx(_components.a,{href:`/kling/overview#%D0%BC%D0%BE%D0%B4%D0%B5%D0%BB%D0%B8`,children:`таблице моделей`}),`.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Текст`,id:`%D1%82%D0%B5%D0%BA%D1%81%D1%82`,children:[_jsxs(_components.p,{children:[`Только `,_jsx(_components.code,{children:`prompt`}),`, без медиа и без `,_jsx(_components.code,{children:`type`}),`. Работает во всех моделях.`]}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v4\"`}),_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 golden retriever runs along the beach at sunset\"`}),_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:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},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:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`}),_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\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`Кадры`,id:`%D0%BA%D0%B0%D0%B4%D1%80%D1%8B`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`type: \"frames\"`}),` и изображения в `,_jsx(_components.code,{children:`images`}),` по порядку: первое — стартовый кадр, последнее — финальный, между ними — ключевые.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Модель`}),_jsx(_components.th,{children:`Сколько кадров`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 2.6, Kling 3`}),_jsx(_components.td,{children:`1–2: старт и финал`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 3 Turbo, Kling 4.0 Flash`}),_jsx(_components.td,{children:`1: только старт`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 4.0`}),_jsxs(_components.td,{children:[`До `,_jsx(_components.code,{children:`min(duration + 1, 10)`})]})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v3\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"frames\"`}),_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:`\"The camera slowly approaches the lighthouse\"`}),_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:` \"images\"`}),_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://example.com/start.jpg\"`}),_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://example.com/end.jpg\"`})}),`\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:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_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:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1080p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Пропорции задаёт первое изображение: `,_jsx(_components.code,{children:`aspect_ratio`}),` и `,_jsx(_components.code,{children:`videos`}),` не передавайте.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`prompt`}),` необязателен. Без `,_jsx(_components.code,{children:`duration`}),` ролик длится `,_jsx(_components.code,{children:`max(5, кадров − 1)`}),` секунд.`]}),`\n`,_jsxs(_components.li,{children:[`Kling 2.6 в `,_jsx(_components.code,{children:`1080p`}),` со звуком принимает только стартовый кадр.`]}),`\n`]})]}),_jsxs(Tab,{title:`Референсы`,id:`%D1%80%D0%B5%D1%84%D0%B5%D1%80%D0%B5%D0%BD%D1%81%D1%8B`,children:[_jsxs(_components.p,{children:[`Медиа без `,_jsx(_components.code,{children:`type`}),`. В промпте ссылайтесь на файлы по порядку в массивах: `,_jsx(_components.code,{children:`@image_1`}),`, `,_jsx(_components.code,{children:`@video_1`}),`, `,_jsx(_components.code,{children:`@audio_1`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Модель`}),_jsx(_components.th,{children:`Что можно передать`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 3 Omni`}),_jsx(_components.td,{children:`До 7 изображений, либо до 4 изображений и 1 видео`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 4.0`}),_jsx(_components.td,{children:`До 10 изображений, 5 видео и 3 голосов — всего до 15 файлов`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 4.0 Flash`}),_jsx(_components.td,{children:`До 10 изображений и 5 видео — всего до 15 файлов`})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v4\"`}),_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:`\"The dancer @image_1 performs the moves from @video_1\"`}),_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:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/dancer.jpg\"`}),_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:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/moves.mp4\"`}),_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.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Без `,_jsx(_components.code,{children:`duration`}),` берётся суммарная длительность `,_jsx(_components.code,{children:`videos`}),` в целых секундах, а если видео нет — 5 секунд.`]}),`\n`,_jsxs(_components.li,{children:[`В Kling 4.0 и Flash `,_jsx(_components.code,{children:`aspect_ratio: \"auto\"`}),` подбирает пропорции по референсам.`]}),`\n`]})]}),_jsxs(Tab,{title:`Перенос движения`,id:`%D0%BF%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D0%B4%D0%B2%D0%B8%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`type: \"motion\"`}),`, одно изображение персонажа в `,_jsx(_components.code,{children:`images`}),` и одно видео с движением в `,_jsx(_components.code,{children:`videos`}),`. Доступно в Kling 2.6 и Kling 3, в `,_jsx(_components.code,{children:`720p`}),` и `,_jsx(_components.code,{children:`1080p`}),`.`]}),_jsxs(_components.p,{children:[`Поле `,_jsx(_components.code,{children:`character_orientation`}),` выбирает ориентацию персонажа:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Значение`}),_jsx(_components.th,{children:`Ориентация`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"video\"`})}),_jsx(_components.td,{children:`Как в видео: для сложных движений и поворотов. Используется по умолчанию`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"image\"`})}),_jsx(_components.td,{children:`Как на изображении: для движений камеры. Видео — от 3 до 10 секунд`})]})]})]}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v3\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"motion\"`}),_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:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/character.jpg\"`}),_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:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/motion.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:` \"character_orientation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"720p\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Длину ролика задаёт видео. Оплачивается его фактическая длина с долями секунды по `,_jsx(_components.a,{href:`/kling/overview#%D1%82%D0%B0%D1%80%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D1%8F`,children:`отдельным ставкам`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`prompt`}),` необязателен, `,_jsx(_components.code,{children:`audios`}),` не передаются.`]}),`\n`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Для текста и референсов доступны `,_jsx(_components.code,{children:`aspect_ratio`}),` `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),` и `,_jsx(_components.code,{children:`1:1`}),`; в Kling 4.0 и Flash — ещё `,_jsx(_components.code,{children:`21:9`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`4k-и-hdr`,children:`4K и HDR`}),`\n`,_jsxs(_components.p,{children:[`HDR есть только в Kling 4.0 — во всех режимах, вместе с `,_jsx(_components.code,{children:`size`}),` `,_jsx(_components.code,{children:`1080p`}),` или `,_jsx(_components.code,{children:`4k`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Результат`}),_jsx(_components.th,{children:`Поля запроса`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`4K HDR`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"size\": \"4k\", \"hdr\": true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1080p HDR`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"size\": \"1080p\", \"hdr\": true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`4K SDR`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"size\": \"4k\"`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Запрос с `,_jsx(_components.code,{children:`hdr: true`}),` в `,_jsx(_components.code,{children:`720p`}),` или для другой модели будет отклонён. Готовый HDR-файл приходит в поле `,_jsx(_components.a,{href:`/kling/fetch#hdr-%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82`,children:_jsx(_components.code,{children:`original_video_url`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`звук-и-голос`,children:`Звук и голос`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`generate_audio`})}),` — модель сама создаёт речь, музыку и эффекты по `,_jsx(_components.code,{children:`prompt`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`audios`})}),` — образцы вашего голоса: запись задаёт голос персонажа, а реплики пишутся в `,_jsx(_components.code,{children:`prompt`}),`. Например: «мужчина `,_jsx(_components.code,{children:`@image_1`}),` говорит „Привет“ голосом `,_jsx(_components.code,{children:`@audio_1`}),`».`]}),`\n`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Модель`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`generate_audio`})}),_jsxs(_components.th,{children:[`Свой голос в `,_jsx(_components.code,{children:`audios`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 2.6`}),_jsxs(_components.td,{children:[`Только в `,_jsx(_components.code,{children:`1080p`}),`. В `,_jsx(_components.code,{children:`720p`}),` передавайте `,_jsx(_components.code,{children:`false`})]}),_jsxs(_components.td,{children:[`В кадрах: `,_jsx(_components.code,{children:`1080p`}),`, со звуком, один кадр`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 3, Kling 3 Omni`}),_jsxs(_components.td,{children:[`По умолчанию `,_jsx(_components.code,{children:`true`})]}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 3 Turbo`}),_jsx(_components.td,{children:`Звука нет`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 4.0`}),_jsxs(_components.td,{children:[`По умолчанию `,_jsx(_components.code,{children:`true`}),`. В кадрах не настраивается`]}),_jsx(_components.td,{children:`В референсах, до 3 образцов`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kling 4.0 Flash`}),_jsx(_components.td,{children:`Как у Kling 4.0`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`требования-к-файлам`,children:`Требования к файлам`}),`\n`,_jsx(_components.p,{children:`Все URL должны открываться без авторизации и отдавать сам файл.`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Изображения и видео`,icon:`image`,id:`izobrazheniya-i-video`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Требование`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Изображения`}),_jsx(_components.td,{children:`JPEG или PNG`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Видео`}),_jsx(_components.td,{children:`MP4 или MOV`})]})]})]}),_jsx(_components.p,{children:`Для Kling 4.0 и Kling 4.0 Flash дополнительно:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Kling 4.0`}),_jsx(_components.th,{children:`Kling 4.0 Flash`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Изображение`}),_jsx(_components.td,{children:`Каждая сторона от 300 px`}),_jsx(_components.td,{children:`Каждая сторона от 300 px`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Видео`}),_jsx(_components.td,{children:`До 150 МБ, 3–30 секунд`}),_jsx(_components.td,{children:`До 150 МБ, 3–20 секунд`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Все видео вместе`}),_jsx(_components.td,{children:`До 30 секунд`}),_jsx(_components.td,{children:`До 20 секунд`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Пропорции файла`}),_jsx(_components.td,{children:`От 2:5 до 5:2`}),_jsx(_components.td,{children:`От 2:5 до 5:2`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`До 8000 символов`}),_jsx(_components.td,{children:`До 8000 символов`})]})]})]}),_jsxs(_components.p,{children:[`Слишком узкий или широкий файл нужно обрезать или дополнить полями: `,_jsx(_components.code,{children:`aspect_ratio`}),` задаёт пропорции результата и входные файлы не меняет.`]})]}),_jsxs(Accordion,{title:`Образцы голоса`,icon:`microphone`,id:`obraztsy-golosa`,children:[_jsx(_components.p,{children:`Для Kling 4.0:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Требование`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Формат`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`mp3`}),`, `,_jsx(_components.code,{children:`wav`}),`, `,_jsx(_components.code,{children:`m4a`}),`, `,_jsx(_components.code,{children:`flac`}),`, `,_jsx(_components.code,{children:`aac`}),`, `,_jsx(_components.code,{children:`ogg`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Длина записи`}),_jsx(_components.td,{children:`От 5 до 30 секунд`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Чистый голос после очистки`}),_jsx(_components.td,{children:`Не меньше 3 секунд`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Размер файла`}),_jsx(_components.td,{children:`До 50 МБ`})]})]})]}),_jsxs(_components.p,{children:[`Лучше всего подходит чистая речь одного человека без музыки и шума. Длину ролика задаёт `,_jsx(_components.code,{children:`duration`}),`, а не длина записи.`]})]})]})]})}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":"Генерация видео","openapi":"kling/openapi.yaml POST /v1/videos/generations","description":"Создаёт задачу генерации видео и сразу возвращает её `task_id`.","href":"/kling/generations"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Режимы","slug":"режимы","depth":2,"children":[]},{"title":"4K и HDR","slug":"4k-и-hdr","depth":2,"children":[]},{"title":"Звук и голос","slug":"звук-и-голос","depth":2,"children":[]},{"title":"Требования к файлам","slug":"требования-к-файлам","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Kling"],"summary":"Генерация видео","description":"Создаёт задачу генерации видео и сразу возвращает её `task_id`.","requestBody":"e86356a0-6e17-4aff-b6b8-e6144fb6578e","responses":{"200":"09d98126-8dd3-4701-a753-3bc29f3d8e00","401":"30aef6c5-6b41-4f98-84b3-bba0867e0daa","403":"2ab8f88d-49ce-49b6-8a5c-fb5c5aefd31b","404":"0c05800d-e870-4795-8303-aa95160ad55f","503":"cac31619-5c4b-48d8-a2bb-7b4a5d3087c5"},"method":"post","type":"path","servers":["24042f8c-5160-4e33-8dfe-b855c2b1bf01"],"security":["829ca9c8-8717-4627-bb06-f2f0c40d090c","8b409375-24e8-4b0e-8ccc-dba0609254ba"],"path":"/v1/videos/generations","baseUrlOptions":["https://api.nixai.ru"],"title":"Генерация видео","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","node","php","go","java","ruby","powershell","swift","csharp","dotnet","typescript","c","c++","kotlin","rust","dart"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"kling-v4","body.prompt":"Золотистый ретривер бежит по пляжу на закате","body.duration":5,"body.size":"720p","body.aspect_ratio":"16:9"},{"body.model":"kling-v4","body.prompt":"Рассвет отражается в горном озере","body.duration":5,"body.size":"4k","body.hdr":true,"body.aspect_ratio":"16:9"},{"body.model":"kling-v4-flash","body.prompt":"Золотистый ретривер бежит по пляжу на закате","body.duration":5,"body.size":"720p"},{"body.model":"kling-v2-6","body.prompt":"Золотистый ретривер бежит по пляжу на закате","body.duration":5,"body.size":"720p","body.generate_audio":false},{"body.model":"kling-v3","body.prompt":"Камера плавно приближается к маяку","body.type":"frames","body.images.items.0":"https://example.com/start.jpg","body.images.items.1":"https://example.com/end.jpg","body.duration":8,"body.size":"1080p"},{"body.model":"kling-v4","body.prompt":"Камера плавно движется, в городе зажигаются огни","body.type":"frames","body.images.items.0":"https://example.com/start.jpg","body.images.items.1":"https://example.com/middle.jpg","body.images.items.2":"https://example.com/end.jpg","body.duration":8,"body.size":"1080p"},{"body.model":"kling-v4","body.prompt":"Персонаж с @image_1 повторяет движение из @video_1","body.images.items.0":"https://example.com/character.jpg","body.videos.items.0":"https://example.com/moves.mp4","body.size":"720p"},{"body.model":"kling-v4","body.prompt":"Мужчина говорит «Доброе утро» голосом @audio_1, женщина отвечает голосом @audio_2","body.audios.items.0":"https://example.com/voice-man.mp3","body.audios.items.1":"https://example.com/voice-woman.wav","body.duration":8,"body.size":"720p"},{"body.model":"kling-v3-omni","body.prompt":"Персонаж с @image_1 идёт по вечернему городу","body.images.items.0":"https://example.com/character.jpg","body.duration":8,"body.size":"4k","body.aspect_ratio":"16:9"},{"body.model":"kling-v3","body.type":"motion","body.images.items.0":"https://example.com/character.jpg","body.videos.items.0":"https://example.com/motion.mp4","body.size":"720p","body.character_orientation":"video"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"type":"string","enum":["kling-v2-6","kling-v3","kling-v3-turbo","kling-v3-omni","kling-v4","kling-v4-flash"],"description":"Модель Kling.","example":"kling-v4","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"Описание видео. Обязателен для текста и референсов; с `type` — по желанию.\nНа файлы ссылайтесь по порядку: `@image_1`, `@video_1`, `@audio_1`.","example":"Золотистый ретривер бежит по пляжу на закате","uniqueKey":"prompt","typeLabel":"string"},"type":{"type":"string","enum":["frames","motion"],"description":"Как использовать медиа: `frames` — изображения становятся кадрами видео,\n`motion` — перенос движения. Без `type` медиа считаются референсами.","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"images":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"images.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Публичные URL изображений: кадры, референсы или персонаж для переноса движения.","uniqueKey":"images","typeLabel":"string\u003curi>[]"},"videos":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"videos.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Публичные URL видео: референсы или видео с движением.","uniqueKey":"videos","typeLabel":"string\u003curi>[]"},"audios":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"audios.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Публичные URL образцов голоса. Запись задаёт голос, реплики пишутся в `prompt`.","uniqueKey":"audios","typeLabel":"string\u003curi>[]"},"duration":{"type":"integer","minimum":3,"maximum":30,"description":"Длительность в секундах, обычно по умолчанию 5. Диапазон зависит от модели.","uniqueKey":"duration","typeLabel":"integer"},"size":{"type":"string","enum":["720p","1080p","4k"],"default":"720p","description":"Разрешение. Доступные значения зависят от модели.","uniqueKey":"size","typeLabel":"enum\u003cstring>"},"hdr":{"type":"boolean","default":false,"description":"HDR-результат. Только Kling 4.0 с `size` `1080p` или `4k`.","uniqueKey":"hdr","typeLabel":"boolean"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","21:9","auto"],"description":"Соотношение сторон для текста и референсов. `21:9` и `auto` — только\nKling 4.0 и Flash, `auto` — только с референсами. С `type: frames` не передаётся.","uniqueKey":"aspect_ratio","typeLabel":"enum\u003cstring>"},"generate_audio":{"type":"boolean","description":"Создавать звук по `prompt` — речь, музыку, эффекты. Умолчание зависит от модели.","uniqueKey":"generate_audio","typeLabel":"boolean"},"character_orientation":{"type":"string","enum":["video","image"],"default":"video","description":"Только для `type: motion` — откуда брать ориентацию персонажа.","uniqueKey":"character_orientation","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"text":{"title":"text","summary":"Текст — Kling 4.0","value":{"model":"kling-v4","prompt":"Золотистый ретривер бежит по пляжу на закате","duration":5,"size":"720p","aspect_ratio":"16:9"}},"textHdr":{"title":"textHdr","summary":"Текст в 4K HDR — Kling 4.0","value":{"model":"kling-v4","prompt":"Рассвет отражается в горном озере","duration":5,"aspect_ratio":"16:9","size":"4k","hdr":true}},"textFlash":{"title":"textFlash","summary":"Текст — Kling 4.0 Flash","value":{"model":"kling-v4-flash","prompt":"Золотистый ретривер бежит по пляжу на закате","duration":5,"size":"720p"}},"textNoAudio":{"title":"textNoAudio","summary":"Текст без звука — Kling 2.6","value":{"model":"kling-v2-6","prompt":"Золотистый ретривер бежит по пляжу на закате","duration":5,"size":"720p","generate_audio":false}},"frames":{"title":"frames","summary":"Первый и последний кадр — Kling 3","value":{"model":"kling-v3","type":"frames","prompt":"Камера плавно приближается к маяку","images":["https://example.com/start.jpg","https://example.com/end.jpg"],"duration":8,"size":"1080p"}},"keyframes":{"title":"keyframes","summary":"Ключевые кадры — Kling 4.0","value":{"model":"kling-v4","type":"frames","prompt":"Камера плавно движется, в городе зажигаются огни","images":["https://example.com/start.jpg","https://example.com/middle.jpg","https://example.com/end.jpg"],"duration":8,"size":"1080p"}},"references":{"title":"references","summary":"Референсы — Kling 4.0","value":{"model":"kling-v4","prompt":"Персонаж с @image_1 повторяет движение из @video_1","images":["https://example.com/character.jpg"],"videos":["https://example.com/moves.mp4"],"size":"720p"}},"voices":{"title":"voices","summary":"Голоса из аудио — Kling 4.0","value":{"model":"kling-v4","prompt":"Мужчина говорит «Доброе утро» голосом @audio_1, женщина отвечает голосом @audio_2","audios":["https://example.com/voice-man.mp3","https://example.com/voice-woman.wav"],"duration":8,"size":"720p"}},"omni":{"title":"omni","summary":"Референсы в 4K — Kling 3 Omni","value":{"model":"kling-v3-omni","prompt":"Персонаж с @image_1 идёт по вечернему городу","images":["https://example.com/character.jpg"],"duration":8,"size":"4k","aspect_ratio":"16:9"}},"motion":{"title":"motion","summary":"Перенос движения — Kling 3","value":{"model":"kling-v3","type":"motion","images":["https://example.com/character.jpg"],"videos":["https://example.com/motion.mp4"],"character_orientation":"video","size":"720p"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"09d98126-8dd3-4701-a753-3bc29f3d8e00":{"description":"Задача создана","content":{"application/json":{"schema":{"type":"object","required":["task_id"],"properties":{"task_id":{"type":"string","description":"Идентификатор задачи для проверки статуса.","example":"b22c9ae2-0b55-4398-88df-0191aae664f0","isRequired":true,"uniqueKey":"task_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0"},"examples":{"Example":{"title":"Example","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0"}}},"exampleType":"examples"}},"exampleType":"examples"},"30aef6c5-6b41-4f98-84b3-bba0867e0daa":{"description":"Ошибка авторизации: `missing_api_key`, `invalid_api_key` или `account_not_found`.","content":{"application/json":{"schema":{"type":"object","required":["type","error","request_id"],"properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","description":"Тип HTTP-ошибки.","example":"authentication_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","description":"Код HTTP-ошибки.","example":"invalid_api_key","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Описание HTTP-ошибки.","example":"Incorrect API key provided.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Идентификатор HTTP-запроса.","example":"req_1234567890","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"error","error":{"type":"authentication_error","code":"invalid_api_key","message":"Incorrect API key provided.","param":null},"request_id":"req_1234567890"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"authentication_error","code":"invalid_api_key","message":"Incorrect API key provided.","param":null},"request_id":"req_1234567890"}}},"exampleType":"examples"}},"exampleType":"examples"},"2ab8f88d-49ce-49b6-8a5c-fb5c5aefd31b":{"description":"Недостаточно средств (`insufficient_quota`) или модель недоступна группе API-ключа (`no_group_match`).","content":{"application/json":{"schema":{"type":"object","required":["type","error","request_id"],"properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","description":"Тип HTTP-ошибки.","example":"authentication_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","description":"Код HTTP-ошибки.","example":"invalid_api_key","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Описание HTTP-ошибки.","example":"Incorrect API key provided.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Идентификатор HTTP-запроса.","example":"req_1234567890","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"authentication_error","code":"invalid_api_key","message":"Incorrect API key provided.","param":null},"request_id":"req_1234567890"}}},"exampleType":"generated"}},"exampleType":"generated"},"0c05800d-e870-4795-8303-aa95160ad55f":{"description":"Неизвестная модель: `model_not_found`.","content":{"application/json":{"schema":{"type":"object","required":["type","error","request_id"],"properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","description":"Тип HTTP-ошибки.","example":"authentication_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","description":"Код HTTP-ошибки.","example":"invalid_api_key","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Описание HTTP-ошибки.","example":"Incorrect API key provided.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Идентификатор HTTP-запроса.","example":"req_1234567890","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"authentication_error","code":"invalid_api_key","message":"Incorrect API key provided.","param":null},"request_id":"req_1234567890"}}},"exampleType":"generated"}},"exampleType":"generated"},"cac31619-5c4b-48d8-a2bb-7b4a5d3087c5":{"description":"Нет доступных каналов для модели: `no_channels_available`.","content":{"application/json":{"schema":{"type":"object","required":["type","error","request_id"],"properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","description":"Тип HTTP-ошибки.","example":"authentication_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"type":"string","description":"Код HTTP-ошибки.","example":"invalid_api_key","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Описание HTTP-ошибки.","example":"Incorrect API key provided.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Связанный параметр или `null`.","example":null,"isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Идентификатор HTTP-запроса.","example":"req_1234567890","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"authentication_error","code":"invalid_api_key","message":"Incorrect API key provided.","param":null},"request_id":"req_1234567890"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"829ca9c8-8717-4627-bb06-f2f0c40d090c":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Заголовок `Authorization: Bearer \u003cваш API-ключ>`. Альтернатива заголовку `x-api-key`.","scopes":[],"schemeName":"bearerAuth"}},"8b409375-24e8-4b0e-8ccc-dba0609254ba":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Заголовок `x-api-key: \u003cваш API-ключ>`. Альтернатива Bearer-авторизации; достаточно одного способа.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"24042f8c-5160-4e33-8dfe-b855c2b1bf01":{"url":"https://api.nixai.ru"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Заголовок `Authorization: Bearer \u003cваш API-ключ>`. Альтернатива заголовку `x-api-key`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Заголовок `Authorization: Bearer \u003cваш API-ключ>`. Альтернатива заголовку `x-api-key`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Заголовок `x-api-key: \u003cваш API-ключ>`. Альтернатива Bearer-авторизации; достаточно одного способа.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Заголовок `x-api-key: \u003cваш API-ключ>`. Альтернатива Bearer-авторизации; достаточно одного способа.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"kling/openapi.yaml"},"subdomain":"nixai","siteName":"NixAI","title":"Генерация видео - NixAI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T12:55:28.228Z","originalFileLocation":"kling/generations.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Создаёт задачу генерации видео и сразу возвращает её task_id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NixAI\">\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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_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/nixai/RPz2Kj6-5lc_-SDA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Генерация видео - NixAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Создаёт задачу генерации видео и сразу возвращает её task_id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NixAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nixai.ru/docs/kling/generations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nixai.mintlify.site/docs/_mintlify/api/og/v2?division=Kling\u0026amp;title=%D0%93%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE\u0026amp;description=%D0%A1%D0%BE%D0%B7%D0%B4%D0%B0%D1%91%D1%82+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D1%83+%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE+%D0%B8+%D1%81%D1%80%D0%B0%D0%B7%D1%83+%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%89%D0%B0%D0%B5%D1%82+%D0%B5%D1%91+%60task_id%60.\u0026amp;theme=c85a10262eba266ab143b527\u0026amp;signature=cebe770e8ee31578d9b5f06ecb3e9f6e93598e9b7b245bbafcb0b8016342cd29\">\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=\"Генерация видео - NixAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Создаёт задачу генерации видео и сразу возвращает её task_id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nixai.mintlify.site/docs/_mintlify/api/og/v2?division=Kling\u0026amp;title=%D0%93%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE\u0026amp;description=%D0%A1%D0%BE%D0%B7%D0%B4%D0%B0%D1%91%D1%82+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D1%83+%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE+%D0%B8+%D1%81%D1%80%D0%B0%D0%B7%D1%83+%D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%89%D0%B0%D0%B5%D1%82+%D0%B5%D1%91+%60task_id%60.\u0026amp;theme=c85a10262eba266ab143b527\u0026amp;signature=cebe770e8ee31578d9b5f06ecb3e9f6e93598e9b7b245bbafcb0b8016342cd29\">\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/nixai/RPz2Kj6-5lc_-SDA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NixAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EA580C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nixai.ru/docs/kling/generations\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/kling/generations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nixai.ru/#organization\",\"name\":\"NixAI\",\"url\":\"https://nixai.ru\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nixai/OHAL6WG-8CvPTLcb/images/NixAI.png?fit=max\u0026auto=format\u0026n=OHAL6WG-8CvPTLcb\u0026q=85\u0026s=20db0792bdd025076fb6dcf67650b5ed\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nixai.ru/docs#website\",\"name\":\"NixAI\",\"url\":\"https://nixai.ru/docs\",\"publisher\":{\"@id\":\"https://nixai.ru/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nixai.ru/docs/kling/generations#webpage\",\"url\":\"https://nixai.ru/docs/kling/generations\",\"name\":\"Генерация видео\",\"description\":\"Создаёт задачу генерации видео и сразу возвращает её task_id.\",\"dateModified\":\"2026-12-01T12:55:28.228Z\",\"isPartOf\":{\"@id\":\"https://nixai.ru/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nixai.ru/docs/kling/generations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nixai.ru/docs/kling/generations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video models\",\"item\":\"https://nixai.ru/docs/grok-imagine/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling\",\"item\":\"https://nixai.ru/docs/kling/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Генерация видео\",\"item\":\"https://nixai.ru/docs/kling/generations\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://nixai.ru/docs/kling/generations#apireference\",\"headline\":\"Генерация видео\",\"name\":\"Генерация видео\",\"description\":\"Создаёт задачу генерации видео и сразу возвращает её task_id.\",\"url\":\"https://nixai.ru/docs/kling/generations\",\"mainEntityOfPage\":{\"@id\":\"https://nixai.ru/docs/kling/generations#webpage\"},\"dateModified\":\"2026-12-01T12:55:28.228Z\",\"publisher\":{\"@id\":\"https://nixai.ru/#organization\"},\"isPartOf\":{\"@id\":\"https://nixai.ru/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NixAI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NixAI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/kling/generations.md","siteName":"NixAI","nav":{"global":null,"groups":[{"group":"Основная информация","pages":[]},{"group":"Text models","pages":[{"group":"Chat Completions","pages":[{"title":"Chat Completions","openapi":"text-models/openapi.yaml POST /v1/chat/completions","href":"/text-models/chat-completions"},{"title":"Chat Completions с изображением","openapi":"text-models/vision-openapi.yaml POST /v1/chat/completions","href":"/text-models/chat-completions-vision"}]}]},{"group":"Audio models","pages":[{"title":"Синтез речи (Text to Speech)","href":"/audio/overview"},{"title":"Создать задачу синтеза речи","deprecated":null,"version":null,"openapi":"/audio/openapi.yaml post /v1/audio/speech/generations","href":"/api-reference/audio/создать-задачу-синтеза-речи"},{"title":"Проверить статус синтеза","deprecated":null,"version":null,"openapi":"/audio/openapi.yaml post /v1/audio/fetch","href":"/api-reference/audio/проверить-статус-синтеза"},{"title":"Получить голоса по умолчанию","deprecated":null,"version":null,"openapi":"/audio/openapi.yaml get /v1/audio/voices","href":"/api-reference/audio/получить-голоса-по-умолчанию"},{"title":"Поиск в библиотеке голосов","deprecated":null,"version":null,"openapi":"/audio/openapi.yaml get /v1/audio/voices/library","href":"/api-reference/audio/поиск-в-библиотеке-голосов"}]},{"group":"Image models","pages":[{"group":"Grok Imagine Image","pages":[{"title":"Обзор","href":"/grok-imagine-image/overview"},{"title":"Генерация изображения","openapi":"grok-imagine-image/openapi.yaml POST /v1/images/generations","href":"/grok-imagine-image/generations"},{"title":"Редактирование изображения","openapi":"grok-imagine-image/openapi.yaml POST /v1/images/edits","href":"/grok-imagine-image/edits"}]},{"group":"GPT Image","pages":[{"title":"Обзор","href":"/gpt-image-2/overview"},{"title":"Генерация изображения","openapi":"gpt-image-2/openapi.yaml POST /v1/images/generations","href":"/gpt-image-2/generations"},{"title":"Редактирование изображения","openapi":"gpt-image-2/openapi.yaml POST /v1/images/edits","href":"/gpt-image-2/edits"}]},{"group":"Midjourney","pages":[{"title":"Обзор","href":"/midjourney/overview"},{"title":"Генерация изображения","openapi":"midjourney/openapi.yaml POST /v1/images/generations","href":"/midjourney/generations"},{"title":"Редактирование изображения","openapi":"midjourney/openapi.yaml POST /v1/images/edits","href":"/midjourney/edits"}]},{"group":"Nano Banana","pages":[{"title":"Обзор","href":"/nano-banana/overview"},{"title":"Генерация изображения","openapi":"nano-banana/openapi.yaml POST /v1/images/generations","href":"/nano-banana/generations"},{"title":"Редактирование изображения","openapi":"nano-banana/openapi.yaml POST /v1/images/edits","href":"/nano-banana/edits"}]},{"group":"Seedream","pages":[{"title":"Обзор","href":"/seedream/overview"},{"title":"Генерация изображения","openapi":"seedream/openapi.yaml POST /v1/images/generations","href":"/seedream/generations"},{"title":"Редактирование изображения","openapi":"seedream/openapi.yaml POST /v1/images/edits","href":"/seedream/edits"},{"title":"Разбиение на слои","href":"/seedream/layers"}]},{"group":"Wan 2.7 Image Pro","pages":[{"title":"Обзор","href":"/wan2.7-image-pro/overview"},{"title":"Генерация изображения","openapi":"wan2.7-image-pro/openapi.yaml POST /v1/images/generations","href":"/wan2.7-image-pro/generations"},{"title":"Редактирование изображения","openapi":"wan2.7-image-pro/openapi.yaml POST /v1/images/edits","href":"/wan2.7-image-pro/edits"}]},{"group":"Higgsfield Soul","pages":[{"title":"Персонажи (Soul ID)","href":"/higgsfield-soul/overview"},{"title":"Создание персонажа","openapi":"higgsfield-soul/openapi.yaml POST /v1/characters/generations","href":"/higgsfield-soul/character-generations"},{"title":"Проверка персонажа","openapi":"higgsfield-soul/openapi.yaml POST /v1/characters/fetch","href":"/higgsfield-soul/character-fetch"},{"title":"Генерация изображения","openapi":"higgsfield-soul/openapi.yaml POST /v1/images/generations","href":"/higgsfield-soul/generations"},{"title":"Стили генерации","href":"/higgsfield-soul/styles"}]}]},{"group":"Video models","pages":[{"group":"Grok Imagine Video","pages":[{"title":"Обзор","href":"/grok-imagine/overview"},{"title":"Генерация видео","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/videos/generations","href":"/api-reference/video/генерация-видео"},{"title":"Проверка статуса видео","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/videos/fetch","href":"/api-reference/video/проверка-статуса-видео"}]},{"group":"Kling","pages":[{"title":"Обзор","description":"Шесть моделей Kling: видео по тексту, кадрам и референсам, перенос движения, 4K и HDR.","href":"/kling/overview"},{"title":"Генерация видео","openapi":"kling/openapi.yaml POST /v1/videos/generations","href":"/kling/generations"},{"title":"Проверка статуса","openapi":"kling/openapi.yaml POST /v1/videos/fetch","description":"Возвращает статус задачи и ссылку на готовое видео.","href":"/kling/fetch"}]},{"group":"Seedance","pages":[{"title":"Обзор","href":"/seedance/overview"},{"title":"Генерация видео","openapi":"seedance/openapi.yaml POST /v1/videos/generations","href":"/seedance/generations"},{"title":"Проверка статуса","openapi":"seedance/openapi.yaml POST /v1/videos/fetch","href":"/seedance/fetch"}]},{"group":"Happyhorse","pages":[{"title":"Обзор","href":"/happyhorse/overview"},{"title":"Генерация видео","openapi":"happyhorse/openapi.yaml POST /v1/videos/generations","href":"/happyhorse/generations"},{"title":"Проверка статуса","openapi":"happyhorse/openapi.yaml POST /v1/videos/fetch","href":"/happyhorse/fetch"}]},{"group":"Wan 2.7","pages":[{"title":"Обзор","href":"/wan2.7/overview"},{"title":"Генерация видео","openapi":"wan2.7/openapi.yaml POST /v1/videos/generations","href":"/wan2.7/generations"},{"title":"Проверка статуса","openapi":"wan2.7/openapi.yaml POST /v1/videos/fetch","href":"/wan2.7/fetch"}]},{"group":"Wan 3","pages":[{"title":"Обзор","href":"/wan3/overview"},{"title":"Генерация видео","openapi":"wan3/openapi.yaml POST /v1/videos/generations","href":"/wan3/generations"},{"title":"Проверка статуса","openapi":"wan3/openapi.yaml POST /v1/videos/fetch","href":"/wan3/fetch"}]},{"group":"MAGI-2","pages":[{"title":"Обзор","href":"/magi-2/overview"},{"title":"Генерация видео","openapi":"magi-2/openapi.yaml POST /v1/videos/generations","href":"/magi-2/generations"},{"title":"Проверка статуса","openapi":"magi-2/openapi.yaml POST /v1/videos/fetch","href":"/magi-2/fetch"}]},{"group":"Google Veo/Omni","pages":[{"title":"Обзор","href":"/veo-omni/overview"},{"title":"Генерация видео","openapi":"veo-omni/openapi.yaml POST /v1/videos/generations","href":"/veo-omni/generations"},{"title":"Проверка статуса","openapi":"veo-omni/openapi.yaml POST /v1/videos/fetch","href":"/veo-omni/fetch"}]},{"group":"Topaz Upscale Video","pages":[{"title":"Обзор","href":"/topaz-upscale-video/overview"},{"title":"Увеличение разрешения видео","openapi":"topaz-upscale-video/openapi.yaml POST /v1/videos/generations","href":"/topaz-upscale-video/generations"},{"title":"Проверка статуса","openapi":"topaz-upscale-video/openapi.yaml POST /v1/videos/fetch","href":"/topaz-upscale-video/fetch"}]},{"group":"Higgsfield Motion Transfer","pages":[{"title":"Обзор","href":"/higgsfield-motion-transfer/overview"},{"title":"Перенос движения","openapi":"higgsfield-motion-transfer/openapi.yaml POST /v1/videos/generations","href":"/higgsfield-motion-transfer/generations"},{"title":"Проверка статуса","openapi":"higgsfield-motion-transfer/openapi.yaml POST /v1/videos/fetch","href":"/higgsfield-motion-transfer/fetch"}]},{"group":"Higgsfield Object Swap","pages":[{"title":"Обзор","href":"/higgsfield-object-swap/overview"},{"title":"Замена объекта","openapi":"higgsfield-object-swap/openapi.yaml POST /v1/videos/generations","href":"/higgsfield-object-swap/generations"},{"title":"Проверка статуса","openapi":"higgsfield-object-swap/openapi.yaml POST /v1/videos/fetch","href":"/higgsfield-object-swap/fetch"}]}]}]},"basePath":"","title":"Генерация видео - NixAI","deploymentId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","buildId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-Cn6jN7s-.js","snippetPresets-DjcjTu_l.js","utils-CgDfAybK.js","style-to-object-BY3JEAdk.js","utils-BRh9RHH1.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ekgQXnrs.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DQ8efB5G.js","_Uint8Array-DxysT0ia.js","isObject-FP1Yky1u.js","Page-tKmt1iGP.js","api-description-markdown-KtPg6U4T.js","DynamicMarkdown-Ch7bkVSN.js","CodeSnippet-NZAMx71T.js","use-playground-group-access-BeZ_TnTl.js","SectionHeading-Cj70Qp9A.js","ApiExamples-B4Dcm0cf.js","usePlaygroundInputsStore-CDeMD38v.js","shallow-BG_m8ALL.js","isEqual-DPm32SJd.js","CodeSnippets-DQz1R-UZ.js","MethodPill-BAy1jSVY.js","getPastedJson-BX84PZ05.js","Check2Icon-B6AWYcHm.js","axios-CsQoIw0U.js","Markdown-CfiTBZoc.js","AssistantPageLink-SRAvT1Bg.js","dist-CnoXsf9u.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}