Kling 4.0 native task API. Authenticate using this site’s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.
The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.
For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Body
application/json
contents
object[]
required
A non-empty prompt and supported media must both be provided. Image-to-video generation must include first_frame. first_frame/last_frame cannot be used together with refer_image/feature_video; otherwise, a 400 error is returned. See the API documentation for quantity limits for each type of media.
Minimum array length: 2
Option 1
Option 2
Hide child attributes
contents.type
enum<string>
required
Available options:
prompt
contents.text
string
required
Minimum string length: 1
settings
object
Hide child attributes
settings.resolution
enum<string>
default:1080p
Available options:
720p,
1080p
settings.duration
integer
default:10
Required range: 4 <= x <= 30
options
object
You can omit it, pass an empty object, or explicitly disable the watermark.
Hide child attributes
options.watermark_info
object
Hide child attributes
options.watermark_info.enabled
enum<boolean>
required
Available options:
false
Response
Success
code
integer
required
Example:
0
message
string
required
request_id
string
required
data
object
required
Hide child attributes
data.id
string
Task ID on this site. Pass it as-is when querying.
data.status
enum<string>
Available options:
submitted,
processing,
succeeded,
failed
data.create_time
integer<int64>
Creation time, in Unix milliseconds.
data.update_time
integer<int64>
Update time, in Unix milliseconds.
data.external_id
string
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NewAPIs","description":"NewAPIs API documentation","colors":{"primary":"#6d28d9","light":"#f5f3ff","dark":"#2e1065"},"logo":{"light":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39","dark":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39"},"favicon":{"light":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39","dark":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39"},"api":{"params":{"expanded":"all"}},"seo":{"metatags":{"canonical":"https://docs.newapi.si"}},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"cn","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支持"},{"href":"https://www.newapi.si/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/cn/conventions"},{"language":"en","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/en/conventions"},{"language":"zh-Hant","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支援"},{"href":"https://www.newapi.si/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/zh-tw/conventions"},{"language":"fr","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/fr/conventions"},{"language":"ja","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"サポート"},{"href":"https://www.newapi.si/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/ja/conventions"},{"language":"ru","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Поддержка"},{"href":"https://www.newapi.si/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/ru/conventions"},{"language":"vi","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Hỗ trợ"},{"href":"https://www.newapi.si/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/vi/conventions"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kxx","hasAudioNarration":false,"actualSubdomain":"kxx","customDomains":["docs.newapi.si"],"gitSource":{"type":"github","owner":"btcfoxman","repo":"newapi-si-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b11009524fa6e44b829b62f"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b111340e71f374a14b7ba2c","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"cn","tag":"API 参考","count":32},{"language":"en","tag":"API Reference","count":32},{"language":"fr","tag":"Référence API","count":32},{"language":"ja","tag":"API リファレンス","count":32},{"language":"ru","tag":"Справочник API","count":32},{"language":"vi","tag":"Tài liệu API","count":32},{"language":"zh-Hant","tag":"API 參考","count":32},{"language":"cn","tag":"开发文档","count":15},{"language":"en","tag":"Guides","count":15},{"language":"fr","tag":"Guides","count":15},{"language":"ja","tag":"ガイド","count":15},{"language":"ru","tag":"Руководства","count":15},{"language":"vi","tag":"Hướng dẫn","count":15},{"language":"zh-Hant","tag":"開發文檔","count":15},{"language":"cn","tag":"Skills","count":7},{"language":"en","tag":"Skills","count":7},{"language":"fr","tag":"Skills","count":7},{"language":"ja","tag":"Skills","count":7},{"language":"ru","tag":"Начало работы","count":7},{"language":"ru","tag":"Skills","count":7},{"language":"vi","tag":"Bắt đầu","count":7},{"language":"vi","tag":"Skills","count":7},{"language":"zh-Hant","tag":"Skills","count":7},{"language":"cn","tag":"集成与工具","count":6},{"language":"en","tag":"Tools","count":6},{"language":"fr","tag":"Outils","count":6},{"language":"ja","tag":"ツール","count":6},{"language":"ru","tag":"Инструменты","count":6},{"language":"vi","tag":"Công cụ","count":6},{"language":"zh-Hant","tag":"整合與工具","count":6},{"language":"cn","tag":"视频生成Vidu格式","count":5},{"language":"en","tag":"Video generation Vidu","count":5},{"language":"fr","tag":"Génération vidéo Vidu","count":5},{"language":"ja","tag":"Video generation Vidu","count":5},{"language":"ru","tag":"Генерация видео Vidu","count":5},{"language":"vi","tag":"Tạo video Vidu","count":5},{"language":"zh-Hant","tag":"影片生成 Vidu 格式","count":5},{"language":"cn","tag":"概览","count":4},{"language":"cn","tag":"视频生成Kling格式","count":4},{"language":"cn","tag":"开发指南","count":4},{"language":"cn","tag":"开始使用","count":4},{"language":"en","tag":"Overview","count":4},{"language":"en","tag":"Video generation Kling format","count":4},{"language":"en","tag":"Developer Guide","count":4},{"language":"en","tag":"Get started","count":4},{"language":"fr","tag":"Aperçu","count":4},{"language":"fr","tag":"Format de génération vidéo Kling","count":4},{"language":"fr","tag":"Guide développeur","count":4},{"language":"fr","tag":"Bien démarrer","count":4},{"language":"ja","tag":"概要","count":4},{"language":"ja","tag":"動画生成Kling形式","count":4},{"language":"ja","tag":"開発ガイド","count":4},{"language":"ja","tag":"はじめに","count":4},{"language":"ru","tag":"Обзор","count":4},{"language":"ru","tag":"ФорматKling генерации видео","count":4},{"language":"ru","tag":"Руководство разработчика","count":4},{"language":"vi","tag":"Tổng quan","count":4},{"language":"vi","tag":"Định dạngKling tạo video","count":4},{"language":"vi","tag":"Hướng dẫn phát triển","count":4},{"language":"zh-Hant","tag":"概覽","count":4},{"language":"zh-Hant","tag":"影片生成Kling格式","count":4},{"language":"zh-Hant","tag":"開發指南","count":4},{"language":"zh-Hant","tag":"開始使用","count":4},{"language":"cn","tag":"视频生成Sora兼容格式","count":3},{"language":"en","tag":"Video generation Sora compatible formats","count":3},{"language":"fr","tag":"Formats compatibles avec la génération de vidéosSora","count":3},{"language":"ja","tag":"動画生成Sora対応形式","count":3},{"language":"ru","tag":"Совместимый формат для Sora генерации видео","count":3},{"language":"vi","tag":"Định dạng tương thích Sora cho tạo video","count":3},{"language":"zh-Hant","tag":"影片生成Sora相容格式","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{font-size:15px}#content-area,#body-content,.mdx-content,.api-section,.request-example,.response-example,#api-playground-input{font-size:0.9rem}.api-section pre,.request-example pre,.response-example pre,code{font-size:0.85em}.api-section h1,.api-section h2,.api-section h3,#page-title{letter-spacing:-0.01em}"}]}
{"page":{"pagePath":"api-reference/en/video-generation-kling-format/create-kling-image-to-video","slug":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video","pageMetadata":{"title":"Kling Image-to-Video","openapi":"api-reference/en/openapi.json POST /image-to-video/kling-4.0","generated":true,"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nThe following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor image-to-video, `contents` must include a non-empty `prompt` and `first_frame`, and may also include `last_frame`; `first_frame` and `last_frame` can each contain at most one image. The first and last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; doing so returns a 400 error. `settings.aspect_ratio` is not supported.","href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"This series supports OpenAI video generation formats (see the link \", _jsx(_components.a, {\n href: \"/api-reference/en/video-generation-sora-compatible-format/create-video\",\n children: \"Video generation Sora compatible formats\"\n }), \").\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Kling 4.0 native task API. Authenticate using this site’s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For image-to-video, \", _jsx(_components.code, {\n children: \"contents\"\n }), \" must include a non-empty \", _jsx(_components.code, {\n children: \"prompt\"\n }), \" and \", _jsx(_components.code, {\n children: \"first_frame\"\n }), \", and may also include \", _jsx(_components.code, {\n children: \"last_frame\"\n }), \"; \", _jsx(_components.code, {\n children: \"first_frame\"\n }), \" and \", _jsx(_components.code, {\n children: \"last_frame\"\n }), \" can each contain at most one image. The first and last frames cannot be used together with \", _jsx(_components.code, {\n children: \"refer_image\"\n }), \" reference images or \", _jsx(_components.code, {\n children: \"feature_video\"\n }), \" reference videos; doing so returns a 400 error. \", _jsx(_components.code, {\n children: \"settings.aspect_ratio\"\n }), \" is not supported.\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Kling Image-to-Video","openapi":"api-reference/en/openapi.json POST /image-to-video/kling-4.0","generated":true,"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nThe following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor image-to-video, `contents` must include a non-empty `prompt` and `first_frame`, and may also include `last_frame`; `first_frame` and `last_frame` can each contain at most one image. The first and last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; doing so returns a 400 error. `settings.aspect_ratio` is not supported.","href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Kling Image-to-Video","operationId":"create_kling4_native_image_to_video","tags":["Video generation Kling format"],"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nThe following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor image-to-video, `contents` must include a non-empty `prompt` and `first_frame`, and may also include `last_frame`; `first_frame` and `last_frame` can each contain at most one image. The first and last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; doing so returns a 400 error. `settings.aspect_ratio` is not supported.","requestBody":"fb4646e9-a64d-4e7e-a4b0-db103ccb30ba","responses":{"200":"819ef556-3852-4bf4-83cd-3a0070fbb2be","400":"7c46d755-e3f2-449f-8890-050be2838e94"},"x-doc-source":"relay-openapi+contract-transform","x-drift-status":"ok","x-drift-count":0,"x-drift-types":[],"x-mint":{"href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video"},"method":"post","type":"path","servers":["ce0163a5-2338-4d4a-ac30-9d41d737d83d"],"security":["3d490600-adc9-4b0a-9997-832ed9525c3d"],"path":"/image-to-video/kling-4.0","baseUrlOptions":["https://api.newapi.si"],"title":"Kling Image-to-Video","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["contents"],"properties":{"contents":{"type":"array","minItems":2,"description":"A non-empty prompt and supported media must both be provided. Image-to-video generation must include first_frame. first_frame/last_frame cannot be used together with refer_image/feature_video; otherwise, a 400 error is returned. See the API documentation for quantity limits for each type of media.","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["prompt"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"contents.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"contents.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["first_frame","last_frame"],"isRequired":true,"uniqueKey":"contents.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","pattern":"^https?://","isRequired":true,"uniqueKey":"contents.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"}},"additionalProperties":false,"uniqueKey":"contents.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"contents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"contents","typeLabel":"object[]"},"settings":{"type":"object","additionalProperties":false,"properties":{"resolution":{"type":"string","enum":["720p","1080p"],"default":"1080p","uniqueKey":"settings.resolution","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","minimum":4,"maximum":30,"default":10,"uniqueKey":"settings.duration","typeLabel":"integer"}},"uniqueKey":"settings","typeLabel":"object"},"options":{"type":"object","additionalProperties":false,"description":"You can omit it, pass an empty object, or explicitly disable the watermark.","properties":{"watermark_info":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"options.watermark_info.enabled","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"options.watermark_info","typeLabel":"object"}},"uniqueKey":"options","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"kling4_native_720p":{"title":"kling4_native_720p","summary":"Kling 720p","value":{"settings":{"resolution":"720p","duration":10},"options":{},"contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"first_frame","url":"https://example.com/first-frame.jpg"}]}},"kling4_native_1080p":{"title":"kling4_native_1080p","summary":"Kling 1080p","value":{"settings":{"resolution":"1080p","duration":10},"options":{},"contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"first_frame","url":"https://example.com/first-frame.jpg"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"819ef556-3852-4bf4-83cd-3a0070fbb2be":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id","data"],"properties":{"code":{"type":"integer","example":0,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"type":"string","description":"Task ID on this site. Pass it as-is when querying.","uniqueKey":"data.id","typeLabel":"string"},"status":{"type":"string","enum":["submitted","processing","succeeded","failed"],"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"create_time":{"type":"integer","format":"int64","description":"Creation time, in Unix milliseconds.","uniqueKey":"data.create_time","typeLabel":"integer\u003cint64>"},"update_time":{"type":"integer","format":"int64","description":"Update time, in Unix milliseconds.","uniqueKey":"data.update_time","typeLabel":"integer\u003cint64>"},"external_id":{"type":"string","maxLength":0,"uniqueKey":"data.external_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","summary":"Success","value":{"code":0,"message":"SUCCEED","request_id":"request_example","data":{"id":"task_example","status":"submitted","create_time":1792710000000,"update_time":1792710000000,"external_id":""}}}},"exampleType":"examples"}},"exampleType":"examples"},"7c46d755-e3f2-449f-8890-050be2838e94":{"description":"The request parameters are invalid or contain unsupported fields.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"3d490600-adc9-4b0a-9997-832ed9525c3d":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"ce0163a5-2338-4d4a-ac30-9d41d737d83d":{"url":"https://api.newapi.si"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/en/openapi.json"},"subdomain":"kxx","siteName":"NewAPIs","title":"Kling Image-to-Video - NewAPIs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"cn":{"href":"/api-reference/cn/conventions","matchLevel":4},"en":{"href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video","matchLevel":0},"zh-Hant":{"href":"/api-reference/zh-tw/conventions","matchLevel":4},"fr":{"href":"/api-reference/fr/conventions","matchLevel":4},"ja":{"href":"/api-reference/ja/conventions","matchLevel":4},"ru":{"href":"/api-reference/ru/conventions","matchLevel":4},"vi":{"href":"/api-reference/vi/conventions","matchLevel":4}}},"lastModified":"2026-12-03T06:59:25.181Z","originalFileLocation":"api-reference/en/video-generation-kling-format/create-kling-image-to-video.mdx","locale":"en"},"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=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image. For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NewAPIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kling Image-to-Video - NewAPIs\">\u003cmeta data-mint-head property=\"og:description\" content=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image. For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NewAPIs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kxx.mintlify.site/_mintlify/api/og/v2?division=Video+generation+Kling+format\u0026amp;title=Kling+Image-to-Video\u0026amp;description=This+series+supports+OpenAI+video+generation+formats+%28see+the+link+%5BVideo+generation+Sora+compatible+formats%5D%28%2Fapi-reference%2Fen%2Fvideo-generation-sora-compatible\u0026amp;theme=4dfd4e267cb656e9f9f9f259\u0026amp;signature=01614c0be85282b35adfe233b12f449d6e7026f89e4d41e6c2116758cfc6255b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Kling Image-to-Video - NewAPIs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image. For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kxx.mintlify.site/_mintlify/api/og/v2?division=Video+generation+Kling+format\u0026amp;title=Kling+Image-to-Video\u0026amp;description=This+series+supports+OpenAI+video+generation+formats+%28see+the+link+%5BVideo+generation+Sora+compatible+formats%5D%28%2Fapi-reference%2Fen%2Fvideo-generation-sora-compatible\u0026amp;theme=4dfd4e267cb656e9f9f9f259\u0026amp;signature=01614c0be85282b35adfe233b12f449d6e7026f89e4d41e6c2116758cfc6255b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NewAPIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6d28d9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/en/video-generation-kling-format/create-kling-image-to-video.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.newapi.si/#organization\",\"name\":\"NewAPIs\",\"url\":\"https://docs.newapi.si\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.newapi.si#website\",\"name\":\"NewAPIs\",\"url\":\"https://docs.newapi.si\",\"publisher\":{\"@id\":\"https://docs.newapi.si/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video#webpage\",\"url\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video\",\"name\":\"Kling Image-to-Video\",\"description\":\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image. For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.\",\"dateModified\":\"2026-12-03T06:59:25.181Z\",\"isPartOf\":{\"@id\":\"https://docs.newapi.si#website\"},\"breadcrumb\":{\"@id\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NewAPIs\",\"item\":\"https://docs.newapi.si\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling Image-to-Video\",\"item\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video#apireference\",\"headline\":\"Kling Image-to-Video\",\"name\":\"Kling Image-to-Video\",\"description\":\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. The following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image. For image-to-video, contents must include a non-empty prompt and first_frame, and may also include last_frame; first_frame and last_frame can each contain at most one image. The first and last frames cannot be used together with refer_image reference images or feature_video reference videos; doing so returns a 400 error. settings.aspect_ratio is not supported.\",\"url\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video\",\"mainEntityOfPage\":{\"@id\":\"https://docs.newapi.si/api-reference/en/video-generation-kling-format/create-kling-image-to-video#webpage\"},\"dateModified\":\"2026-12-03T06:59:25.181Z\",\"publisher\":{\"@id\":\"https://docs.newapi.si/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.newapi.si#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NewAPIs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NewAPIs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video.md","siteName":"NewAPIs","nav":{"global":null,"languages":[{"language":"cn","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支持"},{"href":"https://www.newapi.si/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"cn","href":"/api-reference/cn/conventions"}]},{"language":"en","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"tabs":[{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Calling Conventions","href":"/api-reference/en/conventions"},{"title":"Quickstart","href":"/api-reference/en/quickstart"},{"title":"Online Debugging","href":"/api-reference/en/online-debug"},{"title":"AI-Generated Integration Code","href":"/api-reference/en/ai-codegen"}]},{"group":"Gemini Format for Image Generation","pages":[{"title":"Gemini Images (Nano Banana)","openapi":"api-reference/en/openapi.json POST /v1beta/models/{model}:generateContent","href":"/api-reference/en/image-generation-gemini-format/gemini-images-nano-banana"}]},{"group":"Image generationOpenAI DALL-E format","pages":[{"title":"Edit images (OpenAI Dall-E compatible)","openapi":"api-reference/en/openapi.json POST /v1/images/edits","href":"/api-reference/en/image-generation-openai-dall-e-format/edit-images-openai-dall-e-compatible"},{"title":"Generate images (compatible with OpenAI Dall-E)","openapi":"api-reference/en/openapi.json POST /v1/images/generations","href":"/api-reference/en/image-generation-openai-dall-e-format/generate-images-compatible-with-openai-dall-e"}]},{"group":"List models","pages":[{"title":"List models","openapi":"api-reference/en/openapi.json GET /v1/models","href":"/api-reference/en/list-models/list-models"},{"title":"Get Gemini Format","openapi":"api-reference/en/openapi.json GET /v1beta/models","href":"/api-reference/en/list-models/get-gemini-format"}]},{"group":"Music generation task format","pages":[{"title":"Query a music task by ID","openapi":"api-reference/en/openapi.json GET /suno/fetch/{task_id}","href":"/api-reference/en/music-generation-task-format/query-a-music-task-by-id"},{"title":"Create a music or sound generation task","openapi":"api-reference/en/openapi.json POST /suno/submit/music","href":"/api-reference/en/music-generation-task-format/create-a-music-or-sound-generation-task"}]},{"group":"OpenAI Format (Responses)","pages":[{"title":"Create response (OpenAI Responses API)","openapi":"api-reference/en/openapi.json POST /v1/responses","href":"/api-reference/en/openai-format-responses/create-response"},{"title":"Query responses (OpenAI Responses API)","openapi":"api-reference/en/openapi.json GET /v1/responses/{response_id}","href":"/api-reference/en/openai-format-responses/query-responses-openai-responses-api"}]},{"group":"OpenAI format (Chat)","pages":[{"title":"Create chat session","openapi":"api-reference/en/openapi.json POST /v1/chat/completions","description":"Creates model responses based on conversation history. Supports both streaming and non-streaming responses.\n\nCompatible with OpenAI Chat Completions API.","href":"/api-reference/en/openai-format-chat/create-chat-session"}]},{"group":"Video generation Kling format","pages":[{"title":"Kling Image-to-Video","openapi":"api-reference/en/openapi.json POST /image-to-video/kling-4.0","href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video"},{"title":"Kling All-in-One Reference","openapi":"api-reference/en/openapi.json POST /omni-video/kling-4.0","description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nThe following generation scenarios are currently supported: prompt, first_frame, last_frame, refer_image, and feature_video. The model generates audio and video together by default. The current native endpoint does not expose settings.audio, refer_audio, or voice. Do not additionally provide audio switches or audio assets. middle_frame, base_video, element, callbacks, and custom external task IDs are not supported. A non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, or any other unsupported field will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false is also supported. Enabling watermarks is not currently supported. Supported durations are currently 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. The default aspect ratio for text-to-video and reference scenarios is 16:9. Explicitly setting adaptive will return 400. First-and-last-frame scenarios do not accept an explicit settings.aspect_ratio; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor general-purpose reference, `contents` must include a non-empty `prompt` and at least one supported media item. For legacy first/last-frame scenarios, you can provide `first_frame`, `last_frame`, or both, but processing support depends on the capabilities of the currently available model. Requests with incompatible capabilities will be rejected; frame images will not be silently converted to regular reference images. For new first/last-frame integrations, we recommend using the image-to-video endpoint. First/last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; mixing them returns a 400 error. In reference scenarios, `refer_image` reference images and `feature_video` reference videos can be combined. `first_frame`, `last_frame`, and `refer_image` can each contain at most one item, while `feature_video` can contain up to five items. Multi-reference image scenarios that rely on ID references are not currently supported.","href":"/api-reference/en/video-generation-kling-format/kling-all-in-one-reference"},{"title":"Batch Query Kling Tasks","openapi":"api-reference/en/openapi.json GET /tasks","href":"/api-reference/en/video-generation-kling-format/batch-query-kling-tasks"},{"title":"Kling Text-to-Video","openapi":"api-reference/en/openapi.json POST /text-to-video/kling-4.0","href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video"}]},{"group":"Video generation Omni and Veo formats","pages":[{"title":"Create video (Omni and Veo formats)","openapi":"api-reference/en/openapi.json POST /v1beta/models/{model}:predictLongRunning","href":"/api-reference/en/video-generation-omni-and-veo-formats/create-video-omni-and-veo-formats"},{"title":"Query tasks (Omni and Veo formats)","openapi":"api-reference/en/openapi.json GET /v1beta/{operation_name}","href":"/api-reference/en/video-generation-omni-and-veo-formats/query-tasks-omni-and-veo-formats"}]},{"group":"Video generation Seedance","pages":[{"title":"Create video (Seedance)","openapi":"api-reference/en/openapi.json POST /api/v3/contents/generations/tasks","href":"/api-reference/en/video-generation-seedance/create-video-seedance"},{"title":"Query task (Seedance)","openapi":"api-reference/en/openapi.json GET /api/v3/contents/generations/tasks/{task_id}","href":"/api-reference/en/video-generation-seedance/get-task-seedance"}]},{"group":"Video generation Sora compatible formats","pages":[{"title":"Create video","openapi":"api-reference/en/openapi.json POST /v1/videos","href":"/api-reference/en/video-generation-sora-compatible-formats/create-video"},{"title":"Get video task status","openapi":"api-reference/en/openapi.json GET /v1/videos/{task_id}","href":"/api-reference/en/video-generation-sora-compatible-formats/get-video-task-status"},{"title":"Get video content","openapi":"api-reference/en/openapi.json GET /v1/videos/{task_id}/content","href":"/api-reference/en/video-generation-sora-compatible-formats/get-video-content"}]},{"group":"Video generation Vidu","pages":[{"title":"Create image-to-video (Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/img2video","href":"/api-reference/en/video-generation-vidu/create-image-to-video-vidu"},{"title":"Create reference-generated video(Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/reference2video","href":"/api-reference/en/video-generation-vidu/create-reference-generated-videovidu"},{"title":"Create a start-and-end frame video(Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/start-end2video","href":"/api-reference/en/video-generation-vidu/create-a-start-and-end-frame-videovidu"},{"title":"Query tasks(Vidu)","openapi":"api-reference/en/openapi.json GET /ent/v2/tasks/{task_id}/creations","href":"/api-reference/en/video-generation-vidu/query-tasksvidu"},{"title":"Create text-to-video (Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/text2video","href":"/api-reference/en/video-generation-vidu/create-text-to-video-vidu"}]},{"group":"Video generationHappyHorse and Wan","pages":[{"title":"Create video (HappyHorse and Wan)","openapi":"api-reference/en/openapi.json POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/api-reference/en/video-generationhappyhorse-and-wan/create-video-happyhorse-and-wan"},{"title":"Query task(HappyHorse and Wan)","openapi":"api-reference/en/openapi.json GET /api/v1/tasks/{task_id}","href":"/api-reference/en/video-generationhappyhorse-and-wan/query-taskhappyhorse-and-wan"}]}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/en/skills/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/en/overview"}]}]},{"language":"zh-Hant","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支援"},{"href":"https://www.newapi.si/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"zh-Hant","href":"/api-reference/zh-tw/conventions"}]},{"language":"fr","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"fr","href":"/api-reference/fr/conventions"}]},{"language":"ja","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"サポート"},{"href":"https://www.newapi.si/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"ja","href":"/api-reference/ja/conventions"}]},{"language":"ru","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Поддержка"},{"href":"https://www.newapi.si/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"ru","href":"/api-reference/ru/conventions"}]},{"language":"vi","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Hỗ trợ"},{"href":"https://www.newapi.si/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"vi","href":"/api-reference/vi/conventions"}]}]},"basePath":"","title":"Kling Image-to-Video - NewAPIs","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}