Kling Omni 비디오 만들기
CometAPI POST /kling/v1/videos/omni-video를 사용해 Kling O1 비디오 작업을 생성하고 Omni 조회 경로로 상태를 추적합니다.
입력 모드 선택
- 텍스트-투-비디오:
prompt,mode,aspect_ratio,duration을 전송합니다 - 첫 프레임 이미지 참조:
image_url과type: first_frame가 포함된image_list항목을 추가한 다음,prompt에서 이미지를<<<image_1>>>로 참조합니다 - 워터마크 출력: 조회 응답에서 워터마크가 포함된 비디오 URL이 필요하면
watermark_info.enabled: true를 추가합니다 - Model ID: 기본 라우트 값을 사용하려면
model_name을 생략하거나,kling-video-o1또는kling-v3-omni같은 테스트된 Omni Video model ID를 전송합니다
길이와 화면 비율
size 필드를 제공하지 않습니다. aspect_ratio를 프레임 형태 요청으로 취급하세요. 16:9 텍스트-투-비디오 요청은 full-HD 1920x1080으로 렌더링될 수 있습니다.
작업 흐름
Omni 작업 만들기
task_id를 저장합니다.Omni 작업 폴링
완성된 비디오 저장
인증
Bearer token authentication. Use your CometAPI key.
헤더
Content type of the request body.
본문
Text prompt describing the desired video. Maximum length is 2,500 characters. When you send image_list, reference the image with <<<image_1>>>.
Optional model ID for this Kling Omni video request. Omit this field to use the route default.
Optional first-frame image reference for image-referenced Omni generation.
Whether to generate audio with the video. Use on or off.
on, off Generation mode. Use std for standard generation or pro when the selected model supports the higher-quality mode.
std, pro Aspect ratio request for beta Kling Omni generation. The endpoint does not expose an exact size field; a 16:9 text-to-video request can render as 1920x1080.
16:9, 9:16, 1:1 Requested output length for text-to-video and first-frame image-reference workflows. Use 5 or 10 as a string.
5, 10 Watermark options. When enabled is true, the task can return watermarked result URLs in addition to original result URLs.
Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.