메인 콘텐츠로 건너뛰기
POST
cURL
POST /text-to-video/{model}에 프롬프트를 전송하여 비디오 작업을 생성하세요. 응답에는 결과를 조회하는 데 사용할 id가 포함됩니다.

모델 선택

URL에 모델 ID를 입력하세요. JSON 본문에 model 필드를 추가하지 마세요.

요청 매개변수

다음 요청은 kling-3.0-turbo을 사용하여 5초 길이의 비디오를 생성합니다:
CometAPI API 키와 함께 이 본문을 https://api.cometapi.com/text-to-video/kling-3.0-turbo에 전송하세요. OpenAPI 코드 패널은 동일한 본문을 사용하는 Shell, Python 및 JavaScript 요청을 제공합니다.

비디오 조회

생성 응답의 형식은 다음과 같습니다:
data.id을 저장하세요. 다음을 사용하세요: Kling 작업 가져오기 해당 ID로 작업이 최종 상태에 도달할 때까지 요청하세요. 작업의 outputs 배열에서 비디오 URL을 읽으세요.

인증

Authorization
string
header
필수

Authenticate with your CometAPI API key.

경로 매개변수

model
enum<string>
기본값:kling-3.0-turbo
필수

Kling model ID. kling-3.0 supports 4k resolution. The 2.x models accept 5- or 10-second duration.

사용 가능한 옵션:
kling-3.0-turbo,
kling-3.0,
kling-2.6,
kling-2.5-turbo

본문

application/json

Text-to-video request fields exposed by the CometAPI route. The model ID is a path parameter, not a body field.

prompt
string
필수

Text description of the video to generate.

Minimum string length: 1
settings
object

Video generation settings exposed by the CometAPI route. The model ID in the URL determines which values are accepted.

options
object

Optional task fields exposed by the CometAPI route.

응답

200 - application/json

The task was created. Use data.id to retrieve its status and video output.

code
필수

Request result code. 0 or success indicates acceptance.

message
string
필수

Result message.

data
object
필수

Task identifier and submission status.

msg
string

Additional result message when included in the response.

마지막 수정일 2026년 9월 25일