{
"error_code": "gengen.model_temporarily_unavailable",
"error": "Kling 4.0 is temporarily unavailable."
}
See the workflow guide for examples, media requirements and billing rules. Use a GENGEN API key.For pending tasks, poll the returned ID. The successful task detail includes usage with billable seconds and the applicable price row. See usage fields.
Authorizations
Authorization
string
header
required
GENGEN API key
Body
application/json
model
enum<string>
required
Use kling-4.0.
Available options:
kling-4.0
prompt
string
required
Nonblank text. Weighted limit: ASCII code points / 26000 + other Unicode code points / 11000 <= 1. Use @referenceId to refer to media. Describe dialogue, music and sound effects here. Include positive and negative descriptions in this field. Specify what to preserve and what to change when editing.
Minimum string length: 1
mode
enum<string>
Optional. Supported values:
text_to_video: Generate from a text prompt without reference media.
image_to_video: Generate from one or more keyframe images (first, middle or last frames).
omni_video: Generate or edit using image/video references, a source video, elements or voices. Keyframes are also supported.
If omitted, reference images/videos, a source video, elements or voices select omni_video;
otherwise keyframes select image_to_video, and text alone selects text_to_video.
Available options:
text_to_video,
image_to_video,
omni_video
assets
object
At most 10 images and 15 total references across all fields. At most five video inputs (including source video and video elements), at most three video elements, and at most 30 seconds of combined input video. Image-to-video requires at least one keyframe. Text-to-video uses the prompt alone; reference images/videos, elements and voices require Omni. Images must be JPEG/PNG, at most 30 MiB each, at least 300 pixels per side, with an aspect ratio from 2:5 to 5:2. Videos must be MP4/MOV, at most 300 MiB each, 3–30 seconds, 24–60 fps, 700–4553 pixels per side, at most 8,294,400 pixels, with an aspect ratio from 2:5 to 5:2.
Show child attributes
controls
object
Show child attributes
providerOptions
object
Response
Task status. Save the complete public ID. Success is delivered after output storage and settlement.
id
string
required
Pattern: ^kling40:[0-9a-f-]{36}$
model
enum<string>
required
Always kling-4.0.
Available options:
kling-4.0
status
enum<string>
required
pending: Task accepted and awaiting processing.
processing: Generation, output storage or billing settlement is in progress.
succeeded: Output is stored and billing is settled; read outputs.videos.
failed: Task failed; see failureReason.
Available options:
pending,
processing,
succeeded,
failed
outputs
object
required
Show child attributes
usage
object
Successful task detail. With video input, billable seconds equal output seconds plus the greater of input and output seconds. Otherwise only output seconds are charged.
Show child attributes
createdAt
string<date-time>
failureReason
string
Present when the task fails.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"GENGEN API","description":"Build video, image, and multimodal applications with the GENGEN API.","colors":{"primary":"#007F7C","light":"#05FFFB","dark":"#007F7C"},"logo":{"light":"https://mintcdn.com/apifarm/8i6PZnnhDG4uij12/logo-light.svg?fit=max\u0026auto=format\u0026n=8i6PZnnhDG4uij12\u0026q=85\u0026s=44296f0917d75c0ed5aa05513ec6c402","dark":"https://mintcdn.com/apifarm/8i6PZnnhDG4uij12/logo.svg?fit=max\u0026auto=format\u0026n=8i6PZnnhDG4uij12\u0026q=85\u0026s=e575f6379e1249d846c63539492c6b94","href":"https://gengen.farm"},"favicon":"https://mintcdn.com/apifarm/8i6PZnnhDG4uij12/favicon.svg?fit=max\u0026auto=format\u0026n=8i6PZnnhDG4uij12\u0026q=85\u0026s=32c70fe233096e49352a91ec312e3193","api":{"params":{"expanded":"closed"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"]}},"appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://gengen.farm/playground","label":"Playground"}],"primary":{"type":"button","label":"Dashboard","href":"https://gengen.farm/dashboard"}},"seo":{"indexing":"navigable"},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","codeblocks":"dark","latex":false},"contextual":{"options":["copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apifarm","hasAudioNarration":false,"actualSubdomain":"apifarm","customDomains":["docs.gengen.farm"],"gitSource":{"type":"github","owner":"sprout-technologies","repo":"apifarm","deployBranch":"main","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b001407ff5bb0c4681a8975","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Models","count":138},{"language":"default","tag":"API Reference","count":111},{"language":"default","tag":"ElevenLabs","count":30},{"language":"default","tag":"Video","count":29},{"language":"default","tag":"BytePlus","count":23},{"language":"default","tag":"Video API","count":23},{"language":"default","tag":"LLM","count":19},{"language":"default","tag":"Image","count":17},{"language":"default","tag":"Help","count":14},{"language":"default","tag":"Assets API","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".gengen-model-unavailable{color:#007f7c}html.dark .gengen-model-unavailable,html[data-theme=\"dark\"] .gengen-model-unavailable{color:#05fffb}main div.whitespace-pre-wrap.prose-sm.mt-6:has(>.inline-block>code){display:none}html.dark #navbar a[href=\"https://gengen.farm/dashboard\"],html[data-theme=\"dark\"] #navbar a[href=\"https://gengen.farm/dashboard\"]{color:#000000!important}html.dark #navbar a[href=\"https://gengen.farm/dashboard\"] *,html[data-theme=\"dark\"] #navbar a[href=\"https://gengen.farm/dashboard\"] *{color:#000000!important}@media (min-width: 1280px){body:has(#gengen-pricing-page) #content-container>div:has(>#content-area){gap:24px}body:has(#gengen-pricing-page) #content-area{flex:1 1 0%;width:0;min-width:0}body:has(#gengen-pricing-page) #content-side-layout{flex:0 0 176px;max-width:176px}body:has(#gengen-pricing-page) #table-of-contents-layout{width:100%;padding-left:16px}body:has(#gengen-pricing-page) #table-of-contents{width:100%}}.gengen-pricing{--pricing-text: #18181b;--pricing-muted: #71717a;--pricing-border: #e4e4e7;--pricing-header: #fafafa;--pricing-accent: #007f7c}html.dark .gengen-pricing,html[data-theme=\"dark\"] .gengen-pricing{--pricing-text: #ffffff;--pricing-muted: #a1a1aa;--pricing-border: #27272a;--pricing-header: #111113;--pricing-accent: #05fffb}.gengen-pricing-recommendations{padding-bottom:16px}.gengen-pricing .gengen-pricing-recommendations h2{margin:0;color:var(--pricing-text);font-size:20px;font-weight:600;line-height:28px}.gengen-pricing .gengen-pricing-recommendations-description{margin:6px 0 16px;color:var(--pricing-muted);font-size:13px;line-height:20px}.gengen-pricing-recommendation-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr));gap:12px}.gengen-pricing-recommendation{display:flex;flex-direction:column;min-width:0;padding:16px;border:1px solid var(--pricing-border);border-radius:8px;background:var(--pricing-header)}.gengen-pricing-offer{display:flex;flex:1;flex-direction:column;gap:16px}.gengen-pricing-offer+.gengen-pricing-offer{margin-top:16px;padding-top:16px;border-top:1px solid var(--pricing-border)}.gengen-pricing .gengen-pricing-offer-models{margin:0;padding:0;color:var(--pricing-text);list-style:none;font-size:14px;font-weight:500;line-height:22px}.gengen-pricing .gengen-pricing-offer-models li{margin:0;padding:0}.gengen-pricing-offer-saving{margin-top:auto}.gengen-pricing-offer-discount{color:var(--pricing-accent);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;line-height:32px;overflow-wrap:anywhere}.gengen-pricing-offer-standard{color:var(--pricing-muted);font-size:18px}.gengen-pricing-groups{display:grid;gap:12px}.gengen-pricing-group{min-width:0;overflow:hidden;border:1px solid var(--pricing-border);border-radius:8px}.gengen-pricing .gengen-pricing-group-heading{margin:0;font-size:16px;line-height:24px}.gengen-pricing-group-toggle{scroll-margin-top:128px;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:16px 20px;color:inherit;background:var(--pricing-header);text-align:left;font:inherit;font-weight:600;cursor:pointer}.gengen-pricing-group-toggle:hover{color:var(--pricing-accent)}.gengen-pricing-group-count{margin-left:auto;color:var(--pricing-muted);font-size:12px;font-weight:400;white-space:nowrap}.gengen-pricing-group-chevron{flex:0 0 16px;width:16px;height:16px}.gengen-pricing-group-toggle[aria-expanded=\"true\"] .gengen-pricing-group-chevron{transform:rotate(90deg)}.gengen-pricing-group>div[hidden]{display:none}.gengen-pricing-group .gengen-pricing-model{border-top:1px solid var(--pricing-border)}.gengen-pricing-model{min-width:0}.gengen-pricing-model-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:20px}.gengen-pricing-model-header h3{margin:0}.gengen-pricing-model-header select{min-height:40px}.gengen-pricing-scroll-hint{display:none}.gengen-pricing-scroll{overflow-x:auto;overscroll-behavior-x:contain}.gengen-pricing .gengen-pricing-table{width:100%;min-width:680px;margin:0;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:20px}@media (min-width: 1024px){.gengen-pricing .gengen-pricing-table{min-width:0}}.gengen-pricing-table thead{background:var(--pricing-header)}.gengen-pricing .gengen-pricing-table th,.gengen-pricing .gengen-pricing-table td{padding:14px 16px;border:0;border-top:1px solid var(--pricing-border);text-align:left;vertical-align:middle}.gengen-pricing .gengen-pricing-table thead th{color:var(--pricing-muted);font-size:12px;font-weight:500}.gengen-pricing .gengen-pricing-table tbody th{font-weight:400}.gengen-pricing-table th:nth-child(1){width:22%}.gengen-pricing-table th:nth-child(2){width:28%}.gengen-pricing-table th:nth-child(3){width:19%}.gengen-pricing-table th:nth-child(4){width:12%}.gengen-pricing-table th:nth-child(5){width:19%}.gengen-pricing-number{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.gengen-pricing-estimate,.gengen-pricing-table td:nth-child(3) .gengen-pricing-number,.gengen-pricing-table td:nth-child(5) .gengen-pricing-number{color:var(--pricing-accent);font-weight:600;white-space:nowrap}.gengen-pricing-rate{display:flex;flex-direction:column;gap:4px}.gengen-pricing-discount{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--pricing-muted);font-size:11px;font-variant-numeric:tabular-nums}.gengen-pricing-discount>span{border-radius:4px;padding:0 5px;background:rgba(5, 255, 251, 0.08);color:var(--pricing-accent)}.gengen-pricing-muted,.gengen-pricing-unit,.gengen-pricing-quantity-unit{color:var(--pricing-muted)}.gengen-pricing-quantity-unit{display:block;font-size:11px}.gengen-pricing :focus-visible{outline:1px solid var(--pricing-accent);outline-offset:-2px}@media (max-width: 640px){.gengen-pricing-scroll-hint{display:block;color:var(--pricing-muted);font-size:12px}.gengen-pricing-model-header{padding:16px}}"}]}
{"page":{"pagePath":"api-reference/kling/4.0/create-task","slug":"/api-reference/kling/4.0/create-task","pageMetadata":{"title":"Create a Kling 4.0 task","sidebarTitle":"Create task","description":"Normalized text, keyframe and Omni requests.","openapi":"openapi/kling-40-video.yaml POST /contents/generations/tasks","href":"/api-reference/kling/4.0/create-task"},"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: \"Normalized text, keyframe and Omni requests.\"\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];const Kling40Availability=()=>{const[enabled,setEnabled]=useState(false);useEffect(()=>{let disposed=false;let active;const refresh=async()=>{if(active)active.abort();const controller=new AbortController;active=controller;const timeout=setTimeout(()=>{if(!disposed\u0026\u0026!controller.signal.aborted)setEnabled(false);controller.abort()},1e4);try{const response=await fetch(`https://gengen.farm/api/public/models/kling-4.0/availability`,{cache:`no-store`,signal:controller.signal});const data=await response.json();if(!disposed\u0026\u0026!controller.signal.aborted)setEnabled(response.ok\u0026\u0026data.enabled===true)}catch{if(!disposed\u0026\u0026!controller.signal.aborted)setEnabled(false)}finally{clearTimeout(timeout)}};refresh();window.addEventListener(`focus`,refresh);return()=>{disposed=true;if(active)active.abort();window.removeEventListener(`focus`,refresh)}},[]);if(enabled)return null;return _jsx(`div`,{role:`status`,className:`gengen-model-unavailable`,style:{border:`1px solid #2C2C2E`,borderRadius:8,padding:16,marginBottom:20},children:`Currently unavailable.`})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{_MdxComponentBoundary}=_components;if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`Kling40Availability`,children:_jsx(Kling40Availability,{})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/kling/4.0/overview`,children:`workflow guide`}),` for examples, media requirements and billing rules. Use a GENGEN API key.`]}),`\n`,_jsxs(_components.p,{children:[`For pending tasks, poll the returned ID. The successful task detail includes `,_jsx(_components.code,{children:`usage`}),` with billable seconds and the applicable price row. See `,_jsx(_components.a,{href:`/api-reference/kling/4.0/retrieve-task#usage`,children:`usage fields`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{Kling40Availability,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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Create a Kling 4.0 task","sidebarTitle":"Create task","description":"Normalized text, keyframe and Omni requests.","openapi":"openapi/kling-40-video.yaml POST /contents/generations/tasks","href":"/api-reference/kling/4.0/create-task"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[158,1192,"null;function _creat"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createKling40VideoTask","summary":"Create a Kling 4.0 task","description":"Normalized text, keyframe and Omni requests.","requestBody":"25bf08e9-6fe8-4786-99df-7e563e13e53e","responses":{"200":"99abcd15-52cb-4e15-a9b0-2428329761e5","400":"b514a065-9e4c-447a-959c-648b450d0dc8","401":"898b2dc4-331e-42f5-a60f-ca8a6272d7c2","402":"58928808-aa7d-406f-8ad6-87e38be98ef8","429":"a9a6acb1-b79c-4ac4-98c5-84a687bfc22b","502":"6e91f0a5-a1ee-49c9-bbe0-6b635b981293","503":"de543675-c72e-4ac2-8314-250ad94f838f"},"method":"post","type":"path","servers":["a7063869-28bc-4fae-9f8a-1d70c24cb213"],"security":["a8740c82-8f20-433e-94ee-418d00d1ff30"],"path":"/contents/generations/tasks","baseUrlOptions":["https://gengen.farm/api/gengen/v1"],"title":"Create a Kling 4.0 task","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["kling-4.0"],"description":"Use `kling-4.0`.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","minLength":1,"description":"Nonblank text. Weighted limit: ASCII code points / 26000 + other Unicode code points / 11000 \u003c= 1. Use @referenceId to refer to media. Describe dialogue, music and sound effects here. Include positive and negative descriptions in this field. Specify what to preserve and what to change when editing.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"mode":{"type":"string","enum":["text_to_video","image_to_video","omni_video"],"description":"Optional. Supported values:\n\n- `text_to_video`: Generate from a text prompt without reference media.\n- `image_to_video`: Generate from one or more keyframe images (first, middle or last frames).\n- `omni_video`: Generate or edit using image/video references, a source video, elements or voices. Keyframes are also supported.\n\nIf omitted, reference images/videos, a source video, elements or voices select `omni_video`;\notherwise keyframes select `image_to_video`, and text alone selects `text_to_video`.\n","uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"assets":{"type":"object","additionalProperties":false,"properties":{"firstFrameImage":{"oneOf":[{"type":"string","description":"First keyframe image, for image_to_video or omni_video. Default reference ID is firstFrame1.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.firstFrameImage.oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"First keyframe image, for image_to_video or omni_video. Default reference ID is firstFrame1.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.firstFrameImage.oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.firstFrameImage.oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.firstFrameImage.oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.firstFrameImage","typeLabel":"string\u003curi> | object"},"middleFrameImages":{"type":"array","items":{"oneOf":[{"type":"string","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.middleFrameImages.items.[INDEX].oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.middleFrameImages.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.middleFrameImages.items.[INDEX].oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.middleFrameImages.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.middleFrameImages.items.[INDEX]","typeLabel":"string\u003curi> | object"},"maxItems":10,"description":"Middle keyframe images, for image_to_video or omni_video. Default IDs are middleFrame1, middleFrame2, and so on. The ten-image limit includes first/last frames and reference images.","uniqueKey":"assets.middleFrameImages","typeLabel":"(string\u003curi> | object)[]"},"lastFrameImage":{"oneOf":[{"type":"string","description":"Last keyframe image, for image_to_video or omni_video. Default reference ID is lastFrame1.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.lastFrameImage.oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"Last keyframe image, for image_to_video or omni_video. Default reference ID is lastFrame1.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.lastFrameImage.oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.lastFrameImage.oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.lastFrameImage.oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.lastFrameImage","typeLabel":"string\u003curi> | object"},"referenceImages":{"type":"array","items":{"oneOf":[{"type":"string","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.referenceImages.items.[INDEX].oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.referenceImages.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.referenceImages.items.[INDEX].oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.referenceImages.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.referenceImages.items.[INDEX]","typeLabel":"string\u003curi> | object"},"maxItems":10,"description":"Omni only; appearance, scene or style references. Default IDs are image1, image2, and so on.","uniqueKey":"assets.referenceImages","typeLabel":"(string\u003curi> | object)[]"},"referenceVideos":{"type":"array","items":{"oneOf":[{"type":"string","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.referenceVideos.items.[INDEX].oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"Accessible HTTPS URL without embedded credentials, or URL plus a unique reference ID. Use @id in the prompt. All task reference IDs must be unique.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.referenceVideos.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.referenceVideos.items.[INDEX].oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.referenceVideos.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.referenceVideos.items.[INDEX]","typeLabel":"string\u003curi> | object"},"maxItems":5,"description":"Omni only; motion/content references. Default IDs are video1, video2, and so on.","uniqueKey":"assets.referenceVideos","typeLabel":"(string\u003curi> | object)[]"},"sourceVideo":{"oneOf":[{"type":"string","description":"Omni only; at most one video to edit. Default reference ID is sourceVideo1.","format":"uri","maxLength":4096,"pattern":"^https://","uniqueKey":"assets.sourceVideo.oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","description":"Omni only; at most one video to edit. Default reference ID is sourceVideo1.","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","maxLength":4096,"description":"Accessible HTTPS URL without username/password.","isRequired":true,"uniqueKey":"assets.sourceVideo.oneOf.1.url","typeLabel":"string\u003curi>"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","uniqueKey":"assets.sourceVideo.oneOf.1.id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"assets.sourceVideo.oneOf.1","typeLabel":"object"}],"uniqueKey":"assets.sourceVideo","typeLabel":"string\u003curi> | object"},"elements":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"elementId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","isRequired":true,"uniqueKey":"assets.elements.items.[INDEX].elementId","typeLabel":"string"},"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","isRequired":true,"uniqueKey":"assets.elements.items.[INDEX].id","typeLabel":"string"}},"required":["elementId","id"],"uniqueKey":"assets.elements.items.[INDEX]","typeLabel":"object"},"maxItems":7,"description":"Omni only. Use existing official preset IDs, verified by the service.","uniqueKey":"assets.elements","typeLabel":"object[]"},"voices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"voiceId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"Kling's voice ID. Preserve it as a string, including when it contains only digits. Pass it in assets.voices[].voiceId.","isRequired":true,"uniqueKey":"assets.voices.items.[INDEX].voiceId","typeLabel":"string"},"id":{"description":"Name you choose for this reference in the current request. For example, use narrator here and @narrator in the prompt.","type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","isRequired":true,"uniqueKey":"assets.voices.items.[INDEX].id","typeLabel":"string"}},"required":["voiceId","id"],"uniqueKey":"assets.voices.items.[INDEX]","typeLabel":"object"},"maxItems":3,"description":"Omni only. Use a voiceId from GET /video/kling/voices (official presets or active private voices in the same workspace). Voice references incur no additional charge.","uniqueKey":"assets.voices","typeLabel":"object[]"}},"description":"At most 10 images and 15 total references across all fields. At most five video inputs (including source video and video elements), at most three video elements, and at most 30 seconds of combined input video. Image-to-video requires at least one keyframe. Text-to-video uses the prompt alone; reference images/videos, elements and voices require Omni. Images must be JPEG/PNG, at most 30 MiB each, at least 300 pixels per side, with an aspect ratio from 2:5 to 5:2. Videos must be MP4/MOV, at most 300 MiB each, 3–30 seconds, 24–60 fps, 700–4553 pixels per side, at most 8,294,400 pixels, with an aspect ratio from 2:5 to 5:2.","uniqueKey":"assets","typeLabel":"object"},"controls":{"type":"object","additionalProperties":false,"properties":{"duration":{"type":"integer","minimum":3,"maximum":30,"description":"Output seconds, an integer from 3 to 30. An explicit value overrides the prompt. If omitted, the model follows the prompt's duration instruction; without one, Omni uses the source video's duration when present, otherwise the default is 10 seconds. Estimates/reservations use the 30-second maximum when omitted. Final billing uses measured duration.","uniqueKey":"controls.duration","typeLabel":"integer"},"resolution":{"type":"string","enum":["720p","1080p"],"default":"1080p","description":"Supported values: `720p`, `1080p` (default).","uniqueKey":"controls.resolution","typeLabel":"enum\u003cstring>"},"ratio":{"type":"string","enum":["21:9","16:9","9:16","1:1","adaptive"],"description":"Supported values: `21:9`, `16:9`, `9:16`, `1:1`, and `adaptive` (Omni only).\n\nOmit for image-to-video: keyframes determine aspect ratio. Text-to-video defaults to `16:9`.\nOmni defaults to `adaptive`; an explicit ratio overrides the prompt.\nWith `adaptive`, precedence is the prompt's ratio instruction, source video, keyframe images,\nother input videos, then `16:9`. The first frame takes precedence among keyframes;\nwithout it, the first supplied keyframe is used.\n","uniqueKey":"controls.ratio","typeLabel":"enum\u003cstring>"},"watermark":{"type":"boolean","default":false,"description":"Return the watermarked video in outputs.videos when true.","uniqueKey":"controls.watermark","typeLabel":"boolean"}},"uniqueKey":"controls","typeLabel":"object"},"providerOptions":{"type":"object","additionalProperties":false,"properties":{},"uniqueKey":"providerOptions","typeLabel":"object"}},"required":["model","prompt"],"uniqueKey":"","typeLabel":"object"},"examples":{"workflow0":{"title":"workflow0","summary":"Text to video","value":{"model":"kling-4.0","mode":"text_to_video","prompt":"Ocean waves at sunrise, with gentle surf sounds.","controls":{"duration":10,"resolution":"1080p","watermark":false,"ratio":"16:9"}}},"workflow1":{"title":"workflow1","summary":"First frame","value":{"model":"kling-4.0","mode":"image_to_video","prompt":"Animate @firstFrame1 with a slow camera push.","assets":{"firstFrameImage":{"url":"https://example.com/firstFrame1.png","id":"firstFrame1"}},"controls":{"duration":10,"resolution":"1080p","watermark":false}}},"workflow2":{"title":"workflow2","summary":"First and last frames","value":{"model":"kling-4.0","mode":"image_to_video","prompt":"Transition smoothly from @firstFrame1 to @lastFrame1.","assets":{"firstFrameImage":{"url":"https://example.com/firstFrame1.png","id":"firstFrame1"},"lastFrameImage":{"url":"https://example.com/lastFrame1.png","id":"lastFrame1"}},"controls":{"duration":10,"resolution":"1080p","watermark":false}}},"workflow3":{"title":"workflow3","summary":"Multiple keyframes","value":{"model":"kling-4.0","mode":"image_to_video","prompt":"Move from @firstFrame1 through @middleFrame1 to @lastFrame1.","assets":{"firstFrameImage":{"url":"https://example.com/firstFrame1.png","id":"firstFrame1"},"middleFrameImages":[{"url":"https://example.com/middleFrame1.png","id":"middleFrame1"}],"lastFrameImage":{"url":"https://example.com/lastFrame1.png","id":"lastFrame1"}},"controls":{"duration":10,"resolution":"1080p","watermark":false}}},"workflow4":{"title":"workflow4","summary":"Omni references","value":{"model":"kling-4.0","mode":"omni_video","prompt":"Animate the character in @image1 using the motion of @video1.","assets":{"referenceImages":[{"url":"https://example.com/image1.png","id":"image1"}],"referenceVideos":[{"url":"https://example.com/video1.mp4","id":"video1"}]},"controls":{"duration":10,"resolution":"1080p","watermark":false,"ratio":"adaptive"}}},"workflow5":{"title":"workflow5","summary":"Video editing","value":{"model":"kling-4.0","mode":"omni_video","prompt":"Restyle @sourceVideo1 using the colors of @image1.","assets":{"sourceVideo":{"url":"https://example.com/sourceVideo1.mp4","id":"sourceVideo1"},"referenceImages":[{"url":"https://example.com/image1.png","id":"image1"}]},"controls":{"duration":10,"resolution":"1080p","watermark":false,"ratio":"adaptive"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"99abcd15-52cb-4e15-a9b0-2428329761e5":{"description":"Task status. Save the complete public ID. Success is delivered after output storage and settlement.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^kling40:[0-9a-f-]{36}$","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"model":{"type":"string","enum":["kling-4.0"],"description":"Always `kling-4.0`.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["pending","processing","succeeded","failed"],"description":"- `pending`: Task accepted and awaiting processing.\n- `processing`: Generation, output storage or billing settlement is in progress.\n- `succeeded`: Output is stored and billing is settled; read `outputs.videos`.\n- `failed`: Task failed; see `failureReason`.\n","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"outputs":{"type":"object","additionalProperties":false,"properties":{"videos":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"outputs.videos.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"One video URL on success; empty while pending/processing or failed. Links expire: copy outputs to your storage or retrieve the task again.","isRequired":true,"uniqueKey":"outputs.videos","typeLabel":"string\u003curi>[]"},"images":{"type":"array","items":{"type":"string","uniqueKey":"outputs.images.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"outputs.images","typeLabel":"string[]"}},"required":["videos","images"],"isRequired":true,"uniqueKey":"outputs","typeLabel":"object"},"usage":{"type":"object","description":"Successful task detail. With video input, billable seconds equal output seconds plus the greater of input and output seconds. Otherwise only output seconds are charged.","required":["priceRowId","resolution","billableSeconds","outputDurationSeconds","inputVideoDurationSeconds","hasVideoInput"],"properties":{"priceRowId":{"type":"string","description":"Stable customer price row in GET /api/public/pricing.","isRequired":true,"uniqueKey":"usage.priceRowId","typeLabel":"string"},"resolution":{"type":"string","description":"Resolution tier used for pricing, such as 720p.","isRequired":true,"uniqueKey":"usage.resolution","typeLabel":"string"},"billableSeconds":{"type":"number","description":"Seconds to multiply by the selected per-second rate.","isRequired":true,"uniqueKey":"usage.billableSeconds","typeLabel":"number"},"outputDurationSeconds":{"type":"number","description":"Output video duration in seconds.","isRequired":true,"uniqueKey":"usage.outputDurationSeconds","typeLabel":"number"},"inputVideoDurationSeconds":{"type":"number","description":"Input video seconds used for billing.","isRequired":true,"uniqueKey":"usage.inputVideoDurationSeconds","typeLabel":"number"},"hasVideoInput":{"type":"boolean","description":"Whether the video input rate applies.","isRequired":true,"uniqueKey":"usage.hasVideoInput","typeLabel":"boolean"}},"uniqueKey":"usage","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"failureReason":{"type":"string","description":"Present when the task fails.","uniqueKey":"failureReason","typeLabel":"string"}},"required":["id","model","status","outputs"],"uniqueKey":"","typeLabel":"object"},"example":{"id":"kling40:01234567-89ab-cdef-0123-456789abcdef","model":"kling-4.0","status":"pending","outputs":{"videos":[],"images":[]}},"examples":{"Example":{"title":"Example","value":{"id":"kling40:01234567-89ab-cdef-0123-456789abcdef","model":"kling-4.0","status":"pending","outputs":{"videos":[],"images":[]}}}},"exampleType":"examples"}},"exampleType":"examples"},"b514a065-9e4c-447a-959c-648b450d0dc8":{"description":"Invalid request or incompatible media/mode.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"898b2dc4-331e-42f5-a60f-ca8a6272d7c2":{"description":"Invalid GENGEN API key.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"58928808-aa7d-406f-8ad6-87e38be98ef8":{"description":"Insufficient balance.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"a9a6acb1-b79c-4ac4-98c5-84a687bfc22b":{"description":"Rate limited.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6e91f0a5-a1ee-49c9-bbe0-6b635b981293":{"description":"Provider response, output or usage needs reconciliation. Query an existing task rather than submitting again.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"de543675-c72e-4ac2-8314-250ad94f838f":{"description":"Currently unavailable.","content":{"application/json":{"example":{"error_code":"gengen.model_temporarily_unavailable","error":"Kling 4.0 is temporarily unavailable."},"examples":{"Example":{"title":"Example","value":{"error_code":"gengen.model_temporarily_unavailable","error":"Kling 4.0 is temporarily unavailable."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a8740c82-8f20-433e-94ee-418d00d1ff30":{"bearerAuth":{"type":"http","scheme":"bearer","description":"GENGEN API key","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"a7063869-28bc-4fae-9f8a-1d70c24cb213":{"url":"https://gengen.farm/api/gengen/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"GENGEN API key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"GENGEN API key","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi/kling-40-video.yaml"},"subdomain":"apifarm","siteName":"GENGEN API","title":"Create a Kling 4.0 task - GENGEN API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T07:45:43.133Z","originalFileLocation":"api-reference/kling/4.0/create-task.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=\"dark\"}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=\"Normalized text, keyframe and Omni requests.\">\u003cmeta data-mint-head name=\"application-name\" content=\"GENGEN API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_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/apifarm/L9vLMowDZG_ohQU0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a Kling 4.0 task - GENGEN API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Normalized text, keyframe and Omni requests.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GENGEN API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gengen.farm/api-reference/kling/4.0/create-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apifarm.mintlify.site/_mintlify/api/og/v2?division=Kling+4.0\u0026amp;title=Create+a+Kling+4.0+task\u0026amp;description=Normalized+text%2C+keyframe+and+Omni+requests.\u0026amp;theme=2ec39a2db59b215c26a0196f\u0026amp;signature=e3ac05ac07cda126a1f1bf82c9819ffc8377c74c6cfe0372194751ef341a9792\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a Kling 4.0 task - GENGEN API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Normalized text, keyframe and Omni requests.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apifarm.mintlify.site/_mintlify/api/og/v2?division=Kling+4.0\u0026amp;title=Create+a+Kling+4.0+task\u0026amp;description=Normalized+text%2C+keyframe+and+Omni+requests.\u0026amp;theme=2ec39a2db59b215c26a0196f\u0026amp;signature=e3ac05ac07cda126a1f1bf82c9819ffc8377c74c6cfe0372194751ef341a9792\">\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/apifarm/L9vLMowDZG_ohQU0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GENGEN API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#007F7C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gengen.farm/api-reference/kling/4.0/create-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/kling/4.0/create-task.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gengen.farm/#organization\",\"name\":\"GENGEN API\",\"url\":\"https://docs.gengen.farm\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/apifarm/8i6PZnnhDG4uij12/logo-light.svg?fit=max\u0026auto=format\u0026n=8i6PZnnhDG4uij12\u0026q=85\u0026s=44296f0917d75c0ed5aa05513ec6c402\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gengen.farm#website\",\"name\":\"GENGEN API\",\"url\":\"https://docs.gengen.farm\",\"publisher\":{\"@id\":\"https://docs.gengen.farm/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task#webpage\",\"url\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task\",\"name\":\"Create a Kling 4.0 task\",\"description\":\"Normalized text, keyframe and Omni requests.\",\"dateModified\":\"2026-11-20T07:45:43.133Z\",\"isPartOf\":{\"@id\":\"https://docs.gengen.farm#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Kling\",\"item\":\"https://docs.gengen.farm/api-reference/kling/video-generation/create-task\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling 4.0\",\"item\":\"https://docs.gengen.farm/api-reference/kling/4.0/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a Kling 4.0 task\",\"item\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task#apireference\",\"headline\":\"Create a Kling 4.0 task\",\"name\":\"Create a Kling 4.0 task\",\"description\":\"Normalized text, keyframe and Omni requests.\",\"url\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gengen.farm/api-reference/kling/4.0/create-task#webpage\"},\"dateModified\":\"2026-11-20T07:45:43.133Z\",\"publisher\":{\"@id\":\"https://docs.gengen.farm/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gengen.farm#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GENGEN API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"GENGEN API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/kling/4.0/create-task.md","siteName":"GENGEN API","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Models","pages":[{"title":"Models","href":"/models/overview"}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"API reference","href":"/api-reference/introduction"},{"title":"Video capabilities","href":"/api-reference/video-capabilities"},{"title":"Function calling","href":"/tool-calling"}]},{"group":"BytePlus","pages":[{"group":"Text API","pages":[{"title":"Create a chat completion","deprecated":null,"version":null,"sidebarTitle":"Chat completions","openapi":"/openapi/gengen-v1.yaml post /chat/completions","href":"/api-reference/byteplus/text-generation/chat-completions"}]},{"group":"Video API","pages":[{"title":"Create a video generation task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/gengen-v1.yaml post /contents/generations/tasks","href":"/api-reference/byteplus/video-generation/create-task"},{"title":"Retrieve a video generation task","deprecated":null,"version":null,"sidebarTitle":"Retrieve task","openapi":"/openapi/gengen-v1.yaml get /contents/generations/tasks/{id}","href":"/api-reference/byteplus/video-generation/retrieve-task"},{"title":"List video generation tasks","deprecated":null,"version":null,"sidebarTitle":"List tasks","openapi":"/openapi/gengen-v1.yaml get /contents/generations/tasks","href":"/api-reference/byteplus/video-generation/list-tasks"},{"title":"Cancel or delete a video generation task","deprecated":null,"version":null,"sidebarTitle":"Cancel or delete task","openapi":"/openapi/gengen-v1.yaml delete /contents/generations/tasks/{id}","href":"/api-reference/byteplus/video-generation/cancel-task"},{"title":"Create a video understanding response","deprecated":null,"version":null,"sidebarTitle":"Create response","openapi":"/openapi/gengen-v1.yaml post /responses","href":"/api-reference/byteplus/video-understanding/create-response"}]},{"group":"Video Enhancement API","pages":[{"title":"Video enhancement","href":"/api-reference/byteplus/video-enhancement/overview"},{"title":"Create a video enhancement task","deprecated":null,"version":null,"sidebarTitle":"Create task","openapi":"/openapi/gengen-v1.yaml post /video/enhancements","href":"/api-reference/byteplus/video-enhancement/create-task"},{"title":"Retrieve a video enhancement task","deprecated":null,"version":null,"sidebarTitle":"Retrieve task","openapi":"/openapi/gengen-v1.yaml get /video/enhancements/{id}","href":"/api-reference/byteplus/video-enhancement/retrieve-task"}]},{"group":"Image API","pages":[{"title":"Generate images","deprecated":null,"version":null,"sidebarTitle":"Generate images","openapi":"/openapi/gengen-v1.yaml post /images/generations","href":"/api-reference/byteplus/image-generation/create-image"}]},{"group":"Assets API","pages":[{"title":"Create an asset group","sidebarTitle":"Create asset group","openapi":"openapi/byteplus-assets.yaml POST /assets/groups","href":"/api-reference/byteplus/assets/create-asset-group"},{"title":"List asset groups","sidebarTitle":"List asset groups","openapi":"openapi/byteplus-assets.yaml POST /assets/groups/list","href":"/api-reference/byteplus/assets/list-asset-groups"},{"title":"Get an asset group","sidebarTitle":"Get asset group","openapi":"openapi/byteplus-assets.yaml POST /assets/groups/get","href":"/api-reference/byteplus/assets/get-asset-group"},{"title":"Update an asset group","sidebarTitle":"Update asset group","openapi":"openapi/byteplus-assets.yaml POST /assets/groups/update","href":"/api-reference/byteplus/assets/update-asset-group"},{"title":"Create an asset","sidebarTitle":"Create asset","openapi":"openapi/byteplus-assets.yaml POST /assets","href":"/api-reference/byteplus/assets/create-asset"},{"title":"Get an asset","sidebarTitle":"Get asset","openapi":"openapi/byteplus-assets.yaml POST /assets/get","href":"/api-reference/byteplus/assets/get-asset"},{"title":"Update an asset","sidebarTitle":"Update asset","openapi":"openapi/byteplus-assets.yaml POST /assets/update","href":"/api-reference/byteplus/assets/update-asset"},{"title":"List assets","sidebarTitle":"List assets","openapi":"openapi/byteplus-assets.yaml POST /assets/list","href":"/api-reference/byteplus/assets/list-assets"},{"title":"List public assets","sidebarTitle":"List public assets","openapi":"openapi/byteplus-assets.yaml GET /assets/public","href":"/api-reference/byteplus/assets/public-assets"},{"title":"Delete an asset","sidebarTitle":"Delete asset","openapi":"openapi/byteplus-assets.yaml POST /assets/delete","href":"/api-reference/byteplus/assets/delete-asset"},{"title":"Delete an asset group","sidebarTitle":"Delete asset group","openapi":"openapi/byteplus-assets.yaml POST /assets/groups/delete","href":"/api-reference/byteplus/assets/delete-asset-group"},{"title":"Create a real-person verification session","sidebarTitle":"Create verification session","openapi":"openapi/byteplus-assets.yaml POST /assets/real-human/verification-sessions","href":"/api-reference/byteplus/assets/create-real-human-session"},{"title":"Get a real-person verification result","sidebarTitle":"Get verification result","openapi":"openapi/byteplus-assets.yaml POST /assets/real-human/verification-results","href":"/api-reference/byteplus/assets/get-real-human-result"}]}]},{"group":"OpenAI","pages":[{"group":"Text API","pages":[{"title":"Chat","sidebarTitle":"Chat","openapi":"openapi/openai-llm.yaml POST /chat/completions","href":"/api-reference/openai/chat-completions"}]},{"group":"Image API","pages":[{"title":"OpenAI image generation","sidebarTitle":"Image generation","openapi":"openapi/openai.yaml POST /images/generations","href":"/api-reference/openai/image-generation"}]}]},{"group":"Kling","pages":[{"group":"Video API","pages":[{"title":"Create a Kling video task","sidebarTitle":"Create task","openapi":"openapi/kling-video.yaml POST /contents/generations/tasks","href":"/api-reference/kling/video-generation/create-task"},{"title":"Retrieve a Kling video task","sidebarTitle":"Retrieve task","openapi":"openapi/kling-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/kling/video-generation/retrieve-task"},{"title":"Kling errors and task status","sidebarTitle":"Errors and task status","href":"/api-reference/kling/video-generation/errors-and-callbacks"}]},{"group":"Kling 4.0","pages":[{"title":"Kling 4.0 API","sidebarTitle":"Overview","description":"Prepare text-to-video, keyframe and Omni requests for Kling 4.0.","href":"/api-reference/kling/4.0/overview"},{"title":"Create a Kling 4.0 task","sidebarTitle":"Create task","openapi":"openapi/kling-40-video.yaml POST /contents/generations/tasks","href":"/api-reference/kling/4.0/create-task"},{"title":"Retrieve a Kling 4.0 task","sidebarTitle":"Retrieve task","description":"Query the status and output of an existing task using its public Kling 4.0 ID.","openapi":"openapi/kling-40-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/kling/4.0/retrieve-task"},{"title":"List Kling voices","sidebarTitle":"List voices","openapi":"openapi/kling-40-video.yaml GET /video/kling/voices","href":"/api-reference/kling/4.0/voices"},{"title":"Create a private Kling voice","sidebarTitle":"Create a voice","openapi":"openapi/kling-40-video.yaml POST /video/kling/voices","href":"/api-reference/kling/4.0/create-voice"},{"title":"Get a Kling voice operation","sidebarTitle":"Get voice operation","openapi":"openapi/kling-40-video.yaml GET /video/kling/voice-operations/{operationId}","href":"/api-reference/kling/4.0/get-voice-operation"},{"title":"Delete a private Kling voice","sidebarTitle":"Delete a voice","openapi":"openapi/kling-40-video.yaml DELETE /video/kling/voices/{voiceId}","href":"/api-reference/kling/4.0/delete-voice"}]}]},{"group":"MiniMax","pages":[{"group":"Video API","pages":[{"title":"Create a MiniMax video task","sidebarTitle":"Create task","openapi":"openapi/minimax-video.yaml POST /contents/generations/tasks","href":"/api-reference/minimax/video-generation/create-task"},{"title":"Retrieve a MiniMax video task","sidebarTitle":"Retrieve task","openapi":"openapi/minimax-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/minimax/video-generation/retrieve-task"},{"title":"List MiniMax video tasks","sidebarTitle":"List tasks","openapi":"openapi/minimax-video.yaml GET /contents/generations/tasks","href":"/api-reference/minimax/video-generation/list-tasks"},{"title":"Cancel or delete a MiniMax task","sidebarTitle":"Cancel task","openapi":"openapi/minimax-video.yaml DELETE /contents/generations/tasks/{id}","href":"/api-reference/minimax/video-generation/cancel-task"},{"title":"MiniMax errors and task status","sidebarTitle":"Errors and task status","href":"/api-reference/minimax/video-generation/errors-and-callbacks"}]}]},{"group":"Happy Horse","pages":[{"title":"Create a Happy Horse video task","sidebarTitle":"Create task","openapi":"openapi/happy-horse-video.yaml POST /contents/generations/tasks","href":"/api-reference/happy-horse/video-generation/create-task"},{"title":"Retrieve Happy Horse video task","sidebarTitle":"Retrieve task","api":"GET https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}","playground":"none","href":"/api-reference/happy-horse/video-generation/retrieve-task"}]},{"group":"Google","pages":[{"group":"Text API","pages":[{"title":"Chat completions with Gemini","sidebarTitle":"Chat completions","openapi":"openapi/google.yaml POST /chat/completions","href":"/api-reference/google/chat-completions"}]},{"group":"Multimodal API","pages":[{"title":"Multimodal responses with Gemini","sidebarTitle":"Responses","openapi":"openapi/google.yaml POST /responses","href":"/api-reference/google/responses"}]},{"group":"Tools","pages":[{"title":"Gemini tools","href":"/api-reference/google/tools"},{"title":"Count input tokens","openapi":"openapi/google.yaml POST /token-counts","href":"/api-reference/google/token-counts"}]},{"group":"Image API","pages":[{"title":"Generate images with Gemini","sidebarTitle":"Image generation","openapi":"openapi/google.yaml POST /images/generations","href":"/api-reference/google/image-generation"}]},{"group":"Video API","pages":[{"title":"Generate and edit videos with Omni","sidebarTitle":"Omni: Create task","openapi":"openapi/omni-video.yaml POST /contents/generations/tasks","href":"/api-reference/google/omni-video-generation"},{"title":"Retrieve an Omni video task","sidebarTitle":"Omni: Retrieve task","openapi":"openapi/omni-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/google/omni-retrieve-task"},{"title":"Generate videos with Veo","sidebarTitle":"Create task","openapi":"openapi/veo-video.yaml POST /contents/generations/tasks","href":"/api-reference/google/veo-video-generation"},{"title":"Retrieve a Veo video task","sidebarTitle":"Retrieve task","openapi":"openapi/veo-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/google/veo-retrieve-task"}]}]},{"group":"Flash VSR","pages":[{"group":"Video Upscale","pages":[{"title":"Create a Flash VSR task","sidebarTitle":"Create task","openapi":"openapi/flash-vsr-video.yaml POST /contents/generations/tasks","href":"/api-reference/flash-vsr/video-upscale/create-task"},{"title":"Retrieve Flash VSR task","sidebarTitle":"Retrieve task","api":"GET https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}","playground":"none","href":"/api-reference/flash-vsr/video-upscale/retrieve-task"},{"title":"Delete Flash VSR task","sidebarTitle":"Delete task","api":"DELETE https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}","playground":"none","href":"/api-reference/flash-vsr/video-upscale/delete-task"}]}]},{"group":"Wan","pages":[{"group":"Spicy","pages":[{"group":"Video API","pages":[{"title":"Create a Wan video task","sidebarTitle":"Create task","openapi":"openapi/wan-video.yaml POST /contents/generations/tasks","href":"/api-reference/wan/video-generation/create-task"},{"title":"Retrieve Wan video task","sidebarTitle":"Retrieve task","api":"GET https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}","playground":"none","href":"/api-reference/wan/video-generation/retrieve-task"},{"title":"Delete Wan video task","sidebarTitle":"Delete task","api":"DELETE https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}","playground":"none","href":"/api-reference/wan/video-generation/delete-task"}]},{"group":"Image API","pages":[{"title":"Create a z-image task","sidebarTitle":"Create z-image task","openapi":"openapi/wan-z-image.yaml POST /z-images/generations","href":"/api-reference/wan/image-generation/z-image"},{"title":"Retrieve a z-image task","sidebarTitle":"Retrieve task","openapi":"openapi/wan-z-image.yaml GET /z-images/generations/{id}","href":"/api-reference/wan/image-generation/z-image/tasks"},{"title":"Delete a z-image task","sidebarTitle":"Delete task","openapi":"openapi/wan-z-image.yaml DELETE /z-images/generations/{id}","href":"/api-reference/wan/image-generation/z-image/tasks-delete"},{"title":"Create a Wan face swap task","sidebarTitle":"Create face swap task","openapi":"openapi/wan-face-swap.yaml POST /wan-face-swaps/generations","href":"/api-reference/wan/image-generation/face-swap"},{"title":"Retrieve a Wan face swap task","sidebarTitle":"Retrieve task","openapi":"openapi/wan-face-swap.yaml GET /wan-face-swaps/generations/{id}","href":"/api-reference/wan/image-generation/face-swap/tasks"},{"title":"Delete a Wan face swap task","sidebarTitle":"Delete task","openapi":"openapi/wan-face-swap.yaml DELETE /wan-face-swaps/generations/{id}","href":"/api-reference/wan/image-generation/face-swap/tasks-delete"}]}]},{"group":"Standard","pages":[{"group":"Video API","pages":[{"title":"Create Wan video task","sidebarTitle":"Create task","openapi":"openapi/wan-standard-video.yaml POST /contents/generations/tasks","href":"/api-reference/wan/standard/video-generation/create-task"},{"title":"Retrieve Wan video task","sidebarTitle":"Retrieve task","openapi":"openapi/wan-standard-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/wan/standard/video-generation/retrieve-task"},{"title":"Cancel Wan video task","sidebarTitle":"Cancel task","openapi":"openapi/wan-standard-video.yaml DELETE /contents/generations/tasks/{id}","href":"/api-reference/wan/standard/video-generation/cancel-task"}]}]}]},{"group":"Qwen","pages":[{"group":"Image API","pages":[{"title":"Generate or edit images with Qwen Image 3.0","sidebarTitle":"Qwen Image 3.0","openapi":"openapi/qwen-image-3.yaml POST /qwen-images/generations","href":"/api-reference/qwen/image-generation/qwen-image-3-0"},{"title":"Create a Qwen image edit task","sidebarTitle":"Create image edit task","openapi":"openapi/qwen-image-edit.yaml POST /qwen-image-edits/generations","href":"/api-reference/qwen/image-generation/qwen-image-edit"},{"title":"Retrieve a Qwen image edit task","sidebarTitle":"Retrieve task","openapi":"openapi/qwen-image-edit.yaml GET /qwen-image-edits/generations/{id}","href":"/api-reference/qwen/image-generation/qwen-image-edit/tasks"},{"title":"Delete a Qwen image edit task","sidebarTitle":"Delete task","openapi":"openapi/qwen-image-edit.yaml DELETE /qwen-image-edits/generations/{id}","href":"/api-reference/qwen/image-generation/qwen-image-edit/tasks-delete"}]}]},{"group":"ElevenLabs","pages":[{"title":"Audio API","href":"/api-reference/elevenlabs/overview"},{"group":"Voices","pages":[{"group":"Create voices","pages":[{"title":"Clone a voice from recordings","openapi":"openapi/audio.yaml POST /audio/voices/clone","href":"/api-reference/elevenlabs/clone-voice"},{"title":"Estimate voice design cost","openapi":"openapi/audio.yaml POST /audio/voice-designs/estimate","href":"/api-reference/elevenlabs/estimate-voice-design"},{"title":"Voice Design v3","openapi":"openapi/audio.yaml POST /audio/voice-designs","href":"/api-reference/elevenlabs/voice-designs"},{"title":"Save a Voice Design candidate","openapi":"openapi/audio.yaml POST /audio/voice-designs/{generationId}/save","href":"/api-reference/elevenlabs/save-candidate"},{"title":"Check a pending voice creation","openapi":"openapi/audio.yaml GET /audio/voice-operations/{operationId}","href":"/api-reference/elevenlabs/get-voice-operation"}]},{"group":"Find and manage voices","pages":[{"title":"List voices","openapi":"openapi/audio.yaml GET /audio/voices","href":"/api-reference/elevenlabs/voices"},{"title":"Get a voice","openapi":"openapi/audio.yaml GET /audio/voices/{voiceId}","href":"/api-reference/elevenlabs/get-voice"},{"title":"Favorite a public voice","openapi":"openapi/audio.yaml PUT /audio/voices/{voiceId}/favorite","href":"/api-reference/elevenlabs/favorite-voice"},{"title":"Unfavorite a public voice","openapi":"openapi/audio.yaml DELETE /audio/voices/{voiceId}/favorite","href":"/api-reference/elevenlabs/unfavorite-voice"},{"title":"Delete a private voice","openapi":"openapi/audio.yaml DELETE /audio/voices/{voiceId}","href":"/api-reference/elevenlabs/delete-voice"}]}]},{"group":"Speech and dialogue","pages":[{"title":"List audio models","openapi":"openapi/audio.yaml GET /audio/models","href":"/api-reference/elevenlabs/models"},{"title":"Speech language codes","href":"/api-reference/elevenlabs/language-codes"},{"title":"Estimate audio price","openapi":"openapi/audio.yaml POST /audio/estimate","href":"/api-reference/elevenlabs/estimate"},{"title":"Generate speech audio","openapi":"openapi/audio.yaml POST /audio/speech","href":"/api-reference/elevenlabs/speech"},{"title":"Create dialogue","href":"/api-reference/elevenlabs/dialogue"},{"title":"Create audio generation","openapi":"openapi/audio.yaml POST /audio/generations","href":"/api-reference/elevenlabs/create-generation"},{"title":"List audio generations","openapi":"openapi/audio.yaml GET /audio/generations","href":"/api-reference/elevenlabs/list-generations"},{"title":"Get audio generation","openapi":"openapi/audio.yaml GET /audio/generations/{id}","href":"/api-reference/elevenlabs/get-generation"}]},{"group":"Realtime connections","pages":[{"title":"Create realtime session","openapi":"openapi/audio.yaml POST /audio/realtime/sessions","href":"/api-reference/elevenlabs/create-session"},{"title":"Get realtime session","openapi":"openapi/audio.yaml GET /audio/realtime/sessions/{id}","href":"/api-reference/elevenlabs/get-session"},{"title":"Create reconnection ticket","openapi":"openapi/audio.yaml POST /audio/realtime/sessions/{id}/tokens","href":"/api-reference/elevenlabs/create-token"},{"title":"Close realtime session","openapi":"openapi/audio.yaml DELETE /audio/realtime/sessions/{id}","href":"/api-reference/elevenlabs/close-session"}]},{"group":"Webhooks","pages":[{"title":"Create webhook endpoint","openapi":"openapi/audio.yaml POST /webhook-endpoints","href":"/api-reference/elevenlabs/create-webhook"},{"title":"List webhook endpoints","openapi":"openapi/audio.yaml GET /webhook-endpoints","href":"/api-reference/elevenlabs/list-webhooks"},{"title":"Update webhook endpoint","openapi":"openapi/audio.yaml PATCH /webhook-endpoints/{id}","href":"/api-reference/elevenlabs/update-webhook"},{"title":"Disable webhook endpoint","openapi":"openapi/audio.yaml DELETE /webhook-endpoints/{id}","href":"/api-reference/elevenlabs/disable-webhook"},{"title":"Rotate webhook secret","openapi":"openapi/audio.yaml POST /webhook-endpoints/{id}/rotate-secret","href":"/api-reference/elevenlabs/rotate-secret"},{"title":"List webhook deliveries","openapi":"openapi/audio.yaml GET /webhook-endpoints/{id}/deliveries","href":"/api-reference/elevenlabs/deliveries"},{"title":"Retry a failed delivery","openapi":"openapi/audio.yaml POST /webhook-endpoints/{id}/deliveries/{deliveryId}/retry","href":"/api-reference/elevenlabs/retry-delivery"}]}]},{"group":"Higgsfield","pages":[{"group":"Genjutsu","pages":[{"title":"Genjutsu","href":"/api-reference/higgsfield/genjutsu/overview"},{"title":"Motion Transfer","href":"/api-reference/higgsfield/genjutsu/motion-transfer"},{"title":"Object Swap","href":"/api-reference/higgsfield/genjutsu/object-swap"},{"title":"Restyle","href":"/api-reference/higgsfield/genjutsu/restyle"},{"title":"Create a Genjutsu task","openapi":"openapi/genjutsu-video.yaml POST /contents/generations/tasks","href":"/api-reference/higgsfield/genjutsu/create-task"},{"title":"List Genjutsu styles","openapi":"openapi/genjutsu-video.yaml GET /video/genjutsu/styles","href":"/api-reference/higgsfield/genjutsu/styles"},{"title":"Retrieve a Genjutsu task","openapi":"openapi/genjutsu-video.yaml GET /contents/generations/tasks/{id}","href":"/api-reference/higgsfield/genjutsu/retrieve-task"},{"title":"Cancel a Genjutsu task","openapi":"openapi/genjutsu-video.yaml DELETE /contents/generations/tasks/{id}","href":"/api-reference/higgsfield/genjutsu/cancel-task"}]}]}]},{"tab":"Help","pages":[{"title":"Help","href":"/helpful-tips"}]}]},"basePath":"","title":"Create a Kling 4.0 task - GENGEN API","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}