Skip to content

Task: Multi-Image-to-Video

Overview

  • Method: POST
  • Path: /kling/v1/videos/multi-image2video
  • Content-Type: application/json

Authentication

  • Header: Authorization: Bearer <token>

Example Request (main fields)

ParameterTypeRequiredDescription
model_namestringYesModel version, currently only kling-v1-6 is supported
image_listarrayYesReference image list (each item contains image field with URL or Base64)
promptstringNoPositive text prompt, <=2500 characters
negative_promptstringNoNegative text prompt, <=2500 characters
modestringNoVideo quality mode: std, pro (pro costs 3.5x)
durationstringNoVideo duration in seconds: 5 or 10 (10 costs 2x)
aspect_ratiostringNoOutput aspect ratio: 16:9, 9:16, 1:1 (default 16:9)
callback_urlstringNoTask callback URL

image_list item example

Each item is an object containing the image field (image URL or Base64).

curl Example

bash
curl -X POST "https://api.gpt.ge/kling/v1/videos/multi-image2video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
    "model_name":"kling-v1-6",
    "image_list":[{"image":"https://p2.a.kwimgs.com/..."},{"image":"https://p2.a.kwimgs.com/..."}],
    "prompt":"A young Chinese woman confidently walks across a wide green field...",
    "mode":"std",
    "duration":"5"
  }'

Success Response Example (200)

json
{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "CmYgjmbyMToAAAAAAF6svw",
  "data": {
    "task_id": "CmYgjmbyMToAAAAAAF6svw",
    "task_status": "submitted",
    "created_at": 1727338013674,
    "updated_at": 1727338013674,
    "task_result": {
      "images": [
        {"url": "https://...", "index": 0}
      ],
      "videos": null
    }
  }
}