KlingAI 1.5 Standard
KlingAI 1.5 Standard converts reference images into short HD video clips. It targets fast generation with improved temporal consistency and sharper details. Ideal for developers who need cost effective image to video rendering in automated content or creative tools.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: videoInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Video output type.
Allowed values 1 value
-
outputFormat
string default: MP4 -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `MP4`: Widely supported video container (H.264), recommended for general use.
- `WEBM`: Optimized for web delivery.
- `MOV`: QuickTime format, common in professional workflows (Apple ecosystem).
Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: async -
Determines how the API delivers task results.
Allowed values 1 value
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for video generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for video generation.
Allowed values 3 values
- Disables checking.
- Checks key frames.
- Checks all frames.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 4 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»frameImagesframeImages
array of strings or objects items: 1 -
An array of frame-specific image inputs to guide video generation. Each item can be either a plain image input (UUID, URL, Data URI, or Base64) or an object that pairs an image with a target frame position.
The
frameImagesparameter allows you to constrain specific frames within the video sequence, ensuring that particular visual content appears at designated points. This is different fromreferenceImages, which provide overall visual guidance without constraining specific timeline positions.When the
frameparameter is omitted, automatic distribution rules apply:- 1 image: Used as the first frame.
Examples 2 examples
Shorthand format: When you don't need to specify a frame position, you can pass a plain image input directly.
"frameImages": [ "aac49721-1964-481a-ae78-8a4e29b91402" ]Object format: When you need to specify a frame position, use an object with
imageandframe."frameImages": [ { "image": "aac49721-1964-481a-ae78-8a4e29b91402", "frame": "first" } ]Format 1: string[]
-
Image input (UUID, URL, Data URI, or Base64).
Format 2: object[] 2 properties
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: klingai:2@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
width
integer paired with height -
Width of the generated media in pixels.
Learn more 2 resources
-
height
integer paired with width -
Height of the generated media in pixels.
Learn more 2 resources
-
duration
float default: 5 -
Length of the generated video in seconds. The total number of frames produced is determined by duration multiplied by the model's frame rate (fps).
Allowed values 2 values
-
CFGScale
float min: 0 max: 1 step: 0.01 default: 0.5 -
Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.
Learn more 1 resource
Windmill Lighthouse on Basalt
{
"taskType": "videoInference",
"taskUUID": "47085cda-c166-4f41-981a-f59ade9cf578",
"model": "klingai:2@1",
"width": 1280,
"height": 720,
"duration": 5,
"CFGScale": 0.64,
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/52d0ccaf-3bc3-49aa-92eb-680a0caabb06.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "47085cda-c166-4f41-981a-f59ade9cf578",
"videoUUID": "9719745e-0f81-4905-b8b4-96698f2bc605",
"videoURL": "https://vm.runware.ai/video/os/a21d05/ws/5/vi/9719745e-0f81-4905-b8b4-96698f2bc605.mp4",
"seed": 1988852260,
"cost": 0.1848
}Windblown Carnival Rooftop Chase
{
"taskType": "videoInference",
"taskUUID": "457b2a41-5735-4f30-85a5-b424f505f050",
"model": "klingai:2@1",
"width": 1280,
"height": 720,
"duration": 5,
"CFGScale": 0.7,
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/7fa3c1b1-388e-45f6-89eb-8d538b8ff5fc.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "457b2a41-5735-4f30-85a5-b424f505f050",
"videoUUID": "f23cd7ba-242c-4c45-8de9-53db69229081",
"videoURL": "https://vm.runware.ai/video/os/a15d18/ws/5/vi/f23cd7ba-242c-4c45-8de9-53db69229081.mp4",
"seed": 2009708151,
"cost": 0.1848
}Lantern Harbor Fog Regatta
{
"taskType": "videoInference",
"taskUUID": "791090c3-cb2a-491c-b701-f11b5fc38f1b",
"model": "klingai:2@1",
"width": 1280,
"height": 720,
"duration": 5,
"CFGScale": 0.67,
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/25fe832d-67b6-48d7-8e82-9eb9d61e3627.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "791090c3-cb2a-491c-b701-f11b5fc38f1b",
"videoUUID": "0c9c5214-43fa-48c6-9f80-022bd1c3910f",
"videoURL": "https://vm.runware.ai/video/os/a23d05/ws/5/vi/0c9c5214-43fa-48c6-9f80-022bd1c3910f.mp4",
"seed": 1290207221,
"cost": 0.1848
}Grand Station Clock Atrium
{
"taskType": "videoInference",
"taskUUID": "10611efb-4150-42fc-b7b1-44c4d2404952",
"model": "klingai:2@1",
"width": 1280,
"height": 720,
"duration": 5,
"CFGScale": 0.64,
"inputs": {
"frameImages": [
{
"image": "https://assets.runware.ai/assets/inputs/1b8e3b63-48c7-4ff1-ab76-e866eaa913e2.jpg",
"frame": "first"
}
]
}
}{
"taskType": "videoInference",
"taskUUID": "10611efb-4150-42fc-b7b1-44c4d2404952",
"videoUUID": "ee352011-eea4-4752-8866-07696687fd9a",
"videoURL": "https://vm.runware.ai/video/os/a21d05/ws/5/vi/ee352011-eea4-4752-8866-07696687fd9a.mp4",
"seed": 1400715894,
"cost": 0.1848
}