Skip to main content
POST
cURL
이 엔드포인트를 사용해 하나의 원본 이미지를 Kling 비디오로 애니메이션화할 수 있습니다.

호출 전에 확인할 사항

  • 공개 이미지 URL 1개 또는 base64 이미지 문자열 1개를 제공하세요
  • Kling 픽셀 요구사항을 충족하는 이미지를 사용하세요. 너무 작은 썸네일은 생성 작업에서 거부됩니다
  • 기본 kling-v2-6 예제로 시작한 다음, 다른 모델 계열이 필요할 때 OpenAPI enum에서 다른 model_name을 선택하세요
  • 첫 번째 요청은 단순하게 유지하세요: 입력 이미지 1개, 프롬프트(Prompt) 1개, tail frame 없음, motion mask 없음
  • 제어된 국소 움직임이 필요할 때는 dynamic_masks를 mask-and-trajectory 객체의 배열로 사용하세요
  • 생성된 사운드를 지원하는 모델 계열에서는 오디오 없이 결정적인 첫 요청을 위해 sound: off를 사용하세요

모델 이름 지정

이 엔드포인트에서는 일반 Kling 비디오 model ID를 사용하세요. Omni model ID는 Omni Video용으로 유지하세요.

작업 흐름

1

이미지-투-비디오 요청 제출

작업을 생성하고 반환된 Kling task_id를 저장하세요.
2

작업 폴링

출력이 준비될 때까지 Kling 작업 가져오기를 통해 작업 상태를 계속 추적하세요.
3

결과 저장

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

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
image
string
필수

Source image URL or base64 image string. Use an image that meets Kling pixel requirements; very small thumbnails are rejected. For base64 input, send the encoded image string as the field value.

prompt
string

Text prompt describing the desired motion. Maximum 500 characters.

negative_prompt
string

Elements to exclude from the video. Maximum 200 characters.

callback_url
string

Webhook URL to receive task status updates when the task completes.

mode
enum<string>
기본값:std

Generation mode. std for standard (faster), pro for professional (higher quality).

사용 가능한 옵션:
std,
pro
model_name
enum<string>
기본값:kling-v1

Model ID for this image-to-video request. Use kling-v3 for new requests. Use Omni model IDs only with the Omni Video endpoint.

사용 가능한 옵션:
kling-v1,
kling-v1-5,
kling-v1-6,
kling-v2-master,
kling-v2-1,
kling-v2-1-master,
kling-v2-5-turbo,
kling-v2-6,
kling-v3
image_tail
string

Tail-frame reference image as a Base64 string or public URL. Same format requirements as image. Controls the last frame of the generated video.

cfg_scale
number

Prompt adherence strength. Higher values follow the prompt more closely. Range: 0–1.

duration
string
기본값:5

Output video length in seconds. Use 5 or 10; omit to use 5.

static_mask
string

Static brush mask image as a Base64 string or public URL. White areas are frozen in place during video generation. Must match the aspect ratio and resolution of the input image.

dynamic_masks
object[]

Optional motion masks. Each entry contains a mask image and an ordered trajectory list.

external_task_id
string

Custom task id for your own tracking. Does not replace the system-generated task id but can be used to query tasks. Must be unique per user.

sound
enum<string>

Optional generated-audio switch for models that support video sound. Use on or off, or omit the field for the model default.

사용 가능한 옵션:
on,
off

응답

200 - application/json

Task accepted.

code
integer
필수

Error code; specifically define the error code

message
string
필수

error message

data
object
필수