Skip to main content
POST
/
kling
/
v1
/
videos
/
image2video
Create Image-to-Video Task
curl --request POST \
  --url https://www.anyfast.ai/kling/v1/videos/image2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model_name": "kling-v2-master",
  "image": "<string>",
  "image_tail": "<string>",
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "mode": "std",
  "duration": "5",
  "cfg_scale": 0.5,
  "multi_shot": false,
  "shot_type": "customize",
  "multi_prompt": [
    {
      "index": 123,
      "prompt": "<string>",
      "duration": "<string>"
    }
  ],
  "element_list": [
    {
      "element_id": 123
    }
  ],
  "sound": "off",
  "camera_control": {
    "type": "simple",
    "config": {
      "horizontal": 123,
      "vertical": 123,
      "pan": 123,
      "tilt": 123,
      "roll": 123,
      "zoom": 123
    }
  },
  "static_mask": "<string>",
  "dynamic_masks": [
    {
      "mask": "<string>",
      "trajectories": [
        {
          "x": 123,
          "y": 123
        }
      ]
    }
  ],
  "watermark_info": {
    "enabled": true
  },
  "callback_url": "<string>",
  "external_task_id": "<string>"
}
'
{
  "id": "860260753860210752",
  "task_id": "860260753860210752",
  "object": "video",
  "model": "kling-v2-master",
  "status": "<string>",
  "progress": 0,
  "created_at": 1773130665
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model_name
enum<string>

Model name

Available options:
kling-v2-master
Example:

"kling-v2-master"

image
string

Reference image (first frame). Base64 or URL. Formats: .jpg/.jpeg/.png, max 10MB, min 300px.

image_tail
string

Reference image (end frame). At least one of image or image_tail is required.

prompt
string

Positive text prompt. Required when multi_shot is false.

Maximum string length: 2500
negative_prompt
string

Negative text prompt.

Maximum string length: 2500
mode
enum<string>
default:std

std: Standard. pro: Professional (higher quality).

Available options:
std,
pro
duration
enum<string>
default:5

Video duration in seconds (3-15).

Available options:
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
cfg_scale
number
default:0.5

Prompt relevance (0-1). Higher = stronger adherence.

Required range: 0 <= x <= 1
multi_shot
boolean
default:false

Enable multi-shot storyboarding.

shot_type
enum<string>

Storyboard method.

Available options:
customize,
intelligence
multi_prompt
object[]

Storyboard info (1-6 shots).

element_list
object[]

Reference elements (max 3).

sound
enum<string>
default:off

Generate sound. Only V2.6+.

Available options:
on,
off
camera_control
object

Camera movement control.

static_mask
string

Static brush mask (Base64 or URL).

dynamic_masks
object[]

Dynamic brush configs (up to 6).

watermark_info
object
callback_url
string
external_task_id
string

Response

Task created

id
string
Example:

"860260753860210752"

task_id
string
Example:

"860260753860210752"

object
string
Example:

"video"

model
string
Example:

"kling-v2-master"

status
string
progress
integer
Example:

0

created_at
integer
Example:

1773130665