720p/1080p 지원과 프레임 전환 기능을 갖춘 Kling v2.1로, 부드럽고 고품질의 비디오를 생성합니다.
이 모델의 사용법을 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.1",
"input": {
"prompt": "Sweeping aerial view of cherry blossom trees along a river, petals floating in the wind, golden hour lighting, cinematic drone movement",
"duration": "10",
"aspect_ratio": "16:9",
"cfg_scale": "0.5"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성할 비디오에 대한 텍스트 설명 |
image_url | string | No | - | 이미지-비디오 변환을 위한 시작 이미지 URL |
duration | integer | No | 5 | 비디오 길이 초 (5 또는 10) 510 |
aspect_ratio | string | No | 16:9 | 출력 화면 비율 16:99:161:1 |
cfg_scale | float | No | 0.5 | 프롬프트 준수도 (0.0-1.0) |
이 모델의 image_url 파라미터에 파일을 전달하는 방법은 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.1" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image_url=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "kwaivgi/kling-v2.1",
"input": {
"prompt": "your prompt here",
"image_url": "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.1",
"input": {
"prompt": "Sweeping aerial view of cherry blossom trees along a river, petals floating in the wind, golden hour lighting, cinematic drone movement",
"duration": "10",
"aspect_ratio": "16:9",
"cfg_scale": "0.5"
}
}'스타일리시한 패션 비디오
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.1",
"input": {
"prompt": "Model walking down a neon-lit urban alley, stylish outfit, confident stride, slow motion, professional fashion photography style",
"duration": "5",
"aspect_ratio": "9:16",
"cfg_scale": "0.7"
}
}'POST /v1/predictions