After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Task Status endpoint.
Kling 4.0 Flash is the faster 720p tier of Kling 4.0. It creates videos from text, animates a starting frame, combines visual references, or edits an existing video. The supplied media selects the mode automatically.
Fast 720p output: Generate 3–20 second videos at 720p.
Starting frame: Animate one starting image. Flash does not accept an ending frame.
Visual references: Guide appearance and movement with reference images, reference videos, and subjects defined by images or a video.
Video editing: Supply a source video and describe the changes. Editing also accepts reference images, reference videos, and subjects. Omit duration to retain the source video’s duration.
Aspect ratios: Use 16:9, 9:16, 1:1, 21:9, or auto in text and reference modes.
Reference images, reference videos, or kling_elements are non-empty
Image-to-video
image_urls is non-empty without reference materials
Text-to-video
No media is provided
In reference mode, image_urls may contain one optional starting frame. In image mode, prompt is optional; omit aspect_ratio, because the output follows the starting frame’s aspect ratio. Editing does not accept image_urls or aspect_ratio; the output follows the source video’s aspect ratio.
prompt (string): Video instructions, 1–26,000 characters, containing at least one non-whitespace character. Required in every mode except image-to-video, where it is optional.
duration (integer): Output duration from 3 to 20 seconds. Generation defaults to 5. In editing, omit this field to retain the source video’s duration; chargeable output duration is rounded up to whole seconds.
resolution (string): 720p only. Default: 720p.
aspect_ratio (string): auto, 16:9, 9:16, 1:1, or 21:9, for text and reference modes. Default: 16:9. In text-to-video, auto is treated as 16:9; in reference mode, auto adapts to the supplied materials. Omit this field in image and editing modes.
image_urls (array of strings): One starting image.
video_url (string): Source video for editing. Must last 3–20 seconds.
reference_image_urls (array of strings): Up to 10 publicly accessible HTTP or HTTPS image URLs.
reference_video_urls (array of strings): Publicly accessible HTTP or HTTPS video URLs, each lasting 3–20 seconds. Up to 5 in reference mode and up to 4 in editing mode.
kling_elements (array of objects): Up to 7 subjects. Each subject supplies exactly one of:
element_input_urls (array of strings): 2–4 images, with the frontal view first and additional reference views after it.
element_input_video_urls (array of strings): Exactly one 3–8 second video. At most 3 subjects may use videos.
Subjects use their positions in the array and require no names. Refer to them as @Element1, @Element2, and so on. Reference images use @Image1, @Image2, and so on. In reference mode, reference videos start at @Video1; in editing mode, the source video is @Video1 and reference videos start at @Video2. Existing @image_1 and @video_1 references remain supported.
{ "model": "kling-4.0-flash", "callback_url": "https://your-domain.com/callback", "input": { "prompt": "A paper boat drifts through a miniature city at sunset, slow camera push-in", "duration": 5, "aspect_ratio": "16:9" }}
{ "model": "kling-4.0-flash", "input": { "prompt": "The red panda shakes the snow off its fur and turns toward the camera", "image_urls": ["https://example.com/start-frame.png"], "duration": 5 }}
{ "model": "kling-4.0-flash", "input": { "prompt": "Follow the camera movement of @Video1 in the snowy mountain scene from @Image1", "reference_image_urls": ["https://example.com/mountain.png"], "reference_video_urls": ["https://example.com/camera-motion.mp4"], "duration": 8, "aspect_ratio": "16:9" }}
{ "model": "kling-4.0-flash", "input": { "prompt": "Change the season in @Video1 to spring using @Image1, keeping the motion and camera", "video_url": "https://example.com/source.mp4", "reference_image_urls": ["https://example.com/spring.png"] }}
In reference mode, the optional starting frame and reference images together cannot exceed 10 images. The number of starting frames, reference images, reference videos, and subjects combined cannot exceed 15. Images inside a subject count as one subject, not as separate materials.
The source video, reference videos, and video-based subjects must have a combined original duration of at most 20 seconds. Each source or reference video must last 3–20 seconds, and each subject video 3–8 seconds.
Flash does not support 1080p, ending frames, or multi_prompt. Use Kling 4.0 for these.
Reference indexes start at 1 and follow the order of the corresponding input array. Use publicly accessible media URLs and omit unused optional fields.
Selects editing when video_url is supplied, reference-to-video when reference images, reference videos, or subjects are supplied, image-to-video when only image_urls is supplied, and text-to-video otherwise. All media URLs must be publicly accessible HTTP or HTTPS URLs.
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PoYo AI","colors":{"primary":"#4F46E5","light":"#A5B4FC","dark":"#4338CA"},"logo":{"light":"https://mintcdn.com/goseallc/29Q_kJZSXJtvfdJH/logo/light.svg?fit=max\u0026auto=format\u0026n=29Q_kJZSXJtvfdJH\u0026q=85\u0026s=8af87ad322e9698952f9066b10b97f41","dark":"https://mintcdn.com/goseallc/29Q_kJZSXJtvfdJH/logo/dark.svg?fit=max\u0026auto=format\u0026n=29Q_kJZSXJtvfdJH\u0026q=85\u0026s=f3b51af4915305ef51d0bc2b9c809b89"},"favicon":"https://mintcdn.com/goseallc/N1-_FzFDsG6WGTTd/favicon.ico?fit=max\u0026auto=format\u0026n=N1-_FzFDsG6WGTTd\u0026q=85\u0026s=eb4e11a6efd2d4782785543f2e22f387","api":{"openapi":["openapi.json","api-manual/moderation-series/omni-moderation.json","integrations/capability-catalog.json","api-manual/image-series/ideogram-v4-5.json","api-manual/image-series/ideogram-vector-1-0.json","api-manual/music-series/elevenlabs-v4-tts.json","api-manual/music-series/elevenlabs-v4-turbo-tts.json","api-manual/music-series/gemini-3-8-flash-lite-tts.json","api-manual/music-series/gemini-3-8-flash-tts.json","api-manual/3d-series/meshy-7-1-3d.json","api-manual/image-series/gpt-4o-image.json","api-manual/image-series/gpt-image-1.5.json","api-manual/image-series/gpt-image-2.json","api-manual/image-series/gpt-image-2-5-flare.json","api-manual/image-series/gpt-image-2-5-sunburst.json","api-manual/image-series/qwen-image-3.json","api-manual/image-series/qwen-image-2-1.json","api-manual/image-series/nano-banana.json","api-manual/image-series/nano-banana-2.json","api-manual/image-series/nano-banana-2-new.json","api-manual/image-series/nano-banana-2-lite.json","api-manual/image-series/nano-banana-2-1.json","api-manual/image-series/flux-2.json","api-manual/image-series/flux-dev.json","api-manual/image-series/flux-schnell.json","api-manual/image-series/flux-kontext.json","api-manual/image-series/flux-3-klein.json","api-manual/image-series/seedream-4.json","api-manual/image-series/seedream-4-5.json","api-manual/image-series/seedream-5-0-lite.json","api-manual/image-series/seedream-5-0-pro.json","api-manual/image-series/seedream-5-0-flash.json","api-manual/image-series/wan-2-7-image-pro.json","api-manual/image-series/wan-2-7-image.json","api-manual/image-series/z-image.json","api-manual/image-series/grok-imagine-image.json","api-manual/image-series/grok-imagine-image-2-0.json","api-manual/image-series/grok-imagine-image-quality.json","api-manual/image-series/kling-o1.json","api-manual/image-series/kling-o3.json","api-manual/video-series/sora-2.json","api-manual/video-series/sora-2-pro.json","api-manual/video-series/sora-2-official.json","api-manual/video-series/sora-2-pro-official.json","api-manual/video-series/veo-3-1.json","api-manual/video-series/veo-3-1-official.json","api-manual/video-series/flux-3.json","api-manual/video-series/flux-3-max.json","api-manual/video-series/wan-animate.json","api-manual/video-series/wan2.2-text-to-video-fast.json","api-manual/video-series/wan2.2-image-to-video-fast.json","api-manual/video-series/wan2.5-image-to-video.json","api-manual/video-series/wan2.5-text-to-video.json","api-manual/video-series/wan-2-6.json","api-manual/video-series/wan-2-7-video.json","api-manual/video-series/wan-3-0-video.json","api-manual/video-series/wan-3-0-video-prime.json","api-manual/video-series/kling-1-6.json","api-manual/video-series/kling-2-1.json","api-manual/video-series/kling-2-6.json","api-manual/video-series/kling-2.6-motion-control.json","api-manual/video-series/kling-3-0-motion-control.json","api-manual/video-series/kling-2-5-turbo-pro.json","api-manual/video-series/kling-3-0.json","api-manual/video-series/kling-3-0-turbo.json","api-manual/video-series/kling-3-0-4k.json","api-manual/video-series/kling-4-0.json","api-manual/video-series/kling-4-0-flash.json","api-manual/video-series/kling-avatar-2-0.json","api-manual/video-series/kling-o3.json","api-manual/video-series/kling-o3-4k.json","api-manual/video-series/grok-imagine.json","api-manual/video-series/grok-imagine-video-1-5.json","api-manual/video-series/omni-flash.json","api-manual/video-series/gemini-omni-1.1-flash.json","api-manual/video-series/gemini-omni-1.2-flash.json","api-manual/video-series/hailuo-02.json","api-manual/video-series/hailuo-2-3.json","api-manual/video-series/hailuo-03.json","api-manual/video-series/h3-max.json","api-manual/video-series/h3-max-turbo.json","api-manual/video-series/seedance-1.0-pro.json","api-manual/video-series/seedance-1-5-pro.json","api-manual/video-series/seedance-2.json","api-manual/video-series/seedance-2.5.json","api-manual/video-series/seedance-2-mini.json","api-manual/video-series/happy-horse.json","api-manual/video-series/happy-horse-1-1.json","api-manual/video-series/runway-gen-4-5.json","api-manual/video-series/vidu-q4.json","api-manual/video-series/omnihuman-2-0.json","api-manual/video-series/pixverse-v6-max.json","api-manual/task-management/3d-status.json","api-manual/task-management/image-status.json","api-manual/task-management/video-status.json","api-manual/3d-series/meshy-6-3d.json","api-manual/3d-series/hunyuan-3d-3-1.json","api-manual/3d-series/tripo-h31-3d.json","api-manual/3d-series/tripo-p1-3d.json","api-manual/music-series/generate-music.json","api-manual/music-series/generate-mashup.json","api-manual/music-series/generate-sounds.json","api-manual/music-series/minimax-music-2.6.json","api-manual/music-series/elevenlabs-music.json","api-manual/music-series/elevenlabs-v3-tts.json","api-manual/music-series/elevenlabs-tts-turbo-2-5.json","api-manual/music-series/gemini-3-1-flash-tts.json","api-manual/music-series/xai-tts-1.json","api-manual/music-series/extend-music.json","api-manual/music-series/upload-and-cover-audio.json","api-manual/music-series/upload-and-extend-audio.json","api-manual/music-series/add-instrumental.json","api-manual/music-series/add-vocals.json","api-manual/music-series/get-timestamped-lyrics.json","api-manual/music-series/boost-music-style.json","api-manual/music-series/generate-music-cover.json","api-manual/music-series/replace-section.json","api-manual/music-series/generate-persona.json","api-manual/music-series/generate-lyrics.json","api-manual/music-series/convert-to-wav.json","api-manual/music-series/vocal-remover/separate-vocals.json","api-manual/music-series/vocal-remover/stem-split.json","api-manual/music-series/vocal-remover/upload-and-separate-vocals.json","api-manual/music-series/voice/validate.json","api-manual/music-series/voice/generate.json","api-manual/music-series/voice/regenerate.json","api-manual/music-series/voice/check.json","api-manual/music-series/create-music-video.json","api-manual/music-series/query-music-detail.json","api-manual/chat-series/chat-completions.json","api-manual/chat-series/responses.json","api-manual/chat-series/claude-messages.json","api-manual/chat-series/gemini-native-format.json","api-manual/chat-series/openai.json","api-manual/chat-series/anthropic.json","api-manual/chat-series/google.json","api-manual/chat-series/deepseek.json","api-manual/chat-series/xai.json","api-manual/chat-series/moonshot.json","api-manual/tools-series/image-translator.json","api-manual/tools-series/video-translator.json","api-manual/tools-series/video-background-removal.json","api-manual/tools-series/video-upscaler.json","api-manual/image-series/gpt-image-2-5-fixed.json","api-manual/image-series/gpt-image-2-6-fixed.json","api-manual/image-series/gpt-image-2-6-flare.json","api-manual/image-series/gpt-image-2-6-sunburst.json","api-manual/music-series/generate-midi.json","api-manual/account-management/user-balance.json","api-manual/file-series/upload-url.json","api-manual/file-series/upload-base64.json","api-manual/file-series/upload-stream.json","zh/openapi.json","zh/api-manual/moderation-series/omni-moderation.json","zh/integrations/capability-catalog.json","zh/api-manual/image-series/ideogram-v4-5.json","zh/api-manual/image-series/ideogram-vector-1-0.json","zh/api-manual/music-series/elevenlabs-v4-tts.json","zh/api-manual/music-series/elevenlabs-v4-turbo-tts.json","zh/api-manual/music-series/gemini-3-8-flash-lite-tts.json","zh/api-manual/music-series/gemini-3-8-flash-tts.json","zh/api-manual/3d-series/meshy-7-1-3d.json","zh/api-manual/image-series/gpt-4o-image.json","zh/api-manual/image-series/gpt-image-1.5.json","zh/api-manual/image-series/gpt-image-2.json","zh/api-manual/image-series/gpt-image-2-5-flare.json","zh/api-manual/image-series/gpt-image-2-5-sunburst.json","zh/api-manual/image-series/qwen-image-3.json","zh/api-manual/image-series/qwen-image-2-1.json","zh/api-manual/image-series/nano-banana.json","zh/api-manual/image-series/nano-banana-2.json","zh/api-manual/image-series/nano-banana-2-new.json","zh/api-manual/image-series/nano-banana-2-lite.json","zh/api-manual/image-series/nano-banana-2-1.json","zh/api-manual/image-series/flux-2.json","zh/api-manual/image-series/flux-dev.json","zh/api-manual/image-series/flux-schnell.json","zh/api-manual/image-series/flux-kontext.json","zh/api-manual/image-series/flux-3-klein.json","zh/api-manual/image-series/seedream-4.json","zh/api-manual/image-series/seedream-4-5.json","zh/api-manual/image-series/seedream-5-0-lite.json","zh/api-manual/image-series/seedream-5-0-pro.json","zh/api-manual/image-series/seedream-5-0-flash.json","zh/api-manual/image-series/wan-2-7-image-pro.json","zh/api-manual/image-series/wan-2-7-image.json","zh/api-manual/image-series/z-image.json","zh/api-manual/image-series/grok-imagine-image.json","zh/api-manual/image-series/grok-imagine-image-2-0.json","zh/api-manual/image-series/grok-imagine-image-quality.json","zh/api-manual/image-series/kling-o1.json","zh/api-manual/image-series/kling-o3.json","zh/api-manual/video-series/sora-2.json","zh/api-manual/video-series/sora-2-pro.json","zh/api-manual/video-series/sora-2-official.json","zh/api-manual/video-series/sora-2-pro-official.json","zh/api-manual/video-series/veo-3-1.json","zh/api-manual/video-series/veo-3-1-official.json","zh/api-manual/video-series/flux-3.json","zh/api-manual/video-series/flux-3-max.json","zh/api-manual/video-series/wan-animate.json","zh/api-manual/video-series/wan2.2-text-to-video-fast.json","zh/api-manual/video-series/wan2.2-image-to-video-fast.json","zh/api-manual/video-series/wan2.5-image-to-video.json","zh/api-manual/video-series/wan2.5-text-to-video.json","zh/api-manual/video-series/wan-2-6.json","zh/api-manual/video-series/wan-2-7-video.json","zh/api-manual/video-series/wan-3-0-video.json","zh/api-manual/video-series/wan-3-0-video-prime.json","zh/api-manual/video-series/kling-1-6.json","zh/api-manual/video-series/kling-2-1.json","zh/api-manual/video-series/kling-2-6.json","zh/api-manual/video-series/kling-2.6-motion-control.json","zh/api-manual/video-series/kling-3-0-motion-control.json","zh/api-manual/video-series/kling-2-5-turbo-pro.json","zh/api-manual/video-series/kling-3-0.json","zh/api-manual/video-series/kling-3-0-turbo.json","zh/api-manual/video-series/kling-3-0-4k.json","zh/api-manual/video-series/kling-4-0.json","zh/api-manual/video-series/kling-4-0-flash.json","zh/api-manual/video-series/kling-avatar-2-0.json","zh/api-manual/video-series/kling-o3.json","zh/api-manual/video-series/kling-o3-4k.json","zh/api-manual/video-series/grok-imagine.json","zh/api-manual/video-series/grok-imagine-video-1-5.json","zh/api-manual/video-series/omni-flash.json","zh/api-manual/video-series/gemini-omni-1.1-flash.json","zh/api-manual/video-series/gemini-omni-1.2-flash.json","zh/api-manual/video-series/hailuo-02.json","zh/api-manual/video-series/hailuo-2-3.json","zh/api-manual/video-series/hailuo-03.json","zh/api-manual/video-series/h3-max.json","zh/api-manual/video-series/h3-max-turbo.json","zh/api-manual/video-series/seedance-1.0-pro.json","zh/api-manual/video-series/seedance-1-5-pro.json","zh/api-manual/video-series/seedance-2.json","zh/api-manual/video-series/seedance-2.5.json","zh/api-manual/video-series/seedance-2-mini.json","zh/api-manual/video-series/happy-horse.json","zh/api-manual/video-series/happy-horse-1-1.json","zh/api-manual/video-series/runway-gen-4-5.json","zh/api-manual/video-series/vidu-q4.json","zh/api-manual/video-series/omnihuman-2-0.json","zh/api-manual/video-series/pixverse-v6-max.json","zh/api-manual/task-management/3d-status.json","zh/api-manual/task-management/image-status.json","zh/api-manual/task-management/video-status.json","zh/api-manual/3d-series/meshy-6-3d.json","zh/api-manual/3d-series/hunyuan-3d-3-1.json","zh/api-manual/3d-series/tripo-h31-3d.json","zh/api-manual/3d-series/tripo-p1-3d.json","zh/api-manual/music-series/generate-music.json","zh/api-manual/music-series/generate-mashup.json","zh/api-manual/music-series/generate-sounds.json","zh/api-manual/music-series/minimax-music-2.6.json","zh/api-manual/music-series/elevenlabs-music.json","zh/api-manual/music-series/elevenlabs-v3-tts.json","zh/api-manual/music-series/elevenlabs-tts-turbo-2-5.json","zh/api-manual/music-series/gemini-3-1-flash-tts.json","zh/api-manual/music-series/xai-tts-1.json","zh/api-manual/music-series/extend-music.json","zh/api-manual/music-series/upload-and-cover-audio.json","zh/api-manual/music-series/upload-and-extend-audio.json","zh/api-manual/music-series/add-instrumental.json","zh/api-manual/music-series/add-vocals.json","zh/api-manual/music-series/get-timestamped-lyrics.json","zh/api-manual/music-series/boost-music-style.json","zh/api-manual/music-series/generate-music-cover.json","zh/api-manual/music-series/replace-section.json","zh/api-manual/music-series/generate-persona.json","zh/api-manual/music-series/generate-lyrics.json","zh/api-manual/music-series/convert-to-wav.json","zh/api-manual/music-series/vocal-remover/separate-vocals.json","zh/api-manual/music-series/vocal-remover/stem-split.json","zh/api-manual/music-series/vocal-remover/upload-and-separate-vocals.json","zh/api-manual/music-series/voice/validate.json","zh/api-manual/music-series/voice/generate.json","zh/api-manual/music-series/voice/regenerate.json","zh/api-manual/music-series/voice/check.json","zh/api-manual/music-series/create-music-video.json","zh/api-manual/music-series/query-music-detail.json","zh/api-manual/chat-series/chat-completions.json","zh/api-manual/chat-series/responses.json","zh/api-manual/chat-series/claude-messages.json","zh/api-manual/chat-series/gemini-native-format.json","zh/api-manual/chat-series/openai.json","zh/api-manual/chat-series/anthropic.json","zh/api-manual/chat-series/google.json","zh/api-manual/chat-series/deepseek.json","zh/api-manual/chat-series/xai.json","zh/api-manual/chat-series/moonshot.json","zh/api-manual/tools-series/image-translator.json","zh/api-manual/tools-series/video-translator.json","zh/api-manual/tools-series/video-background-removal.json","zh/api-manual/tools-series/video-upscaler.json","zh/api-manual/image-series/gpt-image-2-5-fixed.json","zh/api-manual/image-series/gpt-image-2-6-fixed.json","zh/api-manual/image-series/gpt-image-2-6-flare.json","zh/api-manual/image-series/gpt-image-2-6-sunburst.json","zh/api-manual/music-series/generate-midi.json","zh/api-manual/account-management/user-balance.json","zh/api-manual/file-series/upload-url.json","zh/api-manual/file-series/upload-base64.json","zh/api-manual/file-series/upload-stream.json"],"playground":{},"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.poyo.ai"}},"background":{"color":{"light":"#FFFFFF","dark":"#0B0B0F"}},"navbar":{"links":[{"icon":"discord","href":"https://discord.gg/F8JNuUPB3j","label":"Discord"}],"primary":{"type":"button","label":"Market","href":"https://poyo.ai/models"}},"fonts":{"family":"Geist"},"styling":{"codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{},"languages":[{"language":"en","href":""},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"goseallc","hasAudioNarration":false,"actualSubdomain":"goseallc","customDomains":["docs.poyo.ai"],"gitSource":{"type":"github","owner":"coolhackboy","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aef0636f5a881e8748c9794","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"en","tag":"Video Models","count":98},{"language":"zh","tag":"视频模型","count":98},{"language":"en","tag":"Image Models","count":74},{"language":"zh","tag":"图像模型","count":74},{"language":"en","tag":"Music Models","count":72},{"language":"zh","tag":"音乐模型","count":72},{"language":"en","tag":"Suno AI","count":25},{"language":"zh","tag":"Suno AI","count":25},{"language":"en","tag":"LLM Models","count":22},{"language":"zh","tag":"LLM 模型","count":22},{"language":"en","tag":"Platform","count":18},{"language":"zh","tag":"平台","count":18},{"language":"en","tag":"Kling","count":16},{"language":"zh","tag":"Kling","count":16},{"language":"en","tag":"Google","count":13},{"language":"en","tag":"AI Agents","count":13},{"language":"zh","tag":"Google","count":13},{"language":"zh","tag":"AI Agent","count":13},{"language":"en","tag":"3D Models","count":12},{"language":"zh","tag":"3D 模型","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":""}],"page":{"pagePath":"api-manual/video-series/kling-4-0-flash","slug":"/api-manual/video-series/kling-4-0-flash","pageMetadata":{"title":"Kling 4.0 Flash","description":"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.","icon":"video","openapi":"api-manual/video-series/kling-4-0-flash.json POST /api/generate/submit","href":"/api-manual/video-series/kling-4-0-flash"},"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: \"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`After submission, a `,_jsx(_components.code,{children:`task_id`}),` will be returned. If you provided a `,_jsx(_components.code,{children:`callback_url`}),`, when the task status becomes `,_jsx(_components.code,{children:`finished`}),` or `,_jsx(_components.code,{children:`failed`}),`, a POST request will be sent to the `,_jsx(_components.code,{children:`callback_url`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Regardless of whether `,_jsx(_components.code,{children:`callback_url`}),` is provided, you can retrieve the response result through the unified `,_jsx(_components.a,{href:`/api-manual/task-management/status`,children:`Query Task Status`}),` endpoint.`]}),`\n`]})}),`\n`,_jsxs(_components.p,{children:[`Kling 4.0 Flash is the faster 720p tier of `,_jsx(_components.a,{href:`/api-manual/video-series/kling-4-0`,children:`Kling 4.0`}),`. It creates videos from text, animates a starting frame, combines visual references, or edits an existing video. The supplied media selects the mode automatically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`models`,children:`Models`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`kling-4.0-flash`}),` — Text-to-video, image-to-video, reference-to-video, and video editing at `,_jsx(_components.code,{children:`720p`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`features`,children:`Features`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Fast 720p output`}),`: Generate 3–20 second videos at `,_jsx(_components.code,{children:`720p`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Starting frame`}),`: Animate one starting image. Flash does not accept an ending frame.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Visual references`}),`: Guide appearance and movement with reference images, reference videos, and subjects defined by images or a video.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Video editing`}),`: Supply a source video and describe the changes. Editing also accepts reference images, reference videos, and subjects. Omit `,_jsx(_components.code,{children:`duration`}),` to retain the source video’s duration.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Aspect ratios`}),`: Use `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`21:9`}),`, or `,_jsx(_components.code,{children:`auto`}),` in text and reference modes.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`input-modes`,children:`Input modes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Selected when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video editing`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`video_url`}),` is provided`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reference-to-video`}),_jsxs(_components.td,{children:[`Reference images, reference videos, or `,_jsx(_components.code,{children:`kling_elements`}),` are non-empty`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Image-to-video`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_urls`}),` is non-empty without reference materials`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text-to-video`}),_jsx(_components.td,{children:`No media is provided`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`In reference mode, `,_jsx(_components.code,{children:`image_urls`}),` may contain one optional starting frame. In image mode, `,_jsx(_components.code,{children:`prompt`}),` is optional; omit `,_jsx(_components.code,{children:`aspect_ratio`}),`, because the output follows the starting frame’s aspect ratio. Editing does not accept `,_jsx(_components.code,{children:`image_urls`}),` or `,_jsx(_components.code,{children:`aspect_ratio`}),`; the output follows the source video’s aspect ratio.`]}),`\n`,_jsx(Heading,{level:`2`,id:`required-parameters`,children:`Required parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`prompt`}),` (string): Video instructions, 1–26,000 characters, containing at least one non-whitespace character. Required in every mode except image-to-video, where it is optional.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`optional-parameters`,children:`Optional parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`duration`}),` (integer): Output duration from 3 to 20 seconds. Generation defaults to `,_jsx(_components.code,{children:`5`}),`. In editing, omit this field to retain the source video’s duration; chargeable output duration is rounded up to whole seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resolution`}),` (string): `,_jsx(_components.code,{children:`720p`}),` only. Default: `,_jsx(_components.code,{children:`720p`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`aspect_ratio`}),` (string): `,_jsx(_components.code,{children:`auto`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`1:1`}),`, or `,_jsx(_components.code,{children:`21:9`}),`, for text and reference modes. Default: `,_jsx(_components.code,{children:`16:9`}),`. In text-to-video, `,_jsx(_components.code,{children:`auto`}),` is treated as `,_jsx(_components.code,{children:`16:9`}),`; in reference mode, `,_jsx(_components.code,{children:`auto`}),` adapts to the supplied materials. Omit this field in image and editing modes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`image_urls`}),` (array of strings): One starting image.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`video_url`}),` (string): Source video for editing. Must last 3–20 seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_image_urls`}),` (array of strings): Up to 10 publicly accessible HTTP or HTTPS image URLs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference_video_urls`}),` (array of strings): Publicly accessible HTTP or HTTPS video URLs, each lasting 3–20 seconds. Up to 5 in reference mode and up to 4 in editing mode.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`kling_elements`}),` (array of objects): Up to 7 subjects. Each subject supplies exactly one of:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`element_input_urls`}),` (array of strings): 2–4 images, with the frontal view first and additional reference views after it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`element_input_video_urls`}),` (array of strings): Exactly one 3–8 second video. At most 3 subjects may use videos.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Subjects use their positions in the array and require no names. Refer to them as `,_jsx(_components.code,{children:`@Element1`}),`, `,_jsx(_components.code,{children:`@Element2`}),`, and so on. Reference images use `,_jsx(_components.code,{children:`@Image1`}),`, `,_jsx(_components.code,{children:`@Image2`}),`, and so on. In reference mode, reference videos start at `,_jsx(_components.code,{children:`@Video1`}),`; in editing mode, the source video is `,_jsx(_components.code,{children:`@Video1`}),` and reference videos start at `,_jsx(_components.code,{children:`@Video2`}),`. Existing `,_jsx(_components.code,{children:`@image_1`}),` and `,_jsx(_components.code,{children:`@video_1`}),` references remain supported.`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`text-to-video`,children:`Text to Video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"kling-4.0-flash\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"callback_url\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-domain.com/callback\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"A paper boat drifts through a miniature city at sunset, slow camera push-in\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`image-to-video`,children:`Image to Video`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"kling-4.0-flash\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"The red panda shakes the snow off its fur and turns toward the camera\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/start-frame.png\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reference-images-and-subjects`,children:`Reference Images and Subjects`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"kling-4.0-flash\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"@Element1 walks along the cliff path toward the lighthouse in @Image1 at golden hour\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_image_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/lighthouse.png\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"kling_elements\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"element_input_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/keeper-front.png\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/keeper-side.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"9:16\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reference-videos`,children:`Reference Videos`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"kling-4.0-flash\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Follow the camera movement of @Video1 in the snowy mountain scene from @Image1\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_image_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/mountain.png\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_video_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/camera-motion.mp4\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`8`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"aspect_ratio\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"16:9\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`video-editing`,children:`Video Editing`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"kling-4.0-flash\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Change the season in @Video1 to spring using @Image1, keeping the motion and camera\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"video_url\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/source.mp4\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference_image_urls\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/spring.png\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`In reference mode, the optional starting frame and reference images together cannot exceed 10 images. The number of starting frames, reference images, reference videos, and subjects combined cannot exceed 15. Images inside a subject count as one subject, not as separate materials.`}),`\n`,_jsx(_components.li,{children:`The source video, reference videos, and video-based subjects must have a combined original duration of at most 20 seconds. Each source or reference video must last 3–20 seconds, and each subject video 3–8 seconds.`}),`\n`,_jsxs(_components.li,{children:[`Flash does not support `,_jsx(_components.code,{children:`1080p`}),`, ending frames, or `,_jsx(_components.code,{children:`multi_prompt`}),`. Use `,_jsx(_components.a,{href:`/api-manual/video-series/kling-4-0`,children:`Kling 4.0`}),` for these.`]}),`\n`,_jsx(_components.li,{children:`Reference indexes start at 1 and follow the order of the corresponding input array. Use publicly accessible media URLs and omit unused optional fields.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Kling 4.0 Flash","description":"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.","icon":"video","openapi":"api-manual/video-series/kling-4-0-flash.json POST /api/generate/submit","href":"/api-manual/video-series/kling-4-0-flash"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Models","slug":"models","depth":2,"children":[]},{"title":"Features","slug":"features","depth":2,"children":[]},{"title":"Input modes","slug":"input-modes","depth":2,"children":[]},{"title":"Required parameters","slug":"required-parameters","depth":2,"children":[]},{"title":"Optional parameters","slug":"optional-parameters","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Text to Video","slug":"text-to-video","depth":3,"children":[]},{"title":"Image to Video","slug":"image-to-video","depth":3,"children":[]},{"title":"Reference Images and Subjects","slug":"reference-images-and-subjects","depth":3,"children":[]},{"title":"Reference Videos","slug":"reference-videos","depth":3,"children":[]},{"title":"Video Editing","slug":"video-editing","depth":3,"children":[]}]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Submit a Kling 4.0 Flash video task","operationId":"submit_kling_4_0_flash","requestBody":"881daeec-d2cf-4ff3-b34a-a548cf16dbb9","responses":{"200":"cdb4774c-a93f-4737-a97e-b2fbe67b23b1","400":"6285d2b7-5225-46d2-bf09-8d2bb5f214e6","401":"2cce0590-ce8e-40d7-a339-86204fb82e01"},"method":"post","type":"path","servers":["4b8221d2-6f30-45bd-80bd-0406f4445394"],"security":["c221af20-545f-4d07-8ad2-da3393843902"],"path":"/api/generate/submit","baseUrlOptions":["https://api.poyo.ai"],"title":"Submit a Kling 4.0 Flash video task","description":"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["model","input"],"properties":{"model":{"type":"string","enum":["kling-4.0-flash"],"description":"Public model identifier.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"input":{"type":"object","additionalProperties":false,"description":"Selects editing when video_url is supplied, reference-to-video when reference images, reference videos, or subjects are supplied, image-to-video when only image_urls is supplied, and text-to-video otherwise. All media URLs must be publicly accessible HTTP or HTTPS URLs.","properties":{"prompt":{"type":"string","minLength":1,"maxLength":26000,"description":"Video instructions containing at least one non-whitespace character. Required in every mode except image-to-video, where it is optional. Reference images, videos, and subjects as @Image1, @Video1, and @Element1 in array order. In editing, the source video is @Video1 and reference videos start at @Video2. Existing @image_1 and @video_1 references remain supported.","example":"A paper boat drifts through a miniature city at sunset, slow camera push-in","uniqueKey":"input.prompt","typeLabel":"string"},"duration":{"type":"integer","minimum":3,"maximum":20,"description":"Output duration in whole seconds. Generation defaults to 5 seconds. In editing, omit this field to retain the source video duration; chargeable output duration is rounded up to whole seconds.","example":5,"uniqueKey":"input.duration","typeLabel":"integer"},"resolution":{"type":"string","enum":["720p"],"default":"720p","description":"Output video resolution. Flash supports 720p only.","example":"720p","uniqueKey":"input.resolution","typeLabel":"enum\u003cstring>"},"aspect_ratio":{"type":"string","enum":["auto","16:9","9:16","1:1","21:9"],"default":"16:9","description":"Output aspect ratio for text and reference modes. Defaults to 16:9. In text-to-video, auto is treated as 16:9; in reference mode, auto adapts to the supplied materials. Do not provide this field in image or editing modes; those modes follow the aspect ratio of the starting frame or source video.","example":"16:9","uniqueKey":"input.aspect_ratio","typeLabel":"enum\u003cstring>"},"reference_image_urls":{"type":"array","maxItems":10,"items":{"type":"string","format":"uri","uniqueKey":"input.reference_image_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Up to 10 publicly accessible HTTP or HTTPS reference images. Reference them as @Image1, @Image2, and so on. In reference mode, these images and the optional starting frame together cannot exceed 10 images. Supported in reference and editing modes.","example":["https://example.com/reference-image.png"],"uniqueKey":"input.reference_image_urls","typeLabel":"string\u003curi>[]"},"reference_video_urls":{"type":"array","maxItems":5,"x-video-duration-seconds":{"minimum":3,"maximum":20},"items":{"type":"string","format":"uri","uniqueKey":"input.reference_video_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Publicly accessible HTTP or HTTPS reference videos, each lasting 3-20 seconds. Up to 5 in reference mode, referenced as @Video1, @Video2, and so on; up to 4 in editing mode, referenced as @Video2, @Video3, and so on. All input videos together must not exceed 20 seconds.","example":["https://example.com/reference-video.mp4"],"uniqueKey":"input.reference_video_urls","typeLabel":"string\u003curi>[]"},"image_urls":{"type":"array","maxItems":1,"items":{"type":"string","format":"uri","uniqueKey":"input.image_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"One publicly accessible HTTP or HTTPS starting frame. Flash does not accept an ending frame. Without references, selects image-to-video. In reference mode, the starting frame counts toward the 10-image and 15-material limits. Do not provide this field in editing mode.","minItems":1,"example":["https://example.com/start-frame.png"],"uniqueKey":"input.image_urls","typeLabel":"string\u003curi>[]"},"video_url":{"type":"string","format":"uri","x-video-duration-seconds":{"minimum":3,"maximum":20},"description":"Publicly accessible HTTP or HTTPS source video for editing, lasting 3-20 seconds. Selects editing mode. Supports reference images, reference videos, and subjects; cannot be combined with image_urls or aspect_ratio.","example":"https://example.com/source.mp4","uniqueKey":"input.video_url","typeLabel":"string\u003curi>"},"kling_elements":{"type":"array","maxItems":7,"items":{"type":"object","additionalProperties":false,"minProperties":1,"maxProperties":1,"description":"Provide exactly one of element_input_urls and element_input_video_urls. Subjects use array positions, such as @Element1, and require no names.","properties":{"element_input_urls":{"type":"array","maxItems":4,"items":{"type":"string","format":"uri","uniqueKey":"input.kling_elements.items.[INDEX].element_input_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Publicly accessible HTTP or HTTPS images of this subject: frontal view first, followed by 1-3 additional reference views.","minItems":2,"uniqueKey":"input.kling_elements.items.[INDEX].element_input_urls","typeLabel":"string\u003curi>[]"},"element_input_video_urls":{"type":"array","maxItems":1,"x-video-duration-seconds":{"minimum":3,"maximum":8},"items":{"type":"string","format":"uri","uniqueKey":"input.kling_elements.items.[INDEX].element_input_video_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Exactly one publicly accessible HTTP or HTTPS subject video lasting 3-8 seconds. At most 3 subjects may use videos.","minItems":1,"uniqueKey":"input.kling_elements.items.[INDEX].element_input_video_urls","typeLabel":"string\u003curi>[]"}},"uniqueKey":"input.kling_elements.items.[INDEX]","typeLabel":"object"},"description":"Up to 7 position-based subjects. Use @Element1, @Element2, and so on in the prompt. At most 3 subjects may use videos. Supported in reference and editing modes. In reference mode, starting frames, reference images, reference videos, and subjects combined cannot exceed 15 materials; images inside a subject count as one subject.","example":[{"element_input_urls":["https://example.com/subject-front.png","https://example.com/subject-side.png"]}],"uniqueKey":"input.kling_elements","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"input","typeLabel":"object"},"callback_url":{"type":"string","format":"uri","description":"Optional webhook URL for task completion or failure notifications.","example":"https://your-domain.com/callback","uniqueKey":"callback_url","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"text-to-video":{"title":"text-to-video","value":{"model":"kling-4.0-flash","input":{"prompt":"A paper boat floats through a miniature city at sunset."}}},"image-to-video":{"title":"image-to-video","value":{"model":"kling-4.0-flash","input":{"image_urls":["https://example.com/start.png"],"prompt":"The camera slowly pushes in as the lanterns flicker.","duration":10}}},"reference-image":{"title":"reference-image","value":{"model":"kling-4.0-flash","input":{"prompt":"The character in @Image1 walks along a sunlit forest trail.","reference_image_urls":["https://example.com/character.png"],"aspect_ratio":"9:16"}}},"reference-video":{"title":"reference-video","value":{"model":"kling-4.0-flash","input":{"prompt":"Recreate the camera movement from @Video1 in a snowy mountain landscape.","reference_video_urls":["https://example.com/camera-motion.mp4"],"duration":8}}},"image-subject":{"title":"image-subject","value":{"model":"kling-4.0-flash","input":{"prompt":"@Element1 walks through the city square shown in @Image1.","reference_image_urls":["https://example.com/square.png"],"kling_elements":[{"element_input_urls":["https://example.com/character-front.png","https://example.com/character-side.png"]}]}}},"video-edit":{"title":"video-edit","value":{"model":"kling-4.0-flash","input":{"prompt":"Replace the background of @Video1 with a snowy mountain landscape while keeping the camera movement.","video_url":"https://example.com/source.mp4"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"cdb4774c-a93f-4737-a97e-b2fbe67b23b1":{"description":"Task submitted successfully","content":{"application/json":{"schema":{"type":"object","required":["code","data"],"properties":{"code":{"type":"integer","example":200,"enum":[200,400,401,402,403,404,408,429,500,502,503],"description":"Business status code. `200` means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with `code: 400` in the body.\n\n- `200`: Success\n- `400`: Invalid request parameters\n- `401`: Missing or invalid API key\n- `402`: Insufficient credits\n- `403`: Permission denied\n- `404`: Resource not found\n- `408`: Request timeout\n- `429`: Rate limit exceeded\n- `500`: Internal server error\n- `502`: Upstream service error\n- `503`: Service unavailable\n\nSee [Error Codes](/api-manual/error-codes) for details.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cinteger>"},"data":{"type":"object","required":["task_id","status","created_time"],"properties":{"task_id":{"type":"string","example":"task-unified-1792741800-example","isRequired":true,"uniqueKey":"data.task_id","typeLabel":"string"},"status":{"type":"string","enum":["not_started","running","finished","failed"],"example":"not_started","description":"Task status. Always `not_started` right after submission. Use [Query Task Status](/api-manual/task-management/status) or `callback_url` to get later states.\n\n- `not_started`: Queued, waiting to be processed\n- `running`: Being generated\n- `finished`: Completed; results are in `files` or `output`\n- `failed`: Failed; details are in `error_message`","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"created_time":{"type":"string","format":"date-time","example":"2026-10-23T10:30:00","isRequired":true,"uniqueKey":"data.created_time","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"data":{"task_id":"task-unified-1792741800-example","status":"not_started","created_time":"2026-10-23T10:30:00"}}}},"exampleType":"generated"}},"exampleType":"generated"},"6285d2b7-5225-46d2-bf09-8d2bb5f214e6":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"integer","example":400,"enum":[200,400,401,402,403,404,408,429,500,502,503],"description":"Business status code. `200` means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with `code: 400` in the body.\n\n- `200`: Success\n- `400`: Invalid request parameters\n- `401`: Missing or invalid API key\n- `402`: Insufficient credits\n- `403`: Permission denied\n- `404`: Resource not found\n- `408`: Request timeout\n- `429`: Rate limit exceeded\n- `500`: Internal server error\n- `502`: Upstream service error\n- `503`: Service unavailable\n\nSee [Error Codes](/api-manual/error-codes) for details.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cinteger>"},"error":{"type":"object","required":["message","type"],"properties":{"message":{"type":"string","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","example":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"error":{"message":"Invalid request parameters","type":"invalid_request_error"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2cce0590-ce8e-40d7-a339-86204fb82e01":{"description":"Unauthorized - Invalid API key","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"integer","example":400,"enum":[200,400,401,402,403,404,408,429,500,502,503],"description":"Business status code. `200` means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with `code: 400` in the body.\n\n- `200`: Success\n- `400`: Invalid request parameters\n- `401`: Missing or invalid API key\n- `402`: Insufficient credits\n- `403`: Permission denied\n- `404`: Resource not found\n- `408`: Request timeout\n- `429`: Rate limit exceeded\n- `500`: Internal server error\n- `502`: Upstream service error\n- `503`: Service unavailable\n\nSee [Error Codes](/api-manual/error-codes) for details.","isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cinteger>"},"error":{"type":"object","required":["message","type"],"properties":{"message":{"type":"string","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","example":"invalid_request_error","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"error":{"message":"Invalid request parameters","type":"invalid_request_error"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c221af20-545f-4d07-8ad2-da3393843902":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"All API endpoints require Bearer Token authentication.\n\nCreate an API key: sign in to PoYo, open **Dashboard → API Key** at [poyo.ai/dashboard/api-key](https://poyo.ai/dashboard/api-key), and click to create a key.\n\nAdd it to the request header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"4b8221d2-6f30-45bd-80bd-0406f4445394":{"url":"https://api.poyo.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"All API endpoints require Bearer Token authentication.\n\nCreate an API key: sign in to PoYo, open **Dashboard → API Key** at [poyo.ai/dashboard/api-key](https://poyo.ai/dashboard/api-key), and click to create a key.\n\nAdd it to the request header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"All API endpoints require Bearer Token authentication.\n\nCreate an API key: sign in to PoYo, open **Dashboard → API Key** at [poyo.ai/dashboard/api-key](https://poyo.ai/dashboard/api-key), and click to create a key.\n\nAdd it to the request header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-manual/video-series/kling-4-0-flash.json"},"subdomain":"goseallc","siteName":"PoYo AI","title":"Kling 4.0 Flash - PoYo AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-manual/video-series/kling-4-0-flash","matchLevel":0},"zh":{"href":"/zh/api-manual/video-series/kling-4-0-flash","matchLevel":1}}},"lastModified":"2026-11-07T11:07:35.278Z","originalFileLocation":"api-manual/video-series/kling-4-0-flash.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=\"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PoYo AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_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/goseallc/_txJMi_sP9EUfefV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kling 4.0 Flash - PoYo AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PoYo AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://goseallc.mintlify.site/_mintlify/api/og/v2?division=Kling\u0026amp;title=Kling+4.0+Flash\u0026amp;description=Generate+fast+720p+videos+of+3%E2%80%9320+seconds+from+text%2C+a+start+frame%2C+or+visual+references%2C+and+edit+an+existing+video.\u0026amp;theme=ecc0b2c14fb9965076e6096c\u0026amp;signature=15a4649812c130fbc745a098fea06fbff2582c38b07829303fef456f083e61a9\">\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 4.0 Flash - PoYo AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://goseallc.mintlify.site/_mintlify/api/og/v2?division=Kling\u0026amp;title=Kling+4.0+Flash\u0026amp;description=Generate+fast+720p+videos+of+3%E2%80%9320+seconds+from+text%2C+a+start+frame%2C+or+visual+references%2C+and+edit+an+existing+video.\u0026amp;theme=ecc0b2c14fb9965076e6096c\u0026amp;signature=15a4649812c130fbc745a098fea06fbff2582c38b07829303fef456f083e61a9\">\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/goseallc/_txJMi_sP9EUfefV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PoYo AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-manual/video-series/kling-4-0-flash.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.poyo.ai/zh/api-manual/video-series/kling-4-0-flash\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.poyo.ai/#organization\",\"name\":\"PoYo AI\",\"url\":\"https://docs.poyo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/goseallc/29Q_kJZSXJtvfdJH/logo/light.svg?fit=max\u0026auto=format\u0026n=29Q_kJZSXJtvfdJH\u0026q=85\u0026s=8af87ad322e9698952f9066b10b97f41\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.poyo.ai#website\",\"name\":\"PoYo AI\",\"url\":\"https://docs.poyo.ai\",\"publisher\":{\"@id\":\"https://docs.poyo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash#webpage\",\"url\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\",\"name\":\"Kling 4.0 Flash\",\"description\":\"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\",\"dateModified\":\"2026-11-07T11:07:35.278Z\",\"isPartOf\":{\"@id\":\"https://docs.poyo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video Models\",\"item\":\"https://docs.poyo.ai/api-manual/video-series/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling\",\"item\":\"https://docs.poyo.ai/api-manual/video-series/kling-1-6\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Kling 4.0 Flash\",\"item\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash#apireference\",\"headline\":\"Kling 4.0 Flash\",\"name\":\"Kling 4.0 Flash\",\"description\":\"Generate fast 720p videos of 3–20 seconds from text, a start frame, or visual references, and edit an existing video.\",\"url\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash\",\"mainEntityOfPage\":{\"@id\":\"https://docs.poyo.ai/api-manual/video-series/kling-4-0-flash#webpage\"},\"dateModified\":\"2026-11-07T11:07:35.278Z\",\"publisher\":{\"@id\":\"https://docs.poyo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.poyo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PoYo AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PoYo AI","nav":{"global":{},"languages":[{"language":"en","tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":""}]},{"tab":"Image Models","pages":[{"title":"Image Models","href":"/api-manual/image-series/overview"}]},{"tab":"Video Models","groups":[{"group":"Video Models","pages":[{"title":"Video Models","icon":"video","href":"/api-manual/video-series/overview"},{"group":"Google","pages":[{"title":"VEO 3.1","icon":"video","openapi":"api-manual/video-series/veo-3-1.json POST /api/generate/submit","href":"/api-manual/video-series/veo-3-1"},{"title":"VEO 3.1 Official","icon":"video","openapi":"api-manual/video-series/veo-3-1-official.json POST /api/generate/submit","href":"/api-manual/video-series/veo-3-1-official"},{"title":"Omni Flash","icon":"video","openapi":"api-manual/video-series/omni-flash.json POST /api/generate/submit","href":"/api-manual/video-series/omni-flash"},{"title":"Gemini Omni 1.1 Flash","icon":"video","openapi":"api-manual/video-series/gemini-omni-1.1-flash.json POST /api/generate/submit","href":"/api-manual/video-series/gemini-omni-1.1-flash"},{"title":"Gemini Omni 1.2 Flash","icon":"video","openapi":"api-manual/video-series/gemini-omni-1.2-flash.json POST /api/generate/submit","href":"/api-manual/video-series/gemini-omni-1.2-flash"}]},{"group":"Flux","pages":[{"title":"Flux 3","icon":"video","openapi":"api-manual/video-series/flux-3.json POST /api/generate/submit","href":"/api-manual/video-series/flux-3"},{"title":"Flux 3 Max","icon":"video","openapi":"api-manual/video-series/flux-3-max.json POST /api/generate/submit","href":"/api-manual/video-series/flux-3-max"}]},{"group":"Wan","pages":[{"title":"Wan Animate","icon":"video","openapi":"api-manual/video-series/wan-animate.json POST /api/generate/submit","href":"/api-manual/video-series/wan-animate"},{"title":"Wan 2.2 Text-to-Video Fast","icon":"video","openapi":"api-manual/video-series/wan2.2-text-to-video-fast.json POST /api/generate/submit","href":"/api-manual/video-series/wan2.2-text-to-video-fast"},{"title":"Wan 2.2 Image-to-Video Fast","icon":"video","openapi":"api-manual/video-series/wan2.2-image-to-video-fast.json POST /api/generate/submit","href":"/api-manual/video-series/wan2.2-image-to-video-fast"},{"title":"Wan 2.5 Image-to-Video","icon":"video","openapi":"api-manual/video-series/wan2.5-image-to-video.json POST /api/generate/submit","href":"/api-manual/video-series/wan2.5-image-to-video"},{"title":"Wan 2.5 Text-to-Video","icon":"video","openapi":"api-manual/video-series/wan2.5-text-to-video.json POST /api/generate/submit","href":"/api-manual/video-series/wan2.5-text-to-video"},{"title":"Wan 2.6","icon":"video","openapi":"api-manual/video-series/wan-2-6.json POST /api/generate/submit","href":"/api-manual/video-series/wan-2-6"},{"title":"Wan 2.7","icon":"video","openapi":"api-manual/video-series/wan-2-7-video.json POST /api/generate/submit","href":"/api-manual/video-series/wan-2-7-video"},{"title":"Wan 3.0","icon":"video","openapi":"api-manual/video-series/wan-3-0-video.json POST /api/generate/submit","href":"/api-manual/video-series/wan-3-0-video"},{"title":"Wan 3.0 Prime","icon":"video","openapi":"api-manual/video-series/wan-3-0-video-prime.json POST /api/generate/submit","href":"/api-manual/video-series/wan-3-0-video-prime"}]},{"group":"Kling","pages":[{"title":"Kling 1.6","icon":"video","openapi":"api-manual/video-series/kling-1-6.json POST /api/generate/submit","href":"/api-manual/video-series/kling-1-6"},{"title":"Kling 2.1","icon":"video","openapi":"api-manual/video-series/kling-2-1.json POST /api/generate/submit","href":"/api-manual/video-series/kling-2-1"},{"title":"Kling 2.5 Turbo Pro","icon":"video","openapi":"api-manual/video-series/kling-2-5-turbo-pro.json POST /api/generate/submit","href":"/api-manual/video-series/kling-2-5-turbo-pro"},{"title":"Kling 2.6","icon":"video","openapi":"api-manual/video-series/kling-2-6.json POST /api/generate/submit","href":"/api-manual/video-series/kling-2-6"},{"title":"Kling 3.0","icon":"video","openapi":"api-manual/video-series/kling-3-0.json POST /api/generate/submit","href":"/api-manual/video-series/kling-3-0"},{"title":"Kling 3.0 Turbo","icon":"video","openapi":"api-manual/video-series/kling-3-0-turbo.json POST /api/generate/submit","href":"/api-manual/video-series/kling-3-0-turbo"},{"title":"Kling 3.0 4K","icon":"video","openapi":"api-manual/video-series/kling-3-0-4k.json POST /api/generate/submit","href":"/api-manual/video-series/kling-3-0-4k"},{"title":"Kling Avatar 2.0","icon":"video","openapi":"api-manual/video-series/kling-avatar-2-0.json POST /api/generate/submit","href":"/api-manual/video-series/kling-avatar-2-0"},{"title":"Kling O3","icon":"video","openapi":"api-manual/video-series/kling-o3.json POST /api/generate/submit","href":"/api-manual/video-series/kling-o3"},{"title":"Kling O3 4K","icon":"video","openapi":"api-manual/video-series/kling-o3-4k.json POST /api/generate/submit","href":"/api-manual/video-series/kling-o3-4k"},{"title":"Kling 2.6 Motion Control","icon":"video","openapi":"api-manual/video-series/kling-2.6-motion-control.json POST /api/generate/submit","href":"/api-manual/video-series/kling-2.6-motion-control"},{"title":"Kling 3.0 Motion Control","icon":"video","openapi":"api-manual/video-series/kling-3-0-motion-control.json POST /api/generate/submit","href":"/api-manual/video-series/kling-3-0-motion-control"},{"title":"Kling 4.0","description":"Generate videos from text, first and last frames, or visual references, and edit an existing video at 720p or 1080p.","icon":"video","openapi":"api-manual/video-series/kling-4-0.json POST /api/generate/submit","href":"/api-manual/video-series/kling-4-0"},{"title":"Kling 4.0 Flash","icon":"video","openapi":"api-manual/video-series/kling-4-0-flash.json POST /api/generate/submit","href":"/api-manual/video-series/kling-4-0-flash"}]},{"group":"Grok (xAI)","pages":[{"title":"Grok Imagine","description":"The Grok Imagine API generates a 6 or 10 second video from text or an image in 1:1, 2:3, 3:2, 16:9, or 9:16.","icon":"video","openapi":"api-manual/video-series/grok-imagine.json POST /api/generate/submit","href":"/api-manual/video-series/grok-imagine"},{"title":"Grok Imagine Video 1.5","icon":"video","openapi":"api-manual/video-series/grok-imagine-video-1-5.json POST /api/generate/submit","href":"/api-manual/video-series/grok-imagine-video-1-5"}]},{"group":"Hailuo","pages":[{"title":"Hailuo 02","icon":"video","openapi":"api-manual/video-series/hailuo-02.json POST /api/generate/submit","href":"/api-manual/video-series/hailuo-02"},{"title":"Hailuo 2.3","icon":"video","openapi":"api-manual/video-series/hailuo-2-3.json POST /api/generate/submit","href":"/api-manual/video-series/hailuo-2-3"},{"title":"Hailuo 03","icon":"video","openapi":"api-manual/video-series/hailuo-03.json POST /api/generate/submit","href":"/api-manual/video-series/hailuo-03"},{"title":"H3 Max","icon":"video","openapi":"api-manual/video-series/h3-max.json POST /api/generate/submit","href":"/api-manual/video-series/h3-max"},{"title":"H3 Max Turbo","icon":"video","openapi":"api-manual/video-series/h3-max-turbo.json POST /api/generate/submit","href":"/api-manual/video-series/h3-max-turbo"}]},{"group":"Vidu","pages":[{"title":"Vidu Q4","icon":"video","openapi":"api-manual/video-series/vidu-q4.json POST /api/generate/submit","href":"/api-manual/video-series/vidu-q4"}]},{"group":"PixVerse","pages":[{"title":"PixVerse V6 Max","icon":"video","openapi":"api-manual/video-series/pixverse-v6-max.json POST /api/generate/submit","href":"/api-manual/video-series/pixverse-v6-max"}]},{"group":"ByteDance","pages":[{"title":"OmniHuman 2.0","icon":"video","openapi":"api-manual/video-series/omnihuman-2-0.json POST /api/generate/submit","href":"/api-manual/video-series/omnihuman-2-0"}]},{"group":"Runway","pages":[{"title":"Runway Gen-4.5","icon":"video","openapi":"api-manual/video-series/runway-gen-4-5.json POST /api/generate/submit","href":"/api-manual/video-series/runway-gen-4-5"}]},{"group":"Seedance","pages":[{"title":"Seedance 1.0 Pro","icon":"video","openapi":"api-manual/video-series/seedance-1.0-pro.json POST /api/generate/submit","href":"/api-manual/video-series/seedance-1.0-pro"},{"title":"Seedance 1.5 Pro","icon":"video","openapi":"api-manual/video-series/seedance-1-5-pro.json POST /api/generate/submit","href":"/api-manual/video-series/seedance-1-5-pro"},{"title":"Seedance 2","icon":"video","openapi":"api-manual/video-series/seedance-2.json POST /api/generate/submit","href":"/api-manual/video-series/seedance-2"},{"title":"Seedance 2 Mini","icon":"video","openapi":"api-manual/video-series/seedance-2-mini.json POST /api/generate/submit","href":"/api-manual/video-series/seedance-2-mini"},{"title":"Seedance 2.5","icon":"video","openapi":"api-manual/video-series/seedance-2.5.json POST /api/generate/submit","href":"/api-manual/video-series/seedance-2.5"}]},{"group":"Alibaba","pages":[{"title":"Happy Horse","icon":"video","openapi":"api-manual/video-series/happy-horse.json POST /api/generate/submit","href":"/api-manual/video-series/happy-horse"},{"title":"Happy Horse 1.1","icon":"video","openapi":"api-manual/video-series/happy-horse-1-1.json POST /api/generate/submit","href":"/api-manual/video-series/happy-horse-1-1"}]}]}]},{"tab":"LLM Models","pages":[{"title":"LLM Models","href":"/api-manual/chat-series/overview"}]},{"tab":"3D Models","pages":[{"title":"3D Models","href":"/api-manual/3d-series/overview"}]},{"tab":"Music Models","pages":[{"title":"Music Models","href":"/api-manual/music-series/overview"}]},{"tab":"AI Tools","pages":[{"title":"AI Tools","href":"/api-manual/tools-series/overview"}]},{"tab":"AI Agents","pages":[{"title":"AI Agents","href":"/integrations/overview"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-manual/video-series/kling-4-0-flash"}]}]},"basePath":"","title":"Kling 4.0 Flash - PoYo AI","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}