Kling 2.6 Pro: 시네마틱한 비주얼과 유려한 움직임, 네이티브 오디오 생성을 지원하는 최상위 이미지-비디오 모델입니다. 오디오 생성은 기본적으로 켜져 있습니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "kwaivgi/kling-v2.6",
"input": {
"prompt": "A cinematic, low-angle tracking shot follows a cyclist from behind as they weave through busy New York City traffic. The camera then smoothly orbits around to the front, capturing the cyclist's determined expression.",
"duration": 5,
"aspect_ratio": "16:9",
"generate_audio": true
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 비디오 생성을 위한 텍스트 프롬프트 |
start_image | string | No | - | 비디오의 첫 프레임 이미지 |
negative_prompt | string | No | - | 비디오에 나타나지 않았으면 하는 요소 |
aspect_ratio | string | No | 16:9 | 비디오 화면 비율. start_image 제공 시 무시됨 16:99:161:1 |
duration | integer | No | 5 | 비디오 길이 초 510 |
generate_audio | boolean | No | true | 비디오에 동기화된 오디오 생성 (기본적으로 켜져 있으며 초당 가격이 2배가 됨) |
이 모델의 start_image 파라미터에 파일을 전달하는 방법은 3가지입니다.
POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 필요 없습니다.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=kwaivgi/kling-v2.6" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:start_image=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "kwaivgi/kling-v2.6",
"input": {
"prompt": "your prompt here",
"start_image": "https://example.com/image.jpg"
}
}POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.
| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
model | string | Yes | - | 모델 식별자 |
input | object | Yes | - | 위 테이블의 모델별 파라미터를 포함하는 객체 |
output_folder | string | No | - | 결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가) |
webhook_url | string | No | - | 완료 시 호출할 Webhook URL |
is_public | boolean | No | false | true 시 결과물을 영구 공개 URL로도 제공 |
기본값인 동기화 오디오 생성을 사용한 텍스트-비디오
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "kwaivgi/kling-v2.6",
"input": {
"prompt": "A cinematic, low-angle tracking shot follows a cyclist from behind as they weave through busy New York City traffic. The camera then smoothly orbits around to the front, capturing the cyclist's determined expression.",
"duration": 5,
"aspect_ratio": "16:9",
"generate_audio": true
}
}'오디오를 명시적으로 끄면 초당 가격이 절반이 됨
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "kwaivgi/kling-v2.6",
"input": {
"prompt": "A lighthouse beam sweeping across a foggy coastline at dusk, waves crashing below",
"duration": 10,
"aspect_ratio": "16:9",
"generate_audio": false
}
}'