import Foundation
let parameters = ["id": "b22c9ae2-0b55-4398-88df-0191aae664f0"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.nixai.ru/v1/videos/fetch")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
using RestSharp;
var options = new RestClientOptions("https://api.nixai.ru/v1/videos/fetch");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"id\": \"b22c9ae2-0b55-4398-88df-0191aae664f0\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.nixai.ru/v1/videos/fetch");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"id\": \"b22c9ae2-0b55-4398-88df-0191aae664f0\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{ "task_id": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90", "status": "rejected", "error": "ContentRejected", "message": "The request was rejected by content moderation."}
{ "task_id": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90", "status": "failed", "error": "UnknownError", "message": "The generated video could not be delivered."}
HDR-результат
У задач Kling 4.0 с hdr: true в ответе два файла:
original_video_url — HDR-оригинал. На нём возможен водяной знак.
video_url — версия без водяного знака. Если её нет — тот же оригинал.
Поле original_video_url приходит, только когда оригинал доступен: проверяйте его наличие.
Видео в Base64
Добавьте "output_format": "base64" к запросу — у готовой задачи video_url будет содержать Base64 вместо ссылки. original_video_url остаётся ссылкой.
Ошибки
Ошибки самого запроса приходят с HTTP-кодом, ошибки задачи — в ответе с HTTP 200. Обрабатывайте их по коду; текст message написан для человека и может меняться.
Ошибки задачи
HTTP-ошибки
Поле error в ответе /v1/videos/fetch:
error
Причина
Что делать
BadRequest
Параметры или референсы не подходят модели, файл недоступен
Статус failed не гарантирует, что генерация не запускалась. Не создавайте задачу повторно автоматически: новый запрос может запустить ещё одну генерацию.
Частые отказы
Пропорции референса
Отношение ширины к высоте каждого изображения и видео в референсах Kling 4.0 и Flash должно быть от 2:5 до 5:2. Подходят 16:9, 9:16, 1:1; не подходят 3:1 и 1:3.
{ "task_id": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90", "status": "rejected", "error": "BadRequest", "message": "Reference images and videos must have a width-to-height ratio from 2:5 to 5:2. Crop the file or add padding before submitting it again."}
Обрежьте файл или добавьте поля. Уменьшение разрешения и поле aspect_ratio не помогут: сообщение не уточняет, какой именно файл не прошёл, проверьте все.
HDR
hdr: true принимается только у Kling 4.0 с size1080p или 4k. В остальных случаях задача завершится с BadRequest:
{ "task_id": "3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90", "status": "rejected", "error": "BadRequest", "message": "HDR is available at 1080p and 4k. Choose one of these sizes or set hdr to false."}
Образцы голоса
При BadRequest проверьте, что модель принимает audios, и сверьте файлы с требованиями: формат, длину записи и доступность ссылки. ContentRejected означает отказ модерации — замените запись.
import Foundation
let parameters = ["id": "b22c9ae2-0b55-4398-88df-0191aae664f0"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.nixai.ru/v1/videos/fetch")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
using RestSharp;
var options = new RestClientOptions("https://api.nixai.ru/v1/videos/fetch");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"id\": \"b22c9ae2-0b55-4398-88df-0191aae664f0\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.nixai.ru/v1/videos/fetch");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"id\": \"b22c9ae2-0b55-4398-88df-0191aae664f0\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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/fetch","slug":"/kling/fetch","pageMetadata":{"title":"Проверка статуса","openapi":"kling/openapi.yaml POST /v1/videos/fetch","description":"Возвращает статус задачи и ссылку на готовое видео.","href":"/kling/fetch"},"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: \"Возвращает статус задачи и ссылку на готовое видео.\"\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,CodeGroup,Heading,Tab,Table,Tabs,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Передайте `,_jsx(_components.code,{children:`task_id`}),` в поле `,_jsx(_components.code,{children:`id`}),` и повторяйте запрос раз в `,_jsx(_components.strong,{children:`10–15 секунд`}),`, пока статус не станет финальным. Задачу видит только ключ, которым она создана.`]}),`\n`,_jsx(Heading,{level:`2`,id:`статусы`,children:`Статусы`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.th,{children:`Что это значит`}),_jsx(_components.th,{children:`Что в ответе`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Задача выполняется, опрашивайте дальше`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsx(_components.td,{children:`Видео готово`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`video_url`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rejected`})}),_jsx(_components.td,{children:`Запрос отклонён: параметры, референсы или модерация`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`error`}),`, `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{children:`Результат получить не удалось`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`error`}),`, иногда `,_jsx(_components.code,{children:`message`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Оплачиваются только задачи со статусом `,_jsx(_components.code,{children:`completed`}),`.`]}),`\n`,_jsxs(CodeGroup,{children:[_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_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_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.nixai.ru/videos/example.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Готово, HDR`,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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_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_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.nixai.ru/videos/example.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:` \"original_video_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.nixai.ru/videos/example-hdr.mp4\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ContentRejected\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The request was rejected by content moderation.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UnknownError\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The generated video could not be delivered.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`hdr-результат`,children:`HDR-результат`}),`\n`,_jsxs(_components.p,{children:[`У задач Kling 4.0 с `,_jsx(_components.code,{children:`hdr: true`}),` в ответе два файла:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`original_video_url`}),` — HDR-оригинал. На нём возможен водяной знак.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`video_url`}),` — версия без водяного знака. Если её нет — тот же оригинал.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Поле `,_jsx(_components.code,{children:`original_video_url`}),` приходит, только когда оригинал доступен: проверяйте его наличие.`]}),`\n`,_jsx(Heading,{level:`3`,id:`видео-в-base64`,children:`Видео в Base64`}),`\n`,_jsxs(_components.p,{children:[`Добавьте `,_jsx(_components.code,{children:`\"output_format\": \"base64\"`}),` к запросу — у готовой задачи `,_jsx(_components.code,{children:`video_url`}),` будет содержать Base64 вместо ссылки. `,_jsx(_components.code,{children:`original_video_url`}),` остаётся ссылкой.`]}),`\n`,_jsx(Heading,{level:`2`,id:`ошибки`,children:`Ошибки`}),`\n`,_jsxs(_components.p,{children:[`Ошибки самого запроса приходят с HTTP-кодом, ошибки задачи — в ответе с HTTP 200. Обрабатывайте их по коду; текст `,_jsx(_components.code,{children:`message`}),` написан для человека и может меняться.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Ошибки задачи`,id:`%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8-%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8`,children:[_jsxs(_components.p,{children:[`Поле `,_jsx(_components.code,{children:`error`}),` в ответе `,_jsx(_components.code,{children:`/v1/videos/fetch`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`Причина`}),_jsx(_components.th,{children:`Что делать`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BadRequest`})}),_jsx(_components.td,{children:`Параметры или референсы не подходят модели, файл недоступен`}),_jsxs(_components.td,{children:[`Сверьте запрос с `,_jsx(_components.a,{href:`/kling/generations#%D1%80%D0%B5%D0%B6%D0%B8%D0%BC%D1%8B`,children:`режимами`}),` и прочитайте `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ContentRejected`})}),_jsx(_components.td,{children:`Промпт или референсы не прошли модерацию`}),_jsx(_components.td,{children:`Измените промпт или файлы`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UnknownError`})}),_jsx(_components.td,{children:`Сбой генерации или доставки файла`}),_jsxs(_components.td,{children:[`Сохраните `,_jsx(_components.code,{children:`task_id`}),` для поддержки`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TaskInterrupted`})}),_jsx(_components.td,{children:`Обработка прервана перезапуском сервера`}),_jsxs(_components.td,{children:[`Сохраните `,_jsx(_components.code,{children:`task_id`}),` для поддержки`]})]})]})]})]}),_jsxs(Tab,{title:`HTTP-ошибки`,id:`http-%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8`,children:[_jsxs(_components.p,{children:[`Поле `,_jsx(_components.code,{children:`error.code`}),` в ответе с HTTP-кодом ошибки:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`Причина`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsxs(_components.td,{children:[`Запрос некорректен; поле `,_jsx(_components.code,{children:`param`}),` указывает, что исправить`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`missing_api_key`}),` `,_jsx(_components.code,{children:`invalid_api_key`}),` `,_jsx(_components.code,{children:`account_not_found`})]}),_jsx(_components.td,{children:`Ключа нет или он неверный`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_quota`})}),_jsx(_components.td,{children:`Не хватает баланса или лимита ключа`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no_group_match`})}),_jsx(_components.td,{children:`У ключа нет доступа к модели`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`model_not_found`})}),_jsx(_components.td,{children:`Неверное имя модели`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{children:`Задача не найдена или создана другим ключом`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`no_channels_available`})}),_jsx(_components.td,{children:`Нет свободных мощностей, повторите позже`})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_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:` \"error\"`}),_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:`\"authentication_error\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_api_key\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Incorrect API key provided.\"`}),_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:` \"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\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:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"req_…\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Статус `,_jsx(_components.code,{children:`failed`}),` не гарантирует, что генерация не запускалась. Не создавайте задачу повторно автоматически: новый запрос может запустить ещё одну генерацию.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`частые-отказы`,children:`Частые отказы`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Пропорции референса`,id:`proportsii-referensa`,children:[_jsxs(_components.p,{children:[`Отношение ширины к высоте каждого изображения и видео в референсах Kling 4.0 и Flash должно быть от `,_jsx(_components.strong,{children:`2:5 до 5:2`}),`. Подходят `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`}),`; не подходят `,_jsx(_components.code,{children:`3:1`}),` и `,_jsx(_components.code,{children:`1:3`}),`.`]}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BadRequest\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reference images and videos must have a width-to-height ratio from 2:5 to 5:2. Crop the file or add padding before submitting it again.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Обрежьте файл или добавьте поля. Уменьшение разрешения и поле `,_jsx(_components.code,{children:`aspect_ratio`}),` не помогут: сообщение не уточняет, какой именно файл не прошёл, проверьте все.`]})]}),_jsxs(Accordion,{title:`HDR`,id:`hdr`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hdr: true`}),` принимается только у Kling 4.0 с `,_jsx(_components.code,{children:`size`}),` `,_jsx(_components.code,{children:`1080p`}),` или `,_jsx(_components.code,{children:`4k`}),`. В остальных случаях задача завершится с `,_jsx(_components.code,{children:`BadRequest`}),`:`]}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rejected\"`}),_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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BadRequest\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HDR is available at 1080p and 4k. Choose one of these sizes or set hdr to false.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Accordion,{title:`Образцы голоса`,id:`obraztsy-golosa`,children:_jsxs(_components.p,{children:[`При `,_jsx(_components.code,{children:`BadRequest`}),` проверьте, что модель принимает `,_jsx(_components.code,{children:`audios`}),`, и сверьте файлы с `,_jsx(_components.a,{href:`/kling/generations#%D1%82%D1%80%D0%B5%D0%B1%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F-%D0%BA-%D1%84%D0%B0%D0%B9%D0%BB%D0%B0%D0%BC`,children:`требованиями`}),`: формат, длину записи и доступность ссылки. `,_jsx(_components.code,{children:`ContentRejected`}),` означает отказ модерации — замените запись.`]})})]})]})}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/fetch","description":"Возвращает статус задачи и ссылку на готовое видео.","href":"/kling/fetch"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Статусы","slug":"статусы","depth":2,"children":[{"title":"HDR-результат","slug":"hdr-результат","depth":3,"children":[]},{"title":"Видео в Base64","slug":"видео-в-base64","depth":3,"children":[]}]},{"title":"Ошибки","slug":"ошибки","depth":2,"children":[{"title":"Частые отказы","slug":"частые-отказы","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Kling"],"summary":"Проверка статуса видео","description":"Возвращает статус задачи и ссылку на готовое видео.","requestBody":"eaf8dc0e-e17c-4254-9bb4-41f95e58c29b","responses":{"200":"4aa84c17-4d58-4f18-b2e1-a918b762006a","401":"c1721611-396e-48d5-a98c-da0ee46e6a44","404":"01b78f6a-7ee0-4aab-bf4c-4c45c4411fba"},"method":"post","type":"path","servers":["24042f8c-5160-4e33-8dfe-b855c2b1bf01"],"security":["829ca9c8-8717-4627-bb06-f2f0c40d090c","8b409375-24e8-4b0e-8ccc-dba0609254ba"],"path":"/v1/videos/fetch","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.id":"b22c9ae2-0b55-4398-88df-0191aae664f0"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"`task_id`, полученный при создании задачи.","example":"b22c9ae2-0b55-4398-88df-0191aae664f0","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"output_format":{"type":"string","enum":["url","base64"],"default":"url","description":"При `base64` поле `video_url` готовой задачи содержит Base64 вместо ссылки.","uniqueKey":"output_format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"b22c9ae2-0b55-4398-88df-0191aae664f0"},"examples":{"Example":{"title":"Example","value":{"id":"b22c9ae2-0b55-4398-88df-0191aae664f0"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"4aa84c17-4d58-4f18-b2e1-a918b762006a":{"description":"Статус задачи","content":{"application/json":{"schema":{"type":"object","required":["task_id","status"],"properties":{"task_id":{"type":"string","description":"Идентификатор задачи.","example":"b22c9ae2-0b55-4398-88df-0191aae664f0","isRequired":true,"uniqueKey":"task_id","typeLabel":"string"},"status":{"type":"string","enum":["processing","completed","rejected","failed"],"description":"Статус задачи. Финальные — `completed`, `rejected`, `failed`.","example":"completed","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"video_url":{"type":"string","description":"Ссылка на готовое видео. Только при `completed`.","example":"https://cdn.nixai.ru/videos/b22c9ae2.mp4","uniqueKey":"video_url","typeLabel":"string"},"original_video_url":{"type":"string","format":"uri","description":"Ссылка на HDR-оригинал. Только у задач с `hdr: true`, если оригинал доступен.","example":"https://cdn.nixai.ru/videos/b22c9ae2-hdr.mp4","uniqueKey":"original_video_url","typeLabel":"string\u003curi>"},"error":{"type":"string","enum":["BadRequest","ContentRejected","UnknownError","TaskInterrupted"],"description":"Код ошибки при `rejected` или `failed`.","example":"BadRequest","uniqueKey":"error","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Пояснение ошибки для человека. Формулировка может меняться.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"processing":{"title":"processing","summary":"В процессе","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"processing"}},"completed":{"title":"completed","summary":"Готово","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"completed","video_url":"https://cdn.nixai.ru/videos/b22c9ae2.mp4"}},"completedHdr":{"title":"completedHdr","summary":"Готово, HDR","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"completed","video_url":"https://cdn.nixai.ru/videos/b22c9ae2.mp4","original_video_url":"https://cdn.nixai.ru/videos/b22c9ae2-hdr.mp4"}},"rejected":{"title":"rejected","summary":"Отказ — параметры или референсы","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"rejected","error":"BadRequest","message":"HDR is available at 1080p and 4k. Choose one of these sizes or set hdr to false."}},"moderation":{"title":"moderation","summary":"Отказ — модерация","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"rejected","error":"ContentRejected","message":"The request was rejected by content moderation."}},"failed":{"title":"failed","summary":"Сбой","value":{"task_id":"b22c9ae2-0b55-4398-88df-0191aae664f0","status":"failed","error":"UnknownError","message":"The generated video could not be delivered."}}},"exampleType":"examples"}},"exampleType":"examples"},"c1721611-396e-48d5-a98c-da0ee46e6a44":{"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"},"01b78f6a-7ee0-4aab-bf4c-4c45c4411fba":{"description":"Задача не найдена или недоступна этому API-ключу: `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"}},"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/fetch.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=\"Возвращает статус задачи и ссылку на готовое видео.\">\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=\"Возвращает статус задачи и ссылку на готовое видео.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NixAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nixai.ru/docs/kling/fetch\">\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%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0+%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81%D0%B0\u0026amp;description=%D0%92%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%89%D0%B0%D0%B5%D1%82+%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8+%D0%B8+%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D1%83+%D0%BD%D0%B0+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BE%D0%B5+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE.\u0026amp;theme=c85a10262eba266ab143b527\u0026amp;signature=ee8b3b0a1c3f4d4672177663ec793999a5db6b3f45cc50e50040ea43d8e66622\">\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=\"Возвращает статус задачи и ссылку на готовое видео.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nixai.mintlify.site/docs/_mintlify/api/og/v2?division=Kling\u0026amp;title=%D0%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0+%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81%D0%B0\u0026amp;description=%D0%92%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%89%D0%B0%D0%B5%D1%82+%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8+%D0%B8+%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D1%83+%D0%BD%D0%B0+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BE%D0%B5+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE.\u0026amp;theme=c85a10262eba266ab143b527\u0026amp;signature=ee8b3b0a1c3f4d4672177663ec793999a5db6b3f45cc50e50040ea43d8e66622\">\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/fetch\">\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/fetch.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/fetch#webpage\",\"url\":\"https://nixai.ru/docs/kling/fetch\",\"name\":\"Проверка статуса\",\"description\":\"Возвращает статус задачи и ссылку на готовое видео.\",\"dateModified\":\"2026-12-01T12:55:28.228Z\",\"isPartOf\":{\"@id\":\"https://nixai.ru/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nixai.ru/docs/kling/fetch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nixai.ru/docs/kling/fetch#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/fetch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://nixai.ru/docs/kling/fetch#apireference\",\"headline\":\"Проверка статуса\",\"name\":\"Проверка статуса\",\"description\":\"Возвращает статус задачи и ссылку на готовое видео.\",\"url\":\"https://nixai.ru/docs/kling/fetch\",\"mainEntityOfPage\":{\"@id\":\"https://nixai.ru/docs/kling/fetch#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/fetch.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":"Обзор","href":"/kling/overview"},{"title":"Генерация видео","openapi":"kling/openapi.yaml POST /v1/videos/generations","description":"Создаёт задачу генерации видео и сразу возвращает её `task_id`.","href":"/kling/generations"},{"title":"Проверка статуса","openapi":"kling/openapi.yaml POST /v1/videos/fetch","href":"/kling/fetch"}]},{"group":"Seedance","pages":[{"title":"Обзор","description":null,"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"]}