Skip to main content
POST
cURL
소스 이미지 하나만으로는 충분하지 않고 여러 이미지 참조를 바탕으로 Kling이 움직임을 구성하도록 하려는 경우 이 엔드포인트를 사용하세요.

호출 전에 확인할 것

  • image_list에 1~4개의 이미지를 준비하세요
  • Kling의 픽셀 요구사항을 충족하는 이미지를 사용하세요. 너무 작은 썸네일은 생성 작업에서 거부됩니다
  • 특정한 이유로 route-compatible model을 선택해야 하는 경우가 아니라면 model_name은 생략하세요
  • 첫 테스트는 간단하게 유지하세요: 짧은 프롬프트(Prompt), duration: 5, 추가 callback 설정 없음
  • 이 경로에서는 static_maskdynamic_masks 같은 image-to-video mask 필드를 보내지 마세요

작업 흐름

1

멀티 이미지 요청 제출

이미지 목록, 프롬프트(Prompt), duration을 전송한 다음 반환된 Kling task_id를 저장하세요.
2

작업 폴링

작업이 종료 상태에 도달할 때까지 Kling 작업 조회를 계속 진행하세요.
3

결과 저장

제공업체 전달 URL보다 더 오래 보관해야 한다면 완료된 비디오를 저장하세요.
전체 파라미터 참조는 Kling 공식 문서를 확인하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
image_list
object[]
필수

Input image references. Provide 1 to 4 items that meet Kling pixel requirements; very small thumbnails are rejected.

Required array length: 1 - 4 elements
model_name
enum<string>
기본값:kling-v1-6

Kling model variant for multi-image video. Omit to use kling-v1-6.

사용 가능한 옵션:
kling-v1-6
prompt
string

Text prompt describing the desired motion and scene.

negative_prompt
string

Elements to avoid in the generated video.

mode
enum<string>
기본값:std

Generation mode. Use std or pro; omitted requests use std.

사용 가능한 옵션:
std,
pro
duration
string
기본값:5

Output video length in seconds. Use 5 or 10; omitted requests use 5.

aspect_ratio
enum<string>

Requested frame aspect ratio when the model needs an explicit frame shape.

사용 가능한 옵션:
16:9,
9:16,
1:1
callback_url
string

Webhook URL to receive task status updates.

external_task_id
string

Custom task id for your own tracking. Must be unique per account.

응답

200 - application/json

Task accepted.

code
integer
필수

Error code; specifically define the error code

message
string
필수

error message

data
object
필수