Skip to main content

Kling AI - Image to Video

Transform static images into dynamic videos using Kling AI's sophisticated image-to-video generation technology with extensive customization options.

Model Information

  • Model ID: kling
  • Display Name: Kling AI
  • Provider: Kling AI

API Usage

API Playground

https://api.1min.ai/api/features
Float between 0 and 1

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_TO_VIDEO",
"model": "kling",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"image": "<base64-encoded-image-or-url>",
"prompt": "A person walking through a peaceful garden",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "std",
"version": "1.0",
"cfg_scale": 0.5,
"negative_prompt": "",
"start_image": "",
"end_image": ""
}
}'

Parameters

Required Parameters

  • image (string): The source image for video generation. Can be a base64-encoded image or image URL
  • duration (number): Duration of the video in seconds (5 or 10)
  • aspect_ratio (string): Video aspect ratio
  • mode (string): Quality mode for generation
  • version (string): Model version to use
  • cfg_scale (number): CFG scale value for generation control

Optional Parameters

  • prompt (string): Text description to guide the video generation
  • negative_prompt (string): What not to include in the video
  • start_image (string): Start frame image for professional mode (base64-encoded or URL)
  • end_image (string): End frame image for professional mode (base64-encoded or URL)

Parameter Details

duration

  • Type: Number
  • Required: Yes
  • Values: 5, 10
  • Default: 5
  • Description: Video duration in seconds

aspect_ratio

  • Type: String
  • Required: Yes
  • Values: "16:9", "9:16", "1:1"
  • Default: "16:9"
  • Description: Output video aspect ratio

mode

  • Type: String
  • Required: Yes
  • Values: "std", "pro"
  • Default: "std"
  • Description: Generation quality mode. Professional mode provides higher quality but costs more credits and supports start/end frame images. Note: Version 1.5 automatically uses professional mode.

version

  • Type: String
  • Required: Yes
  • Values: "1.0", "1.5"
  • Default: "1.0"
  • Description: Model version to use for generation

cfg_scale

  • Type: Number
  • Required: Yes
  • Range: 0.0 - 1.0
  • Default: 0.5
  • Description: CFG scale controls how closely the generation follows the prompt

negative_prompt

  • Type: String
  • Required: No
  • Description: Specify what elements to avoid in the generated video

start_image

  • Type: String
  • Required: No
  • Description: Start frame image for professional mode generation. Can be a base64-encoded image or image URL. Only available in professional mode.

end_image

  • Type: String
  • Required: No
  • Description: End frame image for professional mode generation. Can be a base64-encoded image or image URL. Only available in professional mode.

Response Format

{}

Example Request

curl -X POST https://api.1min.ai/api/features \
-H "API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_TO_VIDEO",
"model": "kling",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...",
"prompt": "Gentle waves rolling on a peaceful beach",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "pro",
"version": "1.5",
"cfg_scale": 0.5,
"negative_prompt": "people, buildings",
"start_image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD...",
"end_image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD..."
}
}'

Features

  • Multiple video durations (5s, 10s)
  • Various aspect ratios for different use cases
  • Two quality modes: Standard and Professional
  • Multiple model versions with different capabilities
  • Advanced generation control with CFG scale
  • Negative prompting for precise control
  • Cost-effective standard mode and high-quality professional mode with start/end frame control