Skip to main content
POST
/
generate
/
k
/
kling26-image-to-video
Kling 2.6 Image-to-Video
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/kling26-image-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    "https://example.com/input.jpg"
  ],
  "prompt": "The person in the image starts to smile and wave",
  "duration": 5,
  "sound": false
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Generate videos from images using Kuaishou’s Kling 2.6 model. Key Features:
  • Image-Driven - Generate coherent dynamic videos based on input images
  • Extended Duration - Generate 5 or 10-second high-quality videos
  • Audio Generation - Optional sound effects to enhance video impact
  • HD Quality - Output smooth, natural high-definition video content

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

image_urls
string[]
required

Input image URLs (required)

Required array length: 1 element
Example:
["https://example.com/input.jpg"]
prompt
string
required

Prompt (required, max 1000 characters)

Required string length: 1 - 1000
Example:

"The person in the image starts to smile and wave"

duration
enum<integer>
default:5

Video duration (optional, 5 or 10 seconds, default 5)

Available options:
5,
10
Example:

5

sound
boolean
default:false

Whether to include sound (optional, default false)

Example:

false

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"