텍스트를 비디오로
CometAPI의 POST /kling/v1/videos/text2video를 통해 Kling으로 텍스트 프롬프트에서 비디오를 생성한 다음, task ID로 작업 상태를 추적하고 결과를 조회합니다.
이 엔드포인트를 사용하면 프롬프트로 Kling 텍스트-투-비디오 작업을 생성할 수 있습니다. 완성된 비디오를 즉시 반환하는 대신 비동기 작업을 시작합니다.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
먼저 동작하는 요청 만들기
- 먼저 짧은 프롬프트를 보내세요
- 기본 흐름이 동작한 뒤에만
aspect_ratio,duration, 또는mode를 추가하세요 - 순수 폴링 대신 푸시 방식으로 받으려면
callback_url을 설정하세요
작업 흐름
작업 상태 폴링
인증
Bearer token authentication. Use your CometAPI key.
헤더
Must be application/json.
본문
Text prompt describing the video to generate. Maximum 500 characters.
Elements to exclude from the video. Maximum 200 characters.
Output aspect ratio (width:height). Options: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Webhook URL to receive task status updates when the task completes.
Kling model variant to use. See the Models page for current options.
Prompt adherence strength. Higher values follow the prompt more closely. Range: 0–1.
Generation mode. std for standard (faster), pro for professional (higher quality).
std, pro Output video length in seconds. Options: 5, 10.
Camera motion preset or manual configuration. Omit for automatic camera movement.
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.