Giky API.Workspace / Models
KuaishouVideo generation

Kling 4.0 API for Keyframe and 30-Second Video

Direct 3–30 second clips with text, a starting image, up to eight keyframes, and an optional final frame at up to 1080p.

kling-4-0
FROM · USD
$0.17584 / second
image to video · 720p · 3 seconds3-second clip: $0.52752

Kling 4.0 Video Generation Input

Video generation
Generation mode
Be specific about the result you want.0 / 1000
Estimated total$0.8792$0.17584 / second

Checking current availability…

Kling 4.0 Output Preview

▷

Your video, here.

Your generated video will appear here.
Set your inputs, then generate.

View your previous generations ↗

Explore This Model by Capability and Use Case

Compare this model with endpoints that support the same operation, or continue to a workflow guide built around a specific product requirement.

Compare supported capabilities

Build with this model type

What Is the Kling 4.0 API and What Does It Support?

Kling 4.0 is a Kuaishou video API route for text-to-video and image-to-video generation. In addition to prompt, resolution, aspect ratio and duration, its published schema includes reference images, keyframes and a last-image input for more structured video requests.

  • Guide motion and composition with as many as eight keyframe URLs.
  • Define both a starting visual and an intended ending frame for image-led clips.
  • Choose any whole-second duration from 3 to 30 at 720p or 1080p.
Supported generation modes
Image to Video and Text to Video
Request controls available on this route
prompt, resolution, aspect ratio, duration seconds, image urls, keyframe urls, last image urls
Developer workflow
Configure the request in the playground, review the calculated price, then use the API tab to copy the same server-side request.
Kling 4.0 API image showing bird taking flight over a lake

What Can You Build with the Kling 4.0 API?

Kling 4.0 API image showing spacecraft passing a luminous planet

Animate an approved starting image

Provide a reachable image URL and describe the motion, camera behavior and elements that should remain stable.

Kling 4.0 API image showing coat moving in the wind on a rooftop

Direct a clip with frame references

Use the published keyframe or ending-image fields when the request needs more structure than a single prompt.

Kling 4.0 API image showing paper boat moving through rainwater

Create text-led video variations

Generate clips from the same written scene across supported resolutions, aspect ratios and durations.

How Does the Kling 4.0 API Workflow Work?

Configure the published inputs, submit an authenticated task, and track the same task ID until the Kling 4.0 result is ready.

Read the Kling 4.0 API reference →
  1. 1

    Choose text or frame-led video

    Start from a written scene, or upload an opening image when composition and subject identity need visual guidance.

  2. 2

    Add temporal anchors

    Attach keyframes or a final image only when the sequence needs more structure than a single prompt.

  3. 3

    Set duration and output

    Select 3–30 seconds, resolution, and ratio, review the calculated total, then submit and track the task.

When Should You Choose the Kling 4.0 API?

Choose Kling 4.0 when your workflow may start from text, a still image or a more deliberate frame sequence. The extra frame inputs make it worth comparing with simpler prompt-only routes before designing your upload UI.

How Much Does the Kling 4.0 API Cost?

Compare published configurations and the calculated cost for one request. Video totals include the selected duration; image totals are calculated per output.

ConfigurationUnit priceOne request100 requests
image to video · 1080p · 5 seconds$0.2632 / second$1.316$131.6
image to video · 720p · 5 seconds$0.17584 / second$0.8792$87.92
text to video · 1080p · 5 seconds$0.2632 / second$1.316$131.6
text to video · 720p · 5 seconds$0.17584 / second$0.8792$87.92

What Inputs and Parameters Does the Kling 4.0 API Support?

Review the accepted values and requirements for every published operation before you build the request body.

Text to VideoPriced configuration
ParameterAccepted valuesRequirement
promptText, up to 1000 charactersRequired
resolution720p, 1080pRequired
aspect_ratio16:9, 9:16, 1:1, 21:9Optional
duration_seconds3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30Required
Image to VideoPriced configuration
ParameterAccepted valuesRequirement
promptText, up to 1000 charactersRequired
image_urlsUp to 1 URLsRequired
resolution720p, 1080pRequired
aspect_ratio16:9, 9:16, 1:1, 21:9Optional
keyframe_urlsUp to 8 URLsOptional
last_image_urlsUp to 1 URLsOptional
duration_seconds3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30Required

What to Know Before Using the Kling 4.0 API

How many keyframes can the Kling 4.0 API accept?

The current image-to-video schema accepts up to eight keyframe URLs, plus one starting image and one optional last image.

What clip lengths are available for Kling 4.0?

The route publishes every whole-second duration from 3 through 30 seconds at 720p or 1080p.

Which Kling 4.0 modes can I use here?

Text to Video, Image to Video. The playground shows only priced configurations with a parameter definition. Live availability is checked before enabling submission.

How do I use this model in my app?

Configure your request, open the API tab, and copy the example. It submits to our task API and polls the returned task ID. Keep your API key on your server.

Read the Kling 4.0 API reference →

How Does Kling 4.0 Compare with Similar Video APIs?

Kling 4.0 stands out for eight keyframes and 3–30 second control. Compare MiniMax H3 for 2K, Seedance 2.5 for audio, and Veo for seed and negative prompting.

Compare all →

Swipe horizontally to compare every column.

ModelProviderSupported modesKey controlsPublished unit price
Kling 4.0Current modelKuaishouImage to Video, Text to Videoprompt, resolution, aspect ratio, duration seconds, image urls$0.17584 / secondView API
MiniMax H3MiniMaxText to Video, Image to Videoprompt, resolution, aspect ratio, duration seconds, image urls$0.056 / secondView API
Seedance 2.5ByteDanceText to Video, Image to Videoprompt, resolution, aspect ratio, generate audio, duration seconds$0.196 / secondView API
Veo 3.1 StandardGoogleText to Video, Image to Videoseed, prompt, resolution, aspect ratio, generate audio$0.28 / secondView API